Skip to content

Commit

Permalink
ScrollBar Skin: Improve appearance of minimal ScrollBar to be more in…
Browse files Browse the repository at this point in the history
…line with Modena
  • Loading branch information
dukke committed Mar 8, 2021
1 parent 2236b79 commit e2ddd5a
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions FXSkins/src/main/resources/com/pixelduke/control/skin/fx-skins.css
Original file line number Diff line number Diff line change
Expand Up @@ -292,25 +292,21 @@ TextField > .right-button:hover > .right-button-graphic {

.scroll-pane .minimal-scroll-bar {
-fx-background-color: transparent;
-fx-pref-width: 7;
-fx-pref-height: 7;
-fx-pref-width: 8;
-fx-pref-height: 8;
-fx-padding: 0;
}

.scroll-pane .minimal-scroll-bar > .track-background {
-fx-background-color: transparent;
}

.scroll-pane .minimal-scroll-bar:vertical .thumb {
-fx-background-insets: 0 0 0 5;
.scroll-pane > .minimal-scroll-bar:vertical .thumb {
-fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color-to-right;
}

.scroll-pane .minimal-scroll-bar:horizontal .thumb {
-fx-background-insets: 5 0 0 0;
}

.scroll-pane .minimal-scroll-bar .thumb {
-fx-background-color: #7a7a7a;
.scroll-pane > .minimal-scroll-bar:horizontal .thumb {
-fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color;
}

/************************ Normal ScrollBar *********************************/
Expand Down

0 comments on commit e2ddd5a

Please sign in to comment.