Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant