refactor(settings): regroup Appearance into theme / calendar / agenda
Drop the uniform two-per-card grouping for meaningful sections: theme & colour (2), calendar — default view, week start, time format, hour lines (4), and agenda (2). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -470,7 +470,7 @@ private fun AppearanceScreen(
|
|||||||
|
|
||||||
Spacer(Modifier.height(16.dp))
|
Spacer(Modifier.height(16.dp))
|
||||||
|
|
||||||
// Calendar layout
|
// Calendar — view, week, and timeline formatting
|
||||||
GroupedRow(
|
GroupedRow(
|
||||||
title = stringResource(R.string.settings_default_view),
|
title = stringResource(R.string.settings_default_view),
|
||||||
summary = stringResource(state.defaultView.labelRes),
|
summary = stringResource(state.defaultView.labelRes),
|
||||||
@@ -480,17 +480,13 @@ private fun AppearanceScreen(
|
|||||||
GroupedRow(
|
GroupedRow(
|
||||||
title = stringResource(R.string.settings_week_start),
|
title = stringResource(R.string.settings_week_start),
|
||||||
summary = weekStartLabel(state.weekStart),
|
summary = weekStartLabel(state.weekStart),
|
||||||
position = Position.Bottom,
|
position = Position.Middle,
|
||||||
onClick = { showWeekStart = true },
|
onClick = { showWeekStart = true },
|
||||||
)
|
)
|
||||||
|
|
||||||
Spacer(Modifier.height(16.dp))
|
|
||||||
|
|
||||||
// Timeline display
|
|
||||||
GroupedRow(
|
GroupedRow(
|
||||||
title = stringResource(R.string.settings_time_format),
|
title = stringResource(R.string.settings_time_format),
|
||||||
summary = timeFormatLabel(state.timeFormat),
|
summary = timeFormatLabel(state.timeFormat),
|
||||||
position = Position.Top,
|
position = Position.Middle,
|
||||||
onClick = { showTimeFormat = true },
|
onClick = { showTimeFormat = true },
|
||||||
)
|
)
|
||||||
GroupedRow(
|
GroupedRow(
|
||||||
|
|||||||
Reference in New Issue
Block a user