@@ -207,18 +207,86 @@ class SettingsFragment : Fragment() {
207207 }
208208 }
209209 SettingsArea (
210- title = stringResource(R .string.appearance ),
210+ title = stringResource(R .string.display ),
211211 fontSize = titleFs,
212212 selected = selected,
213213 items = arrayOf(
214214 { _, onChange ->
215215 SettingsToggle (
216- title = stringResource(R .string.status_bar ),
216+ title = stringResource(R .string.show_status_bar ),
217217 fontSize = iconFs,
218218 onChange = onChange,
219219 state = remember { mutableStateOf(prefs.showStatusBar) },
220220 ) { toggleStatusBar() }
221221 },
222+ { _, onChange ->
223+ SettingsToggle (
224+ title = stringResource(R .string.show_recent_apps),
225+ fontSize = iconFs,
226+ onChange = onChange,
227+ state = remember { mutableStateOf(prefs.recentAppsDisplayed) }
228+ ) { toggleRecentAppsDisplayed() }
229+ },
230+ { _, onChange ->
231+ SettingsToggle (
232+ title = stringResource(R .string.show_app_usage_stats),
233+ fontSize = iconFs,
234+ onChange = onChange,
235+ state = remember { mutableStateOf(prefs.appUsageStats) }
236+ ) { toggleAppUsageStats() }
237+ },
238+ { _, onChange ->
239+ SettingsToggle (
240+ title = stringResource(R .string.show_time),
241+ fontSize = iconFs,
242+ onChange = onChange,
243+ state = remember { mutableStateOf(prefs.showTime) }
244+ ) { toggleShowTime() }
245+ },
246+ { _, onChange ->
247+ if (prefs.showTime) {
248+ SettingsToggle (
249+ title = stringResource(R .string.show_time_format),
250+ fontSize = iconFs,
251+ onChange = onChange,
252+ state = remember { mutableStateOf(prefs.showTimeFormat) }
253+ ) { toggleShowTimeFormat() }
254+ }
255+ },
256+ { _, onChange ->
257+ SettingsToggle (
258+ title = stringResource(R .string.show_date),
259+ fontSize = iconFs,
260+ onChange = onChange,
261+ state = remember { mutableStateOf(prefs.showDate) }
262+ ) { toggleShowDate() }
263+ },
264+ { _, onChange ->
265+ SettingsToggle (
266+ title = stringResource(R .string.show_battery),
267+ fontSize = iconFs,
268+ onChange = onChange,
269+ state = remember { mutableStateOf(prefs.showBattery) }
270+ ) { toggleShowBattery() }
271+ },
272+ { _, onChange ->
273+ if (prefs.showBattery) {
274+ SettingsToggle (
275+ title = stringResource(R .string.show_battery_icon),
276+ fontSize = iconFs,
277+ onChange = onChange,
278+ state = remember { mutableStateOf(prefs.showBatteryIcon) }
279+ ) { toggleShowBatteryIcon() }
280+ }
281+ },
282+ ),
283+ visibleSection = visibleSection
284+ )
285+ SettingsArea (
286+ title = stringResource(R .string.appearance),
287+ fontSize = titleFs,
288+ selected = selected,
289+ items = arrayOf(
222290 { open, onChange ->
223291 SettingsItem (
224292 title = stringResource(R .string.theme_mode),
@@ -349,14 +417,6 @@ class SettingsFragment : Fragment() {
349417 state = remember { mutableStateOf(prefs.autoShowKeyboard) },
350418 ) { toggleKeyboardText() }
351419 },
352- { _, onChange ->
353- SettingsToggle (
354- title = stringResource(R .string.display_recent_apps),
355- fontSize = iconFs,
356- onChange = onChange,
357- state = remember { mutableStateOf(prefs.recentAppsDisplayed) }
358- ) { toggleRecentAppsDisplayed() }
359- },
360420 { open, onChange ->
361421 if (prefs.recentAppsDisplayed) {
362422 SettingsSliderItem (
@@ -443,50 +503,6 @@ class SettingsFragment : Fragment() {
443503 ) { toggleHomePagerOn() }
444504 }
445505 },
446- { _, onChange ->
447- SettingsToggle (
448- title = stringResource(R .string.show_time),
449- fontSize = iconFs,
450- onChange = onChange,
451- state = remember { mutableStateOf(prefs.showTime) }
452- ) { toggleShowTime() }
453- },
454- { _, onChange ->
455- if (prefs.showTime) {
456- SettingsToggle (
457- title = stringResource(R .string.show_time_format),
458- fontSize = iconFs,
459- onChange = onChange,
460- state = remember { mutableStateOf(prefs.showTimeFormat) }
461- ) { toggleShowTimeFormat() }
462- }
463- },
464- { _, onChange ->
465- SettingsToggle (
466- title = stringResource(R .string.show_date),
467- fontSize = iconFs,
468- onChange = onChange,
469- state = remember { mutableStateOf(prefs.showDate) }
470- ) { toggleShowDate() }
471- },
472- { _, onChange ->
473- SettingsToggle (
474- title = stringResource(R .string.show_battery),
475- fontSize = iconFs,
476- onChange = onChange,
477- state = remember { mutableStateOf(prefs.showBattery) }
478- ) { toggleShowBattery() }
479- },
480- { _, onChange ->
481- if (prefs.showBattery) {
482- SettingsToggle (
483- title = stringResource(R .string.show_battery_icon),
484- fontSize = iconFs,
485- onChange = onChange,
486- state = remember { mutableStateOf(prefs.showBatteryIcon) }
487- ) { toggleShowBatteryIcon() }
488- }
489- },
490506 { _, onChange ->
491507 SettingsToggle (
492508 title = stringResource(R .string.lock_home_apps),
@@ -519,14 +535,6 @@ class SettingsFragment : Fragment() {
519535 fontSize = titleFs,
520536 selected = selected,
521537 items = arrayOf(
522- { _, onChange ->
523- SettingsToggle (
524- title = stringResource(R .string.display_app_usage_stats),
525- fontSize = iconFs,
526- onChange = onChange,
527- state = remember { mutableStateOf(prefs.appUsageStats) }
528- ) { toggleAppUsageStats() }
529- },
530538 { open, onChange ->
531539 if (! prefs.appUsageStats) {
532540 SettingsItem (
0 commit comments