Skip to content

Commit

Permalink
YaruBanner: more sane default colors (#449)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feichtmeier committed Dec 4, 2022
1 parent 1ea217f commit 40712c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/src/utilities/yaru_banner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ class YaruBanner extends StatelessWidget {
final borderRadius = BorderRadius.circular(10);

final light = theme.brightness == Brightness.light;
final defaultSurfaceTintColor = light
? theme.colorScheme.background
: theme.colorScheme.onSurface.withOpacity(0.01);

final defaultSurfaceTintColor =
light ? theme.cardColor : const Color.fromARGB(255, 126, 126, 126);
return Material(
color: Colors.transparent,
child: InkWell(
Expand All @@ -87,7 +87,7 @@ class YaruBanner extends StatelessWidget {
color: color,
shadowColor: Colors.transparent,
surfaceTintColor: surfaceTintColor ?? defaultSurfaceTintColor,
elevation: elevation ?? (light ? 4 : 6),
elevation: elevation ?? 1,
shape: RoundedRectangleBorder(
borderRadius: borderRadius
.inner(const EdgeInsets.all(4.0)), // 4 is the default margin
Expand Down

0 comments on commit 40712c6

Please sign in to comment.