mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-23 11:14:44 -04:00
对齐启动面板底部组件
This commit is contained in:
parent
b727b6783c
commit
74ed377464
@ -80,7 +80,7 @@ public class TaskExecutorDialogPane extends BorderPane {
|
||||
{
|
||||
lblProgress = new Label("0.0 B/s"); // Prevent sudden changes in layout
|
||||
bottom.setLeft(lblProgress);
|
||||
BorderPane.setMargin(lblProgress, new Insets(4, 0, 0, 20));
|
||||
BorderPane.setMargin(lblProgress, new Insets(0, 0, 4, 14));
|
||||
|
||||
lblBottomTip = new Label(getRandomTip());
|
||||
lblBottomTip.setStyle("-fx-text-fill: rgba(100, 100, 100, 0.9)");
|
||||
|
@ -67,7 +67,14 @@ public final class RandomTip {
|
||||
lineLength += charLength;
|
||||
}
|
||||
|
||||
return formattedTip.toString();
|
||||
String result = formattedTip.toString();
|
||||
|
||||
// it's just a single line
|
||||
if (!result.contains("\n")) {
|
||||
result += "\n\t";
|
||||
}
|
||||
|
||||
return result.toString();
|
||||
}
|
||||
|
||||
private static final class FakeRandomIndex {
|
||||
|
Loading…
x
Reference in New Issue
Block a user