From 7dfeebff39cbd935cabd2e20cf9fbd4b14ee13b7 Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 24 Dec 2025 21:13:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20placeholder=20=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=9A=84=E9=A2=9C=E8=89=B2=20(#5057)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java | 2 +- HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java index 817d099a4..da386dd5f 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/MainPage.java @@ -391,7 +391,7 @@ public final class MainPage extends StackPane implements DecoratorPage { Node contentNode; if (menu.getContent().isEmpty()) { Label placeholder = new Label(i18n("version.empty")); - placeholder.setStyle("-fx-padding: 10px; -fx-text-fill: gray; -fx-font-style: italic;"); + placeholder.setStyle("-fx-padding: 10px; -fx-text-fill: -monet-on-surface-variant; -fx-font-style: italic;"); contentNode = placeholder; } else { contentNode = menu; diff --git a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java index 914bb3da7..cdaef77e5 100644 --- a/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java +++ b/HMCL/src/main/java/org/jackhuang/hmcl/ui/main/RootPage.java @@ -267,7 +267,7 @@ public class RootPage extends DecoratorAnimatedPage implements DecoratorPage { if (Accounts.getAccounts().isEmpty()) { Label placeholder = new Label(i18n("account.empty")); - placeholder.setStyle("-fx-padding: 10px; -fx-text-fill: gray; -fx-font-style: italic;"); + placeholder.setStyle("-fx-padding: 10px; -fx-text-fill: -monet-on-surface-variant; -fx-font-style: italic;"); scrollPane.add(placeholder); } else { for (Account account : Accounts.getAccounts()) {