diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Locales.java b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Locales.java index 7607c6896..66d249351 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/setting/Locales.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/setting/Locales.java @@ -32,7 +32,7 @@ public final class Locales { /** * English */ - public static final SupportedLocale EN = new SupportedLocale(Locale.ENGLISH); + public static final SupportedLocale EN = new SupportedLocale(Locale.ROOT); /** * Traditional Chinese diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/LeftPaneController.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/LeftPaneController.java index 76b415168..01ebe25d1 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/LeftPaneController.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/LeftPaneController.java @@ -126,9 +126,12 @@ public final class LeftPaneController { ripplerContainer.setOnMouseClicked(e -> { // clean selected property for (Node node : profilePane.getChildren()) - if (node instanceof RipplerContainer) + if (node instanceof RipplerContainer) { ((RipplerContainer) node).setSelected(false); + ((VersionListItem) ((RipplerContainer) node).getContainer()).setVersionName(""); + } ripplerContainer.setSelected(true); + item.setVersionName(Main.i18n("profile.selected")); Settings.INSTANCE.setSelectedProfile(profile); }); ripplerContainer.getProperties().put("profile", new Pair<>(profile.getName(), item)); diff --git a/HMCL/src/main/resources/assets/css/jfoenix-main-demo.css b/HMCL/src/main/resources/assets/css/jfoenix-main-demo.css index 86bab0f22..868232e52 100644 --- a/HMCL/src/main/resources/assets/css/jfoenix-main-demo.css +++ b/HMCL/src/main/resources/assets/css/jfoenix-main-demo.css @@ -545,16 +545,17 @@ * * *******************************************************************************/ -.jfx-list-cell { - -fx-background-insets: 0.0; - -fx-text-fill: BLACK; -} - .jfx-list-cell:odd, .jfx-list-cell:even { -fx-background-color: WHITE; } +.list-cell:selected, .jfx-list-cell:selected { + -fx-background-insets: 0.0; + -fx-text-fill: BLACK; + -fx-background-color: black; +} + .jfx-list-cell:filled:hover, .jfx-list-cell:selected .label { -fx-text-fill: black; @@ -564,9 +565,9 @@ -jfx-rippler-fill: -fx-base-color; } -.jfx-list-cell:odd:selected > .jfx-rippler > StackPane, -.jfx-list-cell:even:selected > .jfx-rippler > StackPane { - -fx-background-color: rgba(0.0, 0.0, 255.0, 0.2); +.list-cell:odd:selected > .jfx-rippler > StackPane, +.list-cell:even:selected > .jfx-rippler > StackPane { + -fx-background-color: derive(-fx-base-check-color, 30%); } .jfx-list-view { diff --git a/HMCL/src/main/resources/assets/img/alex.png b/HMCL/src/main/resources/assets/img/alex.png new file mode 100644 index 000000000..ffd8e0719 Binary files /dev/null and b/HMCL/src/main/resources/assets/img/alex.png differ diff --git a/HMCL/src/main/resources/assets/img/steve.png b/HMCL/src/main/resources/assets/img/steve.png new file mode 100644 index 000000000..90d4fa236 Binary files /dev/null and b/HMCL/src/main/resources/assets/img/steve.png differ diff --git a/HMCL/src/main/resources/assets/lang/I18N.properties b/HMCL/src/main/resources/assets/lang/I18N.properties index 15aba7afd..c33a9af53 100644 --- a/HMCL/src/main/resources/assets/lang/I18N.properties +++ b/HMCL/src/main/resources/assets/lang/I18N.properties @@ -299,6 +299,7 @@ profile.new=New Config profile.new_name=New Profile Name: profile.remove=Sure to remove profile %s? profile.title=Game Directories +profile.selected=Current directory selector.choose=Choose selector.choose_file=Select a file diff --git a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties index 7d67b42b0..d11d68dfb 100644 --- a/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties +++ b/HMCL/src/main/resources/assets/lang/I18N_zh_CN.properties @@ -299,6 +299,7 @@ profile.new=新建配置 profile.new_name=新配置名: profile.remove=真的要删除配置%s吗? profile.title=游戏目录 +profile.selected=当前目录 selector.choose=选择 selector.choose_file=选择文件