Skip to content

Commit 6dc19eb

Browse files
committed
Add themes
Update UI
1 parent baf0b3f commit 6dc19eb

15 files changed

+422
-93
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>loper</groupId>
88
<artifactId>LogiLedus</artifactId>
9-
<version>1.0-SNAPSHOT</version>
9+
<version>1.1-SNAPSHOT</version>
1010

1111
<!-- <url></url> -->
1212
<description>

src/main/java/logiledus/About/AboutWindow.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import javafx.scene.Scene;
66
import javafx.scene.image.Image;
77
import javafx.stage.Stage;
8+
import logiledus.Mediator;
89

910
import java.io.IOException;
1011
import java.util.Locale;
@@ -35,8 +36,9 @@ public AboutWindow(){
3536
new Image(getClass().getResourceAsStream("/ico/appIcon_64.png")),
3637
new Image(getClass().getResourceAsStream("/ico/appIcon_128.png"))
3738
);
38-
stageAbout.setScene(new Scene(parentAbout, 500, 500));
39-
39+
Scene scene = new Scene(parentAbout, 500, 500);
40+
scene.getStylesheets().add(Mediator.getInstance().getPreferences().getTheme());
41+
stageAbout.setScene(scene);
4042
stageAbout.show();
4143

4244
} catch (IOException ignored){}

src/main/java/logiledus/AppPreferences.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ public AppPreferences(){
1414
public void setUseTray(boolean value){ preferences.putBoolean("USE_TRAY", value); }
1515
public boolean getUseTray(){ return preferences.getBoolean("USE_TRAY", true); }
1616

17-
/*
18-
public void setPath(String path){
19-
preferences.put("PATH", path);
20-
}
21-
public String getPath(){
22-
return preferences.get("PATH", "/");
23-
}
24-
*/
17+
public void setTheme(String value){ preferences.put("THEME", value); }
18+
public String getTheme(){ return preferences.get("THEME", "/light.css"); }
2519
}

src/main/java/logiledus/MainFx.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.ResourceBundle;
1717

1818
public class MainFx extends Application {
19-
public static final String appVersion = "v1.0";
19+
public static final String appVersion = "v1.1";
2020

2121
private static boolean traySupport = true;
2222

@@ -38,9 +38,6 @@ public void start(Stage primaryStage) throws Exception{
3838
SwingUtilities.invokeLater(this::addAppToTray);
3939
}
4040
//--------------------------------------------------------
41-
Mediator.getInstance().setHostServices(getHostServices());
42-
Mediator.getInstance().setPreferences(appPreferences);
43-
4441
FXMLLoader loader = new FXMLLoader(getClass().getResource("/Main.fxml"));
4542

4643
Locale locale = new Locale(Locale.getDefault().getISO3Language());
@@ -78,7 +75,12 @@ public void start(Stage primaryStage) throws Exception{
7875
primaryStage.setMinWidth(1215);
7976
primaryStage.setMinHeight(550);
8077
Scene mainScene = new Scene(root, 1215, 525);
81-
mainScene.getStylesheets().add("/light.css");
78+
mainScene.getStylesheets().add(appPreferences.getTheme());
79+
80+
Mediator.getInstance().setHostServices(getHostServices());
81+
Mediator.getInstance().setPreferences(appPreferences);
82+
Mediator.getInstance().setScene(mainScene);
83+
8284
primaryStage.setScene(mainScene);
8385
primaryStage.show();
8486

src/main/java/logiledus/Mediator.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,29 @@
11
package logiledus;
22

33
import javafx.application.HostServices;
4+
import javafx.scene.Scene;
45

56
public class Mediator{
67

78
private HostServices hostServices;
89
private AppPreferences preferences;
10+
private Scene scene;
911

1012
public static Mediator getInstance(){ return MediatorHolder.INSTANCE; }
1113

1214
public void setHostServices(HostServices hostServices){ this.hostServices = hostServices; }
1315
public void setPreferences(AppPreferences preferences){ this.preferences = preferences; }
16+
public void setScene(Scene scene){ this.scene = scene; }
1417

1518
private static class MediatorHolder{
1619
private static final Mediator INSTANCE = new Mediator();
1720
}
1821

1922
public HostServices getHostServices() { return hostServices; }
2023
public AppPreferences getPreferences() { return preferences; }
24+
25+
public void setTheme(String themeString){
26+
scene.getStylesheets().remove(0);
27+
scene.getStylesheets().add(themeString);
28+
}
2129
}

src/main/java/logiledus/Settings/SettingsController.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,26 @@ public class SettingsController implements Initializable {
1616
private Button cancelBtn, okBtn;
1717

1818
@FXML
19-
private CheckBox trayCB;
19+
private CheckBox trayCB, drkThemeCB;
2020

2121
@Override
2222
public void initialize(URL url, ResourceBundle resourceBundle) {
2323
trayCB.setSelected(Mediator.getInstance().getPreferences().getUseTray());
24+
if (Mediator.getInstance().getPreferences().getTheme().equals("/dark.css"))
25+
drkThemeCB.setSelected(true);
2426

2527
cancelBtn.setOnAction(actionEvent -> ((Stage) cancelBtn.getScene().getWindow()).close());
2628

2729
okBtn.setOnAction(actionEvent -> {
2830
Mediator.getInstance().getPreferences().setUseTray(trayCB.isSelected());
31+
if (drkThemeCB.isSelected()) {
32+
Mediator.getInstance().getPreferences().setTheme("/dark.css");
33+
Mediator.getInstance().setTheme("/dark.css");
34+
}
35+
else {
36+
Mediator.getInstance().getPreferences().setTheme("/light.css");
37+
Mediator.getInstance().setTheme("/light.css");
38+
}
2939
((Stage) cancelBtn.getScene().getWindow()).close();
3040
});
3141

src/main/java/logiledus/Settings/SettingsWindow.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import javafx.scene.Scene;
66
import javafx.scene.image.Image;
77
import javafx.stage.Stage;
8+
import logiledus.Mediator;
89

910
import java.io.IOException;
1011
import java.util.Locale;
@@ -35,7 +36,9 @@ public SettingsWindow(){
3536
new Image(getClass().getResourceAsStream("/ico/appIcon_64.png")),
3637
new Image(getClass().getResourceAsStream("/ico/appIcon_128.png"))
3738
);
38-
stageAbout.setScene(new Scene(parentAbout, 500, 500));
39+
Scene scene = new Scene(parentAbout, 500, 500);
40+
scene.getStylesheets().add(Mediator.getInstance().getPreferences().getTheme());
41+
stageAbout.setScene(scene);
3942

4043
stageAbout.show();
4144

src/main/resources/EffectsPane.fxml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

33
<?import javafx.geometry.Insets?>
4-
<?import javafx.scene.control.ColorPicker?>
5-
<?import javafx.scene.control.Label?>
6-
<?import javafx.scene.control.MenuButton?>
7-
<?import javafx.scene.control.RadioMenuItem?>
8-
<?import javafx.scene.control.Separator?>
9-
<?import javafx.scene.control.Slider?>
10-
<?import javafx.scene.control.ToggleGroup?>
4+
<?import javafx.scene.control.*?>
115
<?import javafx.scene.layout.HBox?>
126
<?import javafx.scene.layout.VBox?>
13-
147
<VBox spacing="5.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1" fx:controller="logiledus.Controllers.EffectsController">
158
<padding>
169
<Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />

src/main/resources/Main.fxml

Lines changed: 62 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<?import javafx.scene.control.ToolBar?>
1010
<?import javafx.scene.control.Tooltip?>
1111
<?import javafx.scene.layout.BorderPane?>
12+
<?import javafx.scene.layout.HBox?>
1213
<?import javafx.scene.layout.Pane?>
1314
<?import javafx.scene.layout.VBox?>
1415
<?import javafx.scene.shape.SVGPath?>
@@ -33,15 +34,15 @@
3334
<children>
3435
<TabPane fx:id="MainTabPane" side="LEFT" tabClosingPolicy="UNAVAILABLE" VBox.vgrow="ALWAYS">
3536
<tabs>
36-
<Tab fx:id="KeyLedTab">
37+
<Tab fx:id="KeyLedTab" closable="false">
3738
<content>
3839
<fx:include fx:id="KeysLeds" source="KeysLedsPane.fxml" VBox.vgrow="ALWAYS" />
3940
</content>
4041
<graphic>
4142
<SVGPath content="M12,6A6,6 0 0,1 18,12C18,14.22 16.79,16.16 15,17.2V19A1,1 0 0,1 14,20H10A1,1 0 0,1 9,19V17.2C7.21,16.16 6,14.22 6,12A6,6 0 0,1 12,6M14,21V22A1,1 0 0,1 13,23H11A1,1 0 0,1 10,22V21H14M20,11H23V13H20V11M1,11H4V13H1V11M13,1V4H11V1H13M4.92,3.5L7.05,5.64L5.63,7.05L3.5,4.93L4.92,3.5M16.95,5.63L19.07,3.5L20.5,4.93L18.37,7.05L16.95,5.63Z" />
4243
</graphic>
4344
</Tab>
44-
<Tab fx:id="EffectsTab">
45+
<Tab fx:id="EffectsTab" closable="false">
4546
<content>
4647
<ScrollPane fitToWidth="true">
4748
<fx:include fx:id="Effects" source="EffectsPane.fxml" VBox.vgrow="ALWAYS" />
@@ -51,7 +52,7 @@
5152
<SVGPath content="M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z" />
5253
</graphic>
5354
</Tab>
54-
<Tab fx:id="GameModeTab">
55+
<Tab fx:id="GameModeTab" closable="false">
5556
<content>
5657
<ScrollPane fitToWidth="true" prefHeight="200.0" prefWidth="200.0">
5758
<content>
@@ -71,57 +72,64 @@
7172
<top>
7273
<ToolBar styleClass="header" BorderPane.alignment="CENTER">
7374
<items>
74-
<Button fx:id="applyBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
75-
<tooltip>
76-
<Tooltip text="%btn_apply" />
77-
</tooltip>
78-
<graphic>
79-
<SVGPath content="M14,10H2V12H14V10M14,6H2V8H14V6M2,16H10V14H2V16M21.5,11.5L23,13L16,20L11.5,15.5L13,14L16,17L21.5,11.5Z" />
80-
</graphic>
81-
</Button>
82-
<Pane prefWidth="10.0" />
83-
<Button fx:id="openBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
84-
<graphic>
85-
<SVGPath content="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z" />
86-
</graphic>
87-
<tooltip>
88-
<Tooltip text="%btn_open" />
89-
</tooltip>
90-
</Button>
91-
<Button fx:id="saveBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
92-
<graphic>
93-
<SVGPath content="M17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V7L17 3M19 19H5V5H16.17L19 7.83V19M12 12C10.34 12 9 13.34 9 15S10.34 18 12 18 15 16.66 15 15 13.66 12 12 12M6 6H15V10H6V6Z" />
94-
</graphic>
95-
<tooltip>
96-
<Tooltip text="%btn_save" />
97-
</tooltip>
98-
</Button>
99-
<Button fx:id="saveAsBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
100-
<graphic>
101-
<SVGPath content="M7 22H9V24H7V22M11 22H13V24H11V22M15 22H17V24H15V22M17 2H5C3.89 2 3 2.9 3 4V18C3 19.1 3.89 20 5 20H19C20.1 20 21 19.1 21 18V6L17 2M19 18H5V4H16.17L19 6.83V18M12 11C10.34 11 9 12.34 9 14S10.34 17 12 17 15 15.66 15 14 13.66 11 12 11M6 5H15V9H6V5Z" />
102-
</graphic>
103-
<tooltip>
104-
<Tooltip text="%btn_save_as" />
105-
</tooltip>
106-
</Button>
107-
<Pane prefWidth="10.0" />
108-
<Button fx:id="settingsBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
109-
<graphic>
110-
<SVGPath content="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z" />
111-
</graphic>
112-
<tooltip>
113-
<Tooltip text="%btn_settings" />
114-
</tooltip>
115-
</Button>
116-
<Pane prefWidth="10.0" />
117-
<Button fx:id="aboutBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
118-
<graphic>
119-
<SVGPath content="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z" />
120-
</graphic>
121-
<tooltip>
122-
<Tooltip text="%menu_item_about" />
123-
</tooltip>
124-
</Button>
75+
<HBox spacing="5.0" styleClass="header-box">
76+
<children>
77+
<Button fx:id="applyBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
78+
<tooltip>
79+
<Tooltip text="%btn_apply" />
80+
</tooltip>
81+
<graphic>
82+
<SVGPath content="M14,10H2V12H14V10M14,6H2V8H14V6M2,16H10V14H2V16M21.5,11.5L23,13L16,20L11.5,15.5L13,14L16,17L21.5,11.5Z" />
83+
</graphic>
84+
<HBox.margin>
85+
<Insets right="10.0" />
86+
</HBox.margin>
87+
</Button>
88+
<Button fx:id="openBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
89+
<graphic>
90+
<SVGPath content="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z" />
91+
</graphic>
92+
<tooltip>
93+
<Tooltip text="%btn_open" />
94+
</tooltip>
95+
</Button>
96+
<Button fx:id="saveBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
97+
<graphic>
98+
<SVGPath content="M17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V7L17 3M19 19H5V5H16.17L19 7.83V19M12 12C10.34 12 9 13.34 9 15S10.34 18 12 18 15 16.66 15 15 13.66 12 12 12M6 6H15V10H6V6Z" />
99+
</graphic>
100+
<tooltip>
101+
<Tooltip text="%btn_save" />
102+
</tooltip>
103+
</Button>
104+
<Button fx:id="saveAsBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
105+
<graphic>
106+
<SVGPath content="M7 22H9V24H7V22M11 22H13V24H11V22M15 22H17V24H15V22M17 2H5C3.89 2 3 2.9 3 4V18C3 19.1 3.89 20 5 20H19C20.1 20 21 19.1 21 18V6L17 2M19 18H5V4H16.17L19 6.83V18M12 11C10.34 11 9 12.34 9 14S10.34 17 12 17 15 15.66 15 14 13.66 11 12 11M6 5H15V9H6V5Z" />
107+
</graphic>
108+
<tooltip>
109+
<Tooltip text="%btn_save_as" />
110+
</tooltip>
111+
</Button>
112+
<Button fx:id="settingsBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
113+
<graphic>
114+
<SVGPath content="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z" />
115+
</graphic>
116+
<tooltip>
117+
<Tooltip text="%btn_settings" />
118+
</tooltip>
119+
<HBox.margin>
120+
<Insets left="10.0" right="10.0" />
121+
</HBox.margin>
122+
</Button>
123+
<Button fx:id="aboutBtn" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" mnemonicParsing="false" prefHeight="36.0" prefWidth="42.0">
124+
<graphic>
125+
<SVGPath content="M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z" />
126+
</graphic>
127+
<tooltip>
128+
<Tooltip text="%menu_item_about" />
129+
</tooltip>
130+
</Button>
131+
</children>
132+
</HBox>
125133
</items>
126134
</ToolBar>
127135
</top>

src/main/resources/SettingsLayout.fxml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
</ButtonBar>
1818
</bottom>
1919
<center>
20-
<VBox BorderPane.alignment="CENTER">
20+
<VBox spacing="5.0" BorderPane.alignment="CENTER">
2121
<children>
2222
<CheckBox fx:id="trayCB" mnemonicParsing="false" text="%setting_tray_support" />
23+
<CheckBox fx:id="drkThemeCB" mnemonicParsing="false" text="%setting_use_dark_theme" />
2324
</children>
2425
</VBox>
2526
</center>

0 commit comments

Comments
 (0)