changeset 2229:0420b8bb5185

RT-27516 : [QVGA] Implement CSS for Slider (2-level)
author mickf
date Mon, 14 Jan 2013 16:22:56 +0000
parents 05c665c2b8fd
children 111b0bfea8ff
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css
diffstat 1 files changed, 18 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css	Mon Jan 14 16:22:05 2013 +0000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css	Mon Jan 14 16:22:56 2013 +0000
@@ -260,25 +260,29 @@
 }
 
 
-.slider:external-focus {
-    -fx-border-color: red; 
-    -xfx-focus-color: red;
-    -fx-opacity: 0.8;
+.slider {
+    -fx-background-color: -fx-shadow-highlight-color, -fx-text-box-border, -fx-control-inner-background;
+    -fx-background-color: transparent;
+    -fx-background-insets: 0, 1, 2;
+    -fx-background-radius: 3, 2, 2;
+    -fx-padding: 3 5 5 5;
 }
-.slider:internal-focus {
-    -fx-border-color: null; 
-    -fx-focus-color: #0093ff;
-    -fx-opacity: 1.0;
+.slider:focused:external-focus {
+    -fx-background-color: -fx-focus-color, -fx-text-box-border, -fx-control-inner-background;
+    -fx-background-insets: -0.4, 1, 2;
+    -fx-background-radius: 3.4, 2, 2;
+    -fx-prompt-text-fill: transparent;
+
 }
-.slider:external-focus > .thumb {
-    -xfx-border-color: red; 
-    -fx-focus-color: red;
+.slider:focused:internal-focus {
+    -fx-background-color: transparent;
 }
-.slider:internal-focus > .thumb {
-    -xfx-border-color: null; 
-    -fx-focus-color: #0093ff;
+.slider:focused:external-focus > .thumb {
+    -fx-focus-color: transparent;
 }
 
+
+
 .text-field:external-focus {
     -fx-border-color: red; 
     -fx-focus-color: red;