Merge pull request #369 from Timbals/master

automatically adapt to system theme
This commit is contained in:
Michael Schättgen 2020-04-26 19:59:39 +02:00 committed by GitHub
commit 4ea8501fa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 24 deletions

View file

@ -98,7 +98,7 @@ public class Preferences {
}
public Theme getCurrentTheme() {
return Theme.fromInteger(_prefs.getInt("pref_current_theme", 0));
return Theme.fromInteger(_prefs.getInt("pref_current_theme", Theme.SYSTEM.ordinal()));
}
public void setCurrentTheme(Theme theme) {