Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Set window icons for Alerts #1350

Open
Hely0n opened this issue Jan 15, 2022 · 0 comments
Open

Set window icons for Alerts #1350

Hely0n opened this issue Jan 15, 2022 · 0 comments

Comments

@Hely0n
Copy link

Hely0n commented Jan 15, 2022

Setting icons in the JavaFX way, they won't be set. So the following expression isn't effective when using TornadoFX:
(alert.dialogPane.scene.window as Stage).icons += (Image(getResStream("/desktop/images/dialog-warning.png")))

Is there another way to achieve this?
The "alert()" builder from TornadoFX seems to create the same Alert object as the Alert() constructor, so there are no functions like openModal() available, which would return a Stage in which icons could be added.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant