Skip to content

Commit aacd2ca

Browse files
committed
Update default theme behavior
1 parent 25f7d06 commit aacd2ca

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

application-main/src/main/java/com/zyneonstudios/application/Application.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ private void initConfig() {
5252
config.checkEntry("settings.language","auto");
5353
config.checkEntry("settings.memory.default", 1024);
5454
config.checkEntry("settings.logger.debug", false);
55-
config.checkEntry("settings.appearance.theme","zyneon");
55+
config.checkEntry("settings.appearance.theme","dark");
5656

5757
theme = config.getString("settings.appearance.theme");
5858
memory = config.getInteger("settings.memory.default");
@@ -80,7 +80,7 @@ public void start() {
8080
Main.getLogger().log("[APP] Setting up frame and webview...");
8181
checkURL();
8282
Main.getLogger().log("[APP] Styling webview frame...");
83-
frame.setTitlebar("Zyneon Application", Color.decode("#050113"), Color.white);
83+
frame.setTitlebar("Zyneon Application", Color.black, Color.white);
8484
frame.setVisible(true);
8585
frame.addWindowListener(new WindowAdapter() {
8686
@Override
@@ -198,15 +198,15 @@ public static String getStartURL() {
198198
}
199199

200200
public static String getNewsURL() {
201-
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "start.html?theme=" + theme;
201+
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "start.html";
202202
}
203203

204204
public static String getInstancesURL() {
205-
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "instances.html?theme=" + theme;
205+
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "instances.html";
206206
}
207207

208208
public static String getSettingsURL() {
209-
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "settings.html?theme=" + theme;
209+
return "file://" + Main.getDirectoryPath() + "libs/zyneon/" + Main.version + "/" + "settings.html";
210210
}
211211

212212
private void checkURL() throws IOException, UnsupportedPlatformException, CefInitializationException, InterruptedException {

application-ui/content/assets/zyneon/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ h3 a:hover {
311311
transition: 0.25s;
312312
}
313313

314-
#global-button,#profile-button,#actions-title,#refresh-button,#exit-button,#startTab,#startTitle,#profile_,#instance-button {
314+
#global-button,#profile-button,#refresh-button,#exit-button,#startTab,#startTitle,#profile_,#instance-button {
315315
display: none;
316316
}
317317

application-ui/content/assets/zyneon/js/settings.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ function syncApp(ver) {
101101
document.getElementById("app-version").innerText = ver;
102102
document.getElementById("global-button").style.display = "inherit";
103103
document.getElementById("profile-button").style.display = "inherit";
104-
document.getElementById("actions-title").style.display = "inherit";
105104
document.getElementById("refresh-button").style.display = "inherit";
106105
document.getElementById("exit-button").style.display = "inherit";
107106
document.getElementById("startTitle").style.display = "inherit";

0 commit comments

Comments
 (0)