diff --git a/lib/settings.dart b/lib/settings.dart index 06d2f6b..a7db444 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -272,22 +272,13 @@ class Settings { static const deezerBottom = Color(0xFF1b1714); TextTheme get _textTheme => (font == 'Deezer') ? null - : GoogleFonts.getTextTheme(font, - isDark ? ThemeData.dark().textTheme : ThemeData.light().textTheme); + : GoogleFonts.getTextTheme( + font, + this.isDark + ? ThemeData.dark().textTheme + : ThemeData.light().textTheme); String get _fontFamily => (font == 'Deezer') ? 'MabryPro' : null; - //Overrides for the non-deprecated buttons to look like the old ones - OutlinedButtonThemeData get outlinedButtonTheme => OutlinedButtonThemeData( - style: ButtonStyle( - foregroundColor: - MaterialStateProperty.all(isDark ? Colors.white : Colors.black), - )); - TextButtonThemeData get textButtonTheme => TextButtonThemeData( - style: ButtonStyle( - foregroundColor: - MaterialStateProperty.all(isDark ? Colors.white : Colors.black), - )); - Map get _themeData => { Themes.Light: ThemeData( textTheme: _textTheme,