changeset 2232:af5f2545ff10

RT-27524 : [QVGA] Implement CSS for TextField (2-level)
author mickf
date Mon, 14 Jan 2013 16:25:36 +0000
parents fff917e7beea
children 30a2f46ad627
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css
diffstat 1 files changed, 14 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css	Mon Jan 14 16:24:31 2013 +0000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css	Mon Jan 14 16:25:36 2013 +0000
@@ -282,17 +282,21 @@
 }
 
 
+.text-field:focused:external-focus {
+    -fx-background-color: -fx-focus-color, -fx-text-box-border, -fx-control-inner-background;
+    -fx-prompt-text-fill: derive(-fx-control-inner-background,-30%);
+}
+.text-field:focused:external-focus .caret-handle {
+    -fx-background-color: transparent;
+}
+.text-field:focused:external-focus .selection-handle {
+    -fx-background-color: transparent;
+}
+.text-field:focused:internal-focus {
+    -fx-background-color: -fx-shadow-highlight-color, -fx-text-box-border, -fx-control-inner-background;
+    -fx-prompt-text-fill: transparent;
+}
 
-.text-field:external-focus {
-    -fx-border-color: red; 
-    -fx-focus-color: red;
-    -fx-opacity: 0.8;
-}
-.text-field:internal-focus {
-    -fx-border-color: null; 
-    -fx-focus-color: #0093ff;
-    -fx-opacity: 1.0;
-}
 
 
 .password-field:focused:external-focus {