mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-03 15:24:25 +02:00
fix: navigation bar color (#197)
This commit is contained in:
parent
9c5b0b9c14
commit
110c3326bd
@ -29,10 +29,10 @@ class NavigationViewModel extends IndexTrackingViewModel {
|
|||||||
await prefs.setBool('useDarkTheme', isDark);
|
await prefs.setBool('useDarkTheme', isDark);
|
||||||
await DynamicTheme.of(context)!.setTheme(isDark ? 1 : 0);
|
await DynamicTheme.of(context)!.setTheme(isDark ? 1 : 0);
|
||||||
}
|
}
|
||||||
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
SystemUiOverlayStyle(
|
||||||
systemNavigationBarColor:
|
systemNavigationBarColor: Colors.transparent,
|
||||||
DynamicTheme.of(context)!.theme.colorScheme.surface,
|
|
||||||
systemNavigationBarIconBrightness:
|
systemNavigationBarIconBrightness:
|
||||||
DynamicTheme.of(context)!.theme.brightness == Brightness.light
|
DynamicTheme.of(context)!.theme.brightness == Brightness.light
|
||||||
? Brightness.dark
|
? Brightness.dark
|
||||||
|
@ -56,12 +56,6 @@ class SettingsViewModel extends BaseViewModel {
|
|||||||
} else {
|
} else {
|
||||||
await DynamicTheme.of(context)!.setTheme(value ? 3 : 1);
|
await DynamicTheme.of(context)!.setTheme(value ? 3 : 1);
|
||||||
}
|
}
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
|
||||||
SystemUiOverlayStyle(
|
|
||||||
systemNavigationBarColor:
|
|
||||||
DynamicTheme.of(context)!.theme.colorScheme.surface,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -79,8 +73,6 @@ class SettingsViewModel extends BaseViewModel {
|
|||||||
}
|
}
|
||||||
SystemChrome.setSystemUIOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(
|
||||||
SystemUiOverlayStyle(
|
SystemUiOverlayStyle(
|
||||||
systemNavigationBarColor:
|
|
||||||
DynamicTheme.of(context)!.theme.colorScheme.surface,
|
|
||||||
systemNavigationBarIconBrightness:
|
systemNavigationBarIconBrightness:
|
||||||
value ? Brightness.light : Brightness.dark,
|
value ? Brightness.light : Brightness.dark,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user