Improve Home, Activity and tablet layout

- Content keeps a readable width on tablets; Home and Activity show two
  columns on wide screens
- Home chart: bars per hour or per day, a working 24 h / 7 d switch,
  a message instead of an empty chart, and more height on tall screens
- Company dominance waits for 50 requests and shows whole percents
- Home offers to turn on HaGeZi Pro when no list is on, or blocking
  when it is off
- Tapping the server on Home opens the server list; the ON/OFF switch
  gives haptic feedback
This commit is contained in:
2026-10-31 10:18:57 +02:00
parent 5ff10463a3
commit 343cbfadb6
20 changed files with 644 additions and 329 deletions
@@ -66,6 +66,7 @@ fun SettingsScreen(
val context = LocalContext.current
val prefs = remember { Prefs(context) }
val scope = rememberCoroutineScope()
val side = sidePadding(windowWidth())
val active by DohVpnService.active.collectAsStateWithLifecycle()
var selected by remember { mutableStateOf(prefs.providerId) }
@@ -114,7 +115,7 @@ fun SettingsScreen(
Column(
modifier = modifier
.verticalScroll(rememberScrollState())
.padding(start = 20.dp, end = 20.dp, top = 16.dp, bottom = bottomPadding),
.padding(start = side, end = side, top = 16.dp, bottom = bottomPadding),
verticalArrangement = Arrangement.spacedBy(10.dp),
) {
ScreenTitle(stringResource(R.string.tab_settings), Modifier.heightIn(min = 44.dp))