更新 placeholder 标签的颜色 (#5057)

This commit is contained in:
Glavo
2025-12-24 21:13:26 +08:00
committed by GitHub
parent 05a414c93f
commit 7dfeebff39
2 changed files with 2 additions and 2 deletions

View File

@@ -391,7 +391,7 @@ public final class MainPage extends StackPane implements DecoratorPage {
Node contentNode; Node contentNode;
if (menu.getContent().isEmpty()) { if (menu.getContent().isEmpty()) {
Label placeholder = new Label(i18n("version.empty")); 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; contentNode = placeholder;
} else { } else {
contentNode = menu; contentNode = menu;

View File

@@ -267,7 +267,7 @@ public class RootPage extends DecoratorAnimatedPage implements DecoratorPage {
if (Accounts.getAccounts().isEmpty()) { if (Accounts.getAccounts().isEmpty()) {
Label placeholder = new Label(i18n("account.empty")); 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); scrollPane.add(placeholder);
} else { } else {
for (Account account : Accounts.getAccounts()) { for (Account account : Accounts.getAccounts()) {