mirror of
https://github.com/kalarina-bit/Sparkledns.git
synced 2026-11-22 07:36:09 +00:00
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:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user