mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-07-06 17:31: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(
|
||||
itemId,
|
||||
brightness: Theme.of(context).brightness,
|
||||
highContrast: MediaQuery.of(context).highContrast ||
|
||||
themeSettings.highContrast,
|
||||
highContrast: themeSettings.highContrast ||
|
||||
MediaQuery.of(context).highContrast,
|
||||
),
|
||||
)
|
||||
.valueOrNull;
|
||||
|
|
|
|||
|
|
@ -65,8 +65,8 @@ class AudiobookPlayer extends HookConsumerWidget {
|
|||
themeOfLibraryItemProvider(
|
||||
itemBeingPlayed.valueOrNull?.id,
|
||||
brightness: Theme.of(context).brightness,
|
||||
highContrast: MediaQuery.of(context).highContrast ||
|
||||
appSettings.themeSettings.highContrast,
|
||||
highContrast: appSettings.themeSettings.highContrast ||
|
||||
MediaQuery.of(context).highContrast,
|
||||
),
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class MyApp extends ConsumerWidget {
|
|||
ColorScheme darkColorScheme = brandDarkColorScheme;
|
||||
|
||||
final shouldUseHighContrast =
|
||||
MediaQuery.of(context).highContrast || themeSettings.highContrast;
|
||||
themeSettings.highContrast || MediaQuery.of(context).highContrast;
|
||||
|
||||
if (shouldUseHighContrast) {
|
||||
lightColorScheme = lightColorScheme.copyWith(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue