mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-19 05:00:21 +02:00
System font and newer dependencies
This commit is contained in:
@@ -51,6 +51,24 @@ class SettingsProvider with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
String get appFont {
|
||||
return prefs?.getString('appFont') ?? 'Metropolis';
|
||||
}
|
||||
|
||||
set appFont(String appFont) {
|
||||
prefs?.setString('appFont', appFont);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
bool get tryUseSystemFont {
|
||||
return prefs?.getBool('tryUseSystemFont') ?? false;
|
||||
}
|
||||
|
||||
set tryUseSystemFont(bool tryUseSystemFont) {
|
||||
prefs?.setBool('tryUseSystemFont', tryUseSystemFont);
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
InstallMethodSettings get installMethod {
|
||||
return InstallMethodSettings
|
||||
.values[prefs?.getInt('installMethod') ?? InstallMethodSettings.normal.index];
|
||||
|
Reference in New Issue
Block a user