Skip to content

Commit d3d46f6

Browse files
authored
Fix #5039: 修复陶瓦联机页面部分文本在深色模式下颜色异常的问题 (#5040)
1 parent 6f1db67 commit d3d46f6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

HMCL/src/main/java/org/jackhuang/hmcl/ui/terracotta/TerracottaControllerPage.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public TerracottaControllerPage() {
167167
progressProperty.set(0);
168168

169169
TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction);
170-
body.getStyleClass().add("terracotta-license");
170+
body.getStyleClass().add("terracotta-hint");
171171
body.setLineSpacing(4);
172172

173173
LineButton download = LineButton.of();
@@ -211,7 +211,7 @@ public TerracottaControllerPage() {
211211
progressProperty.set(1);
212212

213213
TextFlow flow = FXUtils.segmentToTextFlow(i18n("terracotta.confirm.desc"), Controllers::onHyperlinkAction);
214-
flow.getStyleClass().add("terracotta-license");
214+
flow.getStyleClass().add("terracotta-hint");
215215
flow.setLineSpacing(4);
216216

217217
LineButton host = LineButton.of();
@@ -286,6 +286,7 @@ public TerracottaControllerPage() {
286286
progressProperty.set(-1);
287287

288288
TextFlow body = FXUtils.segmentToTextFlow(i18n("terracotta.status.scanning.desc"), Controllers::onHyperlinkAction);
289+
body.getStyleClass().add("terracotta-hint");
289290
body.setLineSpacing(4);
290291

291292
LineButton room = LineButton.of();

HMCL/src/main/resources/assets/css/root.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
-fx-font-size: 15px;
351351
}
352352

353-
.terracotta-license Text {
353+
.terracotta-hint Text {
354354
-fx-fill: -monet-on-surface;
355355
}
356356

0 commit comments

Comments
 (0)