redesign. add: themes and text size

This commit is contained in:
ramollia
2025-10-06 21:08:36 +02:00
parent cfde1f8d7f
commit acc9972c80
44 changed files with 1637 additions and 757 deletions

View File

@@ -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();
}
}

View File

@@ -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;
}