From cf25e6c27ba4cd7fa9ff3d7febc238005e974c82 Mon Sep 17 00:00:00 2001 From: huanghongxun Date: Mon, 30 Mar 2020 16:30:10 +0800 Subject: [PATCH] fix: invisible scroll bar in webview --- HMCL/src/main/resources/assets/css/root.css | 12 ++++++++++-- .../main/resources/assets/log-window-content.html | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/HMCL/src/main/resources/assets/css/root.css b/HMCL/src/main/resources/assets/css/root.css index 615db89db..b149bdd51 100644 --- a/HMCL/src/main/resources/assets/css/root.css +++ b/HMCL/src/main/resources/assets/css/root.css @@ -18,11 +18,19 @@ .root { } -.scroll-bar { +.jfx-list-view .scroll-bar { -fx-skin: "org.jackhuang.hmcl.ui.construct.FloatScrollBarSkin"; } -.scroll-bar .track { +.jfx-list-view .scroll-bar .track { + -fx-fill: transparent; +} + +.scroll-pane .scroll-bar { + -fx-skin: "org.jackhuang.hmcl.ui.construct.FloatScrollBarSkin"; +} + +.scroll-pane .scroll-bar .track { -fx-fill: transparent; } diff --git a/HMCL/src/main/resources/assets/log-window-content.html b/HMCL/src/main/resources/assets/log-window-content.html index 3350c2505..ccff30795 100644 --- a/HMCL/src/main/resources/assets/log-window-content.html +++ b/HMCL/src/main/resources/assets/log-window-content.html @@ -44,7 +44,7 @@ .warn { background-color: #FFEECC; } .info { background-color: #FFFFFF; } .debug { background-color: #EEE9E0; } - .trace { background-color: blue; } + .trace { background-color: #FFFFFF; }