mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-07-07 01:41:33 +00:00
refactor: adjust high contrast condition order in theme settings for consistency
This commit is contained in:
parent
f96b954db3
commit
9a49dc5675
3 changed files with 5 additions and 5 deletions
|
|
@ -362,8 +362,8 @@ class _BookCover extends HookConsumerWidget {
|
||||||
themeOfLibraryItemProvider(
|
themeOfLibraryItemProvider(
|
||||||
itemId,
|
itemId,
|
||||||
brightness: Theme.of(context).brightness,
|
brightness: Theme.of(context).brightness,
|
||||||
highContrast: MediaQuery.of(context).highContrast ||
|
highContrast: themeSettings.highContrast ||
|
||||||
themeSettings.highContrast,
|
MediaQuery.of(context).highContrast,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.valueOrNull;
|
.valueOrNull;
|
||||||
|
|
|
||||||
|
|
@ -65,8 +65,8 @@ class AudiobookPlayer extends HookConsumerWidget {
|
||||||
themeOfLibraryItemProvider(
|
themeOfLibraryItemProvider(
|
||||||
itemBeingPlayed.valueOrNull?.id,
|
itemBeingPlayed.valueOrNull?.id,
|
||||||
brightness: Theme.of(context).brightness,
|
brightness: Theme.of(context).brightness,
|
||||||
highContrast: MediaQuery.of(context).highContrast ||
|
highContrast: appSettings.themeSettings.highContrast ||
|
||||||
appSettings.themeSettings.highContrast,
|
MediaQuery.of(context).highContrast,
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ class MyApp extends ConsumerWidget {
|
||||||
ColorScheme darkColorScheme = brandDarkColorScheme;
|
ColorScheme darkColorScheme = brandDarkColorScheme;
|
||||||
|
|
||||||
final shouldUseHighContrast =
|
final shouldUseHighContrast =
|
||||||
MediaQuery.of(context).highContrast || themeSettings.highContrast;
|
themeSettings.highContrast || MediaQuery.of(context).highContrast;
|
||||||
|
|
||||||
if (shouldUseHighContrast) {
|
if (shouldUseHighContrast) {
|
||||||
lightColorScheme = lightColorScheme.copyWith(
|
lightColorScheme = lightColorScheme.copyWith(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue