This is reproducible only on mac platforms, works fine on windows
I'm showing a Stage with opacity < 1.0. If this stage is made fullscreen, the fullscreen's scene is shown with the opacity set, although the stage as such is opaque.
To reproduce, run the below code. Changing the slider reduces the opacity of the Stage. Change the slider value and click the 'fullscreen' checkbox to make the Stage fullscreen. It can be seen that a fullscreen stage is shown, but the contents - rectangle, slider and checkbox looks transparent
import javafx.scene.*;
import javafx.stage.*;
import javafx.ext.swing.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
var fullScreen: Boolean = false;
var opacity: Integer = 100 on replace {
opacityNum = (opacity / 100.0) as Number;
};
var opacityNum: Number = 1.0 on replace {
opacity = (opacityNum * 100.0) as Integer;
};
Stage {
fullScreen: bind fullScreen
opacity: bind opacityNum with inverse
scene: Scene {
content: [Rectangle {
width: 100
height: 100
x: 50
y: 50
fill: Color.BLUE
}, SwingSlider {
minimum: 0
maximum: 100
value: bind opacity with inverse
translateX: 40
translateY: 200
width: 80
}, SwingCheckBox {
text: "FullScreen"
selected: bind fullScreen with inverse
translateX: 40
translateY: 230
}]
}
}
I'm showing a Stage with opacity < 1.0. If this stage is made fullscreen, the fullscreen's scene is shown with the opacity set, although the stage as such is opaque.
To reproduce, run the below code. Changing the slider reduces the opacity of the Stage. Change the slider value and click the 'fullscreen' checkbox to make the Stage fullscreen. It can be seen that a fullscreen stage is shown, but the contents - rectangle, slider and checkbox looks transparent
import javafx.scene.*;
import javafx.stage.*;
import javafx.ext.swing.*;
import javafx.scene.shape.*;
import javafx.scene.paint.*;
var fullScreen: Boolean = false;
var opacity: Integer = 100 on replace {
opacityNum = (opacity / 100.0) as Number;
};
var opacityNum: Number = 1.0 on replace {
opacity = (opacityNum * 100.0) as Integer;
};
Stage {
fullScreen: bind fullScreen
opacity: bind opacityNum with inverse
scene: Scene {
content: [Rectangle {
width: 100
height: 100
x: 50
y: 50
fill: Color.BLUE
}, SwingSlider {
minimum: 0
maximum: 100
value: bind opacity with inverse
translateX: 40
translateY: 200
width: 80
}, SwingCheckBox {
text: "FullScreen"
selected: bind fullScreen with inverse
translateX: 40
translateY: 230
}]
}
}