Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Update to alpha 7-fix.3: Add dynamic theme save
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed May 21, 2024
1 parent dd055f6 commit 719b30a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion application-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>

<artifactId>application-main</artifactId>
<version>2024.5-alpha.7-fix.2</version>
<version>2024.5-alpha.7-fix.3</version>

<properties>
<maven.compiler.source>21</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ private void sync(String request) {
background = Color.decode("#0a0310");
foreground = Color.white;
}
if(ApplicationConfig.theme.equalsIgnoreCase(request_[0])) {
ApplicationConfig.getSettings().set("settings.theme", request_[0]);
if(!ApplicationConfig.theme.equalsIgnoreCase(request_[0])) {
ApplicationConfig.theme = request_[0];
ApplicationConfig.getSettings().set("settings.theme", ApplicationConfig.theme);
}
String title = request_[1];
// Set the titlebar with the specified title, background, and foreground colors
Expand Down

0 comments on commit 719b30a

Please sign in to comment.