mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-01 03:43:51 -04:00
修复无法使用部分日志字体的问题 (#4096)
This commit is contained in:
parent
bab863287d
commit
cbb83d4f15
@ -307,8 +307,8 @@ public final class LogWindow extends Stage {
|
|||||||
listView.scrollTo(listView.getItems().size() - 1);
|
listView.scrollTo(listView.getItems().size() - 1);
|
||||||
});
|
});
|
||||||
|
|
||||||
listView.setStyle("-fx-font-family: " + Lang.requireNonNullElse(config().getFontFamily(), FXUtils.DEFAULT_MONOSPACE_FONT)
|
listView.setStyle("-fx-font-family: \"" + Lang.requireNonNullElse(config().getFontFamily(), FXUtils.DEFAULT_MONOSPACE_FONT)
|
||||||
+ "; -fx-font-size: " + config().getFontSize() + "px;");
|
+ "\"; -fx-font-size: " + config().getFontSize() + "px;");
|
||||||
Holder<Object> lastCell = new Holder<>();
|
Holder<Object> lastCell = new Holder<>();
|
||||||
listView.setCellFactory(x -> new ListCell<Log>() {
|
listView.setCellFactory(x -> new ListCell<Log>() {
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user