Skip to content

Commit

Permalink
fix high contrast divider color (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-loose committed Mar 23, 2023
1 parent bd7cddb commit 8be3e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/themes/common_themes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ ThemeData createYaruLightTheme({
);
return createYaruTheme(
colorScheme: colorScheme,
dividerColor: kDividerColorLight,
dividerColor: colorScheme.isHighContrast ? null : kDividerColorLight,
elevatedButtonColor: elevatedButtonColor,
elevatedButtonTextColor: elevatedButtonTextColor,
useMaterial3: useMaterial3,
Expand Down Expand Up @@ -523,7 +523,7 @@ ThemeData createYaruDarkTheme({
);
return createYaruTheme(
colorScheme: colorScheme,
dividerColor: kDividerColorDark,
dividerColor: colorScheme.isHighContrast ? null : kDividerColorDark,
elevatedButtonColor: elevatedButtonColor,
elevatedButtonTextColor: elevatedButtonTextColor,
useMaterial3: useMaterial3,
Expand Down

0 comments on commit 8be3e8e

Please sign in to comment.