This commit is contained in:
pato05 2021-07-23 19:17:28 +02:00
commit 10a5455cc7

View file

@ -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<Themes, ThemeData> get _themeData => {
Themes.Light: ThemeData(
textTheme: _textTheme,