Released 9.2.6

This commit is contained in:
Alessandro Autiero
2024-09-12 15:46:24 +02:00
parent 4c3fe9bc65
commit a9af28273a
12 changed files with 328 additions and 155 deletions

View File

@@ -42,7 +42,8 @@ class _SettingsPageState extends RebootPageState<SettingsPage> {
List<Widget> get settings => [
_language,
_theme,
_installationDirectory
_debugMode,
_installationDirectory,
];
SettingTile get _language => SettingTile(
@@ -99,6 +100,29 @@ class _SettingsPageState extends RebootPageState<SettingsPage> {
child: Text(translations.settingsUtilsInstallationDirectoryContent),
)
);
SettingTile get _debugMode => SettingTile(
icon: Icon(
FluentIcons.developer_board_24_regular
),
title: Text("Debug mode"),
subtitle: Text("Whether the launcher should disable automatic features for troubleshooting"),
contentWidth: null,
content: Row(
children: [
Text(
_settingsController.debug.value ? translations.on : translations.off
),
const SizedBox(
width: 16.0
),
Obx(() => ToggleSwitch(
checked: _settingsController.debug.value,
onChanged: (value) => _settingsController.debug.value = value
))
],
)
);
}
extension _ThemeModeExtension on ThemeMode {