Skip to content

Commit

Permalink
Tone down dark borders (#358)
Browse files Browse the repository at this point in the history
* Tone down dark borders

* Tone down shimmers
  • Loading branch information
Feichtmeier authored Dec 13, 2023
1 parent 50a9982 commit a075dde
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
7 changes: 4 additions & 3 deletions lib/src/app/musicpod.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ class MusicPod extends StatelessWidget {
return GtkApplication(
child: MusicPodApp(
lightTheme: yaruThemeData.theme,
darkTheme: yaruThemeData.darkTheme
?.copyWith(scaffoldBackgroundColor: const Color(0xFF1e1e1e)),
darkTheme: yaruThemeData.darkTheme?.copyWith(
scaffoldBackgroundColor: const Color(0xFF1e1e1e),
),
),
);
},
Expand All @@ -49,7 +50,7 @@ class MusicPodApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
const dividerColor = Color.fromARGB(28, 255, 255, 255);
const dividerColor = Color.fromARGB(19, 255, 255, 255);
return MaterialApp(
debugShowCheckedModeBanner: false,
theme: lightTheme,
Expand Down
8 changes: 5 additions & 3 deletions lib/src/common/audio_card.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class _AudioCardState extends State<AudioCard> {
Shimmer.fromColors(
baseColor: light ? kCardColorLight : kCardColorDark,
highlightColor: light
? kCardColorLight.scale(lightness: -0.03)
? kCardColorLight.scale(lightness: -0.01)
: kCardColorDark.scale(lightness: 0.01),
child: Container(
color: light ? kCardColorLight : kCardColorDark,
Expand Down Expand Up @@ -143,8 +143,10 @@ class Banner extends StatelessWidget {
border: elevation == 0
? null
: Border.all(
width: light ? 0.8 : 0.5,
color: theme.colorScheme.onSurface.withOpacity(0.01),
width: 1,
color: light
? theme.colorScheme.onSurface.withOpacity(0.05)
: Colors.white.withOpacity(0.005),
),
),
width: double.infinity,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/common/audio_card_bottom.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class AudioCardBottom extends StatelessWidget {
child: Shimmer.fromColors(
baseColor: light ? kCardColorLight : kCardColorDark,
highlightColor: light
? kCardColorLight.scale(lightness: 0.1)
: kCardColorDark.scale(lightness: 0.1),
? kCardColorLight.scale(lightness: -0.1)
: kCardColorDark.scale(lightness: 0.05),
child: Container(
color: light ? kCardColorLight : kCardColorDark,
),
Expand Down

0 comments on commit a075dde

Please sign in to comment.