changeset 2286:e1921b721aa0

RT-20020: Windows: support Aero Glass effects for top-level windows RT-19988: Mac: Support NSTexturedBackgroundWindowMask style for windows Reviewed-by: Anthony Petrov, Artem Ananiev, Pavel Safrata, Richard Bair
author Petr Pchelko <petr.pchelko@oracle.com>
date Mon, 21 Jan 2013 12:57:39 +0400
parents 580420b7aeb4
children 9630723ae1a7
files javafx-ui-common/src/javafx/application/ConditionalFeature.java javafx-ui-common/src/javafx/stage/StageStyle.java
diffstat 2 files changed, 23 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/javafx/application/ConditionalFeature.java	Fri Jan 18 16:05:36 2013 +0100
+++ b/javafx-ui-common/src/javafx/application/ConditionalFeature.java	Mon Jan 21 12:57:39 2013 +0400
@@ -117,5 +117,16 @@
      * except Linux systems without the XComposite extension. The
      * XShape extension is used in that case, so the window edges are aliased.
      */
-    TRANSPARENT_WINDOW
+    TRANSPARENT_WINDOW,
+
+    /**
+     *  Indicates that a system supports {@link javafx.stage.StageStyle#UNIFIED}
+     *  <p>
+     *  NOTE: Currently, supported on:
+     *  <ul>
+     *      <li>Windows Vista+: a window is completely filled with the frozen glass effect</li>
+     *      <li>Mac OS X: a window has the brushed-metal textured background</li>
+     *  </ul>
+     */
+    UNIFIED_WINDOW
 }
--- a/javafx-ui-common/src/javafx/stage/StageStyle.java	Fri Jan 18 16:05:36 2013 +0100
+++ b/javafx-ui-common/src/javafx/stage/StageStyle.java	Mon Jan 21 12:57:39 2013 +0400
@@ -49,6 +49,16 @@
      * Defines a {@code Stage} style with a solid white background and minimal
      * platform decorations used for a utility window.
      */
-    UTILITY
+    UTILITY,
 
+    /**
+     * Defines a {@code Stage} style with platform decorations and eliminates the border between
+     * client area and decorations. The client area background is unified with the decorations.
+     * This is a conditional feature, to check if it is supported see
+     * {@link javafx.application.Platform#isSupported(javafx.application.ConditionalFeature)}.
+     * If the feature is not supported by the platform, this style downgrades to {@code StageStyle.DECORATED}
+     * <p>                                                   `
+     * NOTE: To see the effect the {@code Scene} covering the {@code Stage} should have {@code Color.TRANSPARENT}
+     */
+    UNIFIED
 }