mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-03 22:56:53 +02:00
fix(mornye): soften glass rims and increase transparency
This commit is contained in:
1 parent
788c76c22d
commit
d1eba29a4a
2 files changed
+23
-20
No files matched your search
@@ -45,15 +45,18 @@ class MornyeTheme extends ThemeExtension<MornyeTheme> {
|
||||
);
|
||||
}
|
||||
|
||||
static double chromeOpacity(BuildContext context) =>
|
||||
Theme.of(context).extension<MornyeTheme>()?.chromeSurface != null
|
||||
? 0.42
|
||||
: 0.70;
|
||||
static double chromeOpacity(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
if (theme.extension<MornyeTheme>()?.chromeSurface != null) return 0.36;
|
||||
// Light glass needs more fill to keep dark subtitles readable over black.
|
||||
return theme.brightness == Brightness.dark ? 0.60 : 0.70;
|
||||
}
|
||||
|
||||
static double navigationOpacity(BuildContext context) =>
|
||||
Theme.of(context).extension<MornyeTheme>()?.chromeSurface != null
|
||||
? 0.28
|
||||
: 0.54;
|
||||
static double navigationOpacity(BuildContext context) {
|
||||
final theme = Theme.of(context);
|
||||
if (theme.extension<MornyeTheme>()?.chromeSurface != null) return 0.24;
|
||||
return theme.brightness == Brightness.dark ? 0.44 : 0.54;
|
||||
}
|
||||
|
||||
static const lightAccent = Color.fromRGBO(204, 46, 51, 1);
|
||||
static const darkAccent = Color.fromRGBO(224, 61, 60, 1);
|
||||
|
||||
Reference in new issue
Block a user