Fixed #113: when switch to launcher settings page, the theme changes to orange
This commit is contained in:
@@ -37,9 +37,6 @@ import org.jackhuang.hmcl.util.ui.SwingUtils;
|
|||||||
*/
|
*/
|
||||||
public class LauncherSettingsPanel extends RepaintPage {
|
public class LauncherSettingsPanel extends RepaintPage {
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates new form LancherSettingsPanel
|
|
||||||
*/
|
|
||||||
public LauncherSettingsPanel() {
|
public LauncherSettingsPanel() {
|
||||||
setRepainter(this);
|
setRepainter(this);
|
||||||
}
|
}
|
||||||
@@ -66,7 +63,8 @@ public class LauncherSettingsPanel extends RepaintPage {
|
|||||||
|
|
||||||
DefaultComboBoxModel<Theme> g = new DefaultComboBoxModel<>();
|
DefaultComboBoxModel<Theme> g = new DefaultComboBoxModel<>();
|
||||||
for (Theme t : Theme.THEMES.values())
|
for (Theme t : Theme.THEMES.values())
|
||||||
cboTheme.addItem(t);
|
g.addElement(t);
|
||||||
|
cboTheme.setModel(g);
|
||||||
|
|
||||||
txtBackgroundPath.setText(Settings.getInstance().getBgpath());
|
txtBackgroundPath.setText(Settings.getInstance().getBgpath());
|
||||||
txtCommonPath.setText(Settings.getInstance().getCommonpath());
|
txtCommonPath.setText(Settings.getInstance().getCommonpath());
|
||||||
|
|||||||
Reference in New Issue
Block a user