fix: 补充设置界面语言切换

This commit is contained in:
octopus_yan 2024-10-19 17:33:05 +08:00
parent 115e672f26
commit 30f05240f9
2 changed files with 10 additions and 4 deletions

View File

@ -37,8 +37,14 @@ public class SetupController extends BaseController<SetupViewModel> implements I
public CheckBox silentStartupCheckBox;
@I18n(key = "setup.close-to-tray.label")
public CheckBox closeToTrayCheckBox;
public ComboBox<Locale> languageComboBox;
@I18n(key = "setup.theme")
public Label themeLabel;
public ComboBox<Theme> themeComboBox;
@I18n(key = "setup.language")
public Label languageLabel;
public ComboBox<Locale> languageComboBox;
@I18n(key = "setup.proxy")
public Label proxySetupLabel;
public ComboBox<ProxySetup> proxySetupComboBox;
public Pane proxySetupPane;
@I18n(key = "setup.proxy.test")

View File

@ -14,15 +14,15 @@
<CheckBox fx:id="silentStartupCheckBox" text="%setup.silent-startup.label"/>
<CheckBox fx:id="closeToTrayCheckBox" text="%setup.close-to-tray.label"/>
<HBox alignment="CENTER_LEFT" spacing="10">
<Label text="%setup.theme"/>
<Label fx:id="themeLabel" text="%setup.theme"/>
<ComboBox fx:id="themeComboBox"/>
</HBox>
<HBox alignment="CENTER_LEFT" spacing="10">
<Label text="%setup.language"/>
<Label fx:id="languageLabel" text="%setup.language"/>
<ComboBox fx:id="languageComboBox"/>
</HBox>
<HBox alignment="CENTER_LEFT" spacing="20">
<Label styleClass="proxy-label" text="%setup.proxy"/>
<Label fx:id="proxySetupLabel" styleClass="proxy-label" text="%setup.proxy"/>
<ComboBox fx:id="proxySetupComboBox"/>
<Button fx:id="proxyCheck" onAction="#proxyTest" text="%setup.proxy.test"/>
</HBox>