Add an amoled black theme

This commit is contained in:
Bnyro
2023-04-13 18:19:24 +02:00
parent 537628f378
commit 3b28143a4e
11 changed files with 36 additions and 0 deletions

View File

@@ -263,6 +263,14 @@ class _ObtainiumState extends State<Obtainium> {
darkColorScheme = ColorScheme.fromSeed(
seedColor: defaultThemeColour, brightness: Brightness.dark);
}
// set the background and surface colors to pure black in the amoled theme
if (settingsProvider.useBlackTheme) {
darkColorScheme = darkColorScheme
.copyWith(background: Colors.black, surface: Colors.black)
.harmonized();
}
return MaterialApp(
title: 'Obtainium',
localizationsDelegates: context.localizationDelegates,