hardcode dark theme on linux for now
parent
c5fa712ef0
commit
9cec5e901a
|
@ -30,7 +30,9 @@ abstract class AppThemeFactory {
|
||||||
GtkThemeData themeData = await GtkThemeData.initialize();
|
GtkThemeData themeData = await GtkThemeData.initialize();
|
||||||
gtkColorsScheme = ColorScheme.fromSeed(
|
gtkColorsScheme = ColorScheme.fromSeed(
|
||||||
seedColor: Color(themeData.theme_selected_bg_color),
|
seedColor: Color(themeData.theme_selected_bg_color),
|
||||||
brightness: brightness,
|
brightness: Color(themeData.theme_base_color).computeLuminance() > 0.5
|
||||||
|
? Brightness.light
|
||||||
|
: Brightness.dark,
|
||||||
background: Color(themeData.theme_bg_color),
|
background: Color(themeData.theme_bg_color),
|
||||||
surface: Color(themeData.theme_base_color),
|
surface: Color(themeData.theme_base_color),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue