mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +00:00
redesign. add: themes and text size
This commit is contained in:
@@ -24,6 +24,14 @@ public class SettingsAsset extends JsonAsset<Settings> {
|
||||
return getContent().fullScreen;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return getContent().theme;
|
||||
}
|
||||
|
||||
public String getLayoutSize() {
|
||||
return getContent().layoutSize;
|
||||
}
|
||||
|
||||
public void setVolume(int volume) {
|
||||
getContent().volume = volume;
|
||||
save();
|
||||
@@ -38,4 +46,14 @@ public class SettingsAsset extends JsonAsset<Settings> {
|
||||
getContent().fullScreen = fullscreen;
|
||||
save();
|
||||
}
|
||||
|
||||
public void setTheme(String theme) {
|
||||
getContent().theme = theme;
|
||||
save();
|
||||
}
|
||||
|
||||
public void setLayoutSize(String layoutSize) {
|
||||
getContent().layoutSize = layoutSize;
|
||||
save();
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
package org.toop.framework.settings;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
public class Settings {
|
||||
public boolean fullScreen = false;
|
||||
public String locale = "en";
|
||||
public String theme = "dark";
|
||||
public String layoutSize = "medium";
|
||||
public int volume = 15;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user