Skip to content

Commit

Permalink
fries: Add advanced reboot
Browse files Browse the repository at this point in the history
Change-Id: I0b8138516fe484f2da8e1e77bad27cb3754795a0
  • Loading branch information
AgentFabulous committed Feb 21, 2021
1 parent 8edc36d commit ee62cca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/locales/en-US/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<string name="buttons.title">Buttons</string>
<string name="buttons.volume_button_music_control.title">Volume buttons to skip tracks</string>
<string name="buttons.volume_button_music_control.desc">Long press volume buttons to forward/backward track</string>
<string name="buttons.advanced_reboot.title">Advanced Reboot</string>
<string name="buttons.advanced_reboot.desc">Show extra reboot options</string>
<string name="gestures.title">Gestures</string>
<string name="gestures.double_tap_sleep_lockscreen.title">Double tap to sleep on lockscreen</string>
<string name="gestures.double_tap_sleep_lockscreen.desc">Turn off screen by double tapping empty space on lockscreen</string>
Expand Down
11 changes: 11 additions & 0 deletions lib/data/system.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ final List<Preference> sysButton = [
),
minVersion: '4.0.0',
),
SettingPreference.withSwitch(
setting: 'advanced_reboot',
title: LocaleStrings.system.buttonsAdvancedRebootTitle,
description: LocaleStrings.system.buttonsAdvancedRebootDesc,
icon: SmartIconData.iconData(MdiIcons.powerSettings),
type: SettingType.SYSTEM,
options: SwitchOptions(
defaultValue: false,
),
minVersion: '4.0.3',
),
];

final List<Preference> systemGesture = [
Expand Down
2 changes: 2 additions & 0 deletions lib/locales/locale_strings.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class _$SystemLocaleStrings {
final String buttonsTitle = "system.buttons.title".tr();
final String buttonsVolumeButtonMusicControlTitle = "system.buttons.volume_button_music_control.title".tr();
final String buttonsVolumeButtonMusicControlDesc = "system.buttons.volume_button_music_control.desc".tr();
final String buttonsAdvancedRebootTitle = "system.buttons.advanced_reboot.title".tr();
final String buttonsAdvancedRebootDesc = "system.buttons.advanced_reboot.desc".tr();
final String gesturesTitle = "system.gestures.title".tr();
final String gesturesDoubleTapSleepLockscreenTitle = "system.gestures.double_tap_sleep_lockscreen.title".tr();
final String gesturesDoubleTapSleepLockscreenDesc = "system.gestures.double_tap_sleep_lockscreen.desc".tr();
Expand Down
2 changes: 2 additions & 0 deletions lib/locales/locales.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ class _$LocaleEnUS extends _$LocaleBase {
"system.buttons.title": "Buttons",
"system.buttons.volume_button_music_control.title": "Volume buttons to skip tracks",
"system.buttons.volume_button_music_control.desc": "Long press volume buttons to forward/backward track",
"system.buttons.advanced_reboot.title": "Advanced Reboot",
"system.buttons.advanced_reboot.desc": "Show extra reboot options",
"system.gestures.title": "Gestures",
"system.gestures.double_tap_sleep_lockscreen.title": "Double tap to sleep on lockscreen",
"system.gestures.double_tap_sleep_lockscreen.desc": "Turn off screen by double tapping empty space on lockscreen",
Expand Down

0 comments on commit ee62cca

Please sign in to comment.