changeset 3030:6d708dde830a

Modena - tweaked Scrollbar button hover/pressed states
author mo.chicharro
date Wed, 20 Mar 2013 17:10:02 +0000
parents 8576c76a1c25
children 1293b4bf044e
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css	Wed Mar 20 16:09:51 2013 +0000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css	Wed Mar 20 17:10:02 2013 +0000
@@ -950,11 +950,18 @@
 }
 .scroll-bar > .increment-button, 
 .scroll-bar > .decrement-button {
-    -fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color; 
-    -fx-background-insets: 0, 1, 2;
+    -fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color;     
     -fx-color: transparent;
     -fx-padding: 0.25em; /* 3px */
 }
+.scroll-bar:horizontal > .increment-button,
+.scroll-bar:horizontal > .decrement-button {
+    -fx-background-insets: 2 1 2 1, 3 2 3 2, 4 3 4 3;
+}
+.scroll-bar:vertical > .increment-button,
+.scroll-bar:vertical > .decrement-button {
+    -fx-background-insets: 1 2 1 2, 2 3 2 3, 3 4 3 4;
+}
 .scroll-bar > .increment-button > .increment-arrow,
 .scroll-bar > .decrement-button > .decrement-arrow {
     -fx-background-color: -fx-mark-highlight-color,derive(-fx-base,-45%);