Fix #5039: 修复陶瓦联机页面部分文本在深色模式下颜色异常的问题 (#5040)

This commit is contained in:
Glavo
2025-12-21 15:13:58 +08:00
committed by GitHub
parent 6f1db67e9a
commit d3d46f6a29
2 changed files with 4 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ public class TerracottaControllerPage extends StackPane {
progressProperty.set(0); progressProperty.set(0);
TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction); TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction);
body.getStyleClass().add("terracotta-license"); body.getStyleClass().add("terracotta-hint");
body.setLineSpacing(4); body.setLineSpacing(4);
LineButton download = LineButton.of(); LineButton download = LineButton.of();
@@ -211,7 +211,7 @@ public class TerracottaControllerPage extends StackPane {
progressProperty.set(1); progressProperty.set(1);
TextFlow flow = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction); TextFlow flow = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction);
flow.getStyleClass().add("terracotta-license"); flow.getStyleClass().add("terracotta-hint");
flow.setLineSpacing(4); flow.setLineSpacing(4);
LineButton host = LineButton.of(); LineButton host = LineButton.of();
@@ -286,6 +286,7 @@ public class TerracottaControllerPage extends StackPane {
progressProperty.set(-1); progressProperty.set(-1);
TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.status.scanning.desc"), Controllers::onHyperlinkAction); TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.status.scanning.desc"), Controllers::onHyperlinkAction);
body.getStyleClass().add("terracotta-hint");
body.setLineSpacing(4); body.setLineSpacing(4);
LineButton room = LineButton.of(); LineButton room = LineButton.of();

View File

@@ -350,7 +350,7 @@
-fx-font-size: 15px; -fx-font-size: 15px;
} }
.terracotta-license Text { .terracotta-hint Text {
-fx-fill: -monet-on-surface; -fx-fill: -monet-on-surface;
} }