fix: Further improvements on app theming

This commit is contained in:
Alberto Ponces
2022-09-07 12:01:04 +01:00
parent 3b830cf15a
commit 1e890708d2
11 changed files with 98 additions and 46 deletions

View File

@ -60,7 +60,7 @@ class InstallerView extends StatelessWidget {
preferredSize: const Size(double.infinity, 1.0),
child: LinearProgressIndicator(
color: Theme.of(context).colorScheme.primary,
backgroundColor: Colors.white,
backgroundColor: Theme.of(context).colorScheme.secondary,
value: model.progress,
),
),

View File

@ -34,26 +34,30 @@ class NavigationView extends StatelessWidget {
selectedIndex: model.currentIndex,
destinations: <Widget>[
NavigationDestination(
icon: const Icon(
Icons.dashboard_outlined,
),
icon: model.isIndexSelected(0)
? const Icon(Icons.dashboard)
: const Icon(Icons.dashboard_outlined),
label: FlutterI18n.translate(
context,
'main.dashboardTab',
'navigationView.dashboardTab',
),
),
NavigationDestination(
icon: const Icon(Icons.build_outlined),
icon: model.isIndexSelected(1)
? const Icon(Icons.build)
: const Icon(Icons.build_outlined),
label: FlutterI18n.translate(
context,
'main.patcherTab',
'navigationView.patcherTab',
),
),
NavigationDestination(
icon: const Icon(Icons.settings_outlined),
icon: model.isIndexSelected(2)
? const Icon(Icons.settings)
: const Icon(Icons.settings_outlined),
label: FlutterI18n.translate(
context,
'main.settingsTab',
'navigationView.settingsTab',
),
),
],

View File

@ -70,7 +70,7 @@ class SettingsViewModel extends BaseViewModel {
context: context,
builder: (context) => SimpleDialog(
title: I18nText('settingsView.languageLabel'),
backgroundColor: Theme.of(context).colorScheme.surface,
backgroundColor: Theme.of(context).colorScheme.secondaryContainer,
children: <Widget>[
RadioListTile<String>(
title: I18nText('settingsView.englishOption'),