Does anyone have any idea how to set the Stage bac...
# tornadofx
s
Does anyone have any idea how to set the Stage background color of a ModalWindow to semi-transparent? I can set the opacity to .8 or so but that makes everything within the window itself transparent, not just the background. I'm opening a fragment like this:
RenameFragment().openModal(stageStyle = StageStyle.UTILITY, escapeClosesWindow = true)
and setting the stage options from the returned stage to:
newStage.scene.fill = Color.TRANSPARENT
and in my Styles.css I'm setting the vbox root of the
RenameFragment
style to
backgroundColor += Color.TRANSPARENT
and also the
root
class of the Fragment to transparent, but to no effect. 😞
l
Pretty cool there is something like
escapeClosesWindow = true
-- so far I've been always doing it manually using
shortcut("Esc") { close() }
😁