changeset 2621:71f97b47e94d

Modena Tweaks - improved look for focused tab (also fixes RT-27857)
author mo.chicharro
date Thu, 14 Feb 2013 13:23:34 +0000
parents b2dfc3891302
children 6e7c79dda497
files javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css	Wed Feb 13 18:35:25 2013 -0500
+++ b/javafx-ui-controls/src/com/sun/javafx/scene/control/skin/modena/modena.css	Thu Feb 14 13:23:34 2013 +0000
@@ -1527,9 +1527,13 @@
     -fx-background-insets: 0 1 1 0, 1 2 0 1, 2 3 0 2;
 }
 .tab-pane:focused > .tab-header-area > .headers-region > .tab:selected .focus-indicator {
-    -fx-border-style: segments(0.166667em, 0.166667em);
-    -fx-border-width: 1;
-    -fx-border-color: -fx-focus-color;
+    -fx-border-width: 1, 1;
+    -fx-border-color: -fx-focus-color, -fx-faint-focus-color;
+    -fx-border-insets: -4 -4 -6 -5, -2 -2 -5 -3;
+    -fx-border-radius: 2, 1; /* looks sharper if outer border has a tighter radius (2 instead of 3) */
+}
+.tab-pane:focused > .tab-header-area > .headers-region > .tab:bottom:selected .focus-indicator {
+    -fx-border-insets: -6 -5 -4 -4, -5 -3 -2 -2;
 }
 .tab-pane > .tab-header-area > .headers-region > .tab:disabled:hover {
     -fx-color: -fx-base;