mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
Refactor dark mode to allow multiple themes
This commit is contained in:
parent
9baaf824c6
commit
cf4aecbd3e
7 changed files with 64 additions and 17 deletions
|
@ -43,6 +43,15 @@ public class Preferences {
|
|||
return _prefs.getInt("pref_tap_to_reveal_time", 30);
|
||||
}
|
||||
|
||||
public int getCurrentTheme() {
|
||||
return _prefs.getInt("pref_current_theme", 0);
|
||||
}
|
||||
|
||||
public void setCurrentTheme(Theme theme) {
|
||||
_prefs.edit().putInt("pref_current_theme", theme.ordinal()).apply();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public int getTimeout() {
|
||||
return _prefs.getInt("pref_timeout", -1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue