hardcode dark theme on linux for now

pull/90/head
Inex Code 2022-05-03 15:18:06 +03:00
parent c5fa712ef0
commit 9cec5e901a
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ abstract class AppThemeFactory {
GtkThemeData themeData = await GtkThemeData.initialize();
gtkColorsScheme = ColorScheme.fromSeed(
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),
surface: Color(themeData.theme_base_color),
);