Skip to content

Commit 36748a3

Browse files
authored
Fix #4941: 更新 JFXComboBox 下拉菜单滚动条样式 (#4951)
1 parent cf667b2 commit 36748a3

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • HMCL/src/main/resources/assets/css

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,6 @@
15451545
* Scroll Bar *
15461546
* *
15471547
******************************************************************************/
1548-
/* unsued? */
15491548

15501549
.scroll-bar:vertical > .track-background, .scroll-bar:horizontal > .track-background {
15511550
-fx-background-color: #F1F1F1;
@@ -1578,6 +1577,14 @@
15781577
-fx-shape: "M298 598l214-214 214 214h-428z";
15791578
}
15801579

1580+
.jfx-combo-box .scroll-bar {
1581+
-fx-skin: "org.jackhuang.hmcl.ui.construct.FloatScrollBarSkin";
1582+
}
1583+
1584+
.jfx-combo-box .scroll-bar .track {
1585+
-fx-fill: transparent;
1586+
}
1587+
15811588
/*******************************************************************************
15821589
* *
15831590
* Scroll Pane *

0 commit comments

Comments
 (0)