changeset 2230:111b0bfea8ff

RT-27520 : [QVGA] Implement CSS for PasswordField (2-level)
author mickf
date Mon, 14 Jan 2013 16:23:51 +0000
parents 0420b8bb5185
children fff917e7beea
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css
diffstat 1 files changed, 13 insertions(+), 8 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:56 2013 +0000
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/caspian/embedded.css	Mon Jan 14 16:23:51 2013 +0000
@@ -294,16 +294,21 @@
     -fx-opacity: 1.0;
 }
 
-.password-field:external-focus {
-    -fx-border-color: red; 
-    -fx-focus-color: red;
-    -fx-opacity: 0.8;
+
+.password-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%);
 }
-.password-field:internal-focus {
-    -fx-border-color: null; 
-    -fx-focus-color: #0093ff;
-    -fx-opacity: 1.0;
+.password-field:focused:external-focus .caret-handle {
+    -fx-background-color: transparent;
 }
+.password-field:focused:external-focus .selection-handle {
+    -fx-background-color: transparent;
+}
+.password-field:focused:internal-focus {
+    -fx-background-color: -fx-shadow-highlight-color, -fx-text-box-border, -fx-control-inner-background;
+}
+
 
 .text-area:external-focus {
     -fx-border-color: red;