weixin_39918128 2020-11-20 13:09
浏览 0

Dialogs should be able to use custom stylesheet

Original report by Andreas Liebelt (Bitbucket: aliebelt, GitHub: aliebelt).

We use a custom style-class for designing the buttons of "Dialog" (see attachment: bottom-right / Windows-Style) :


#!java
Dialog dialog = new Dialog(owner, "My Title");
dialog.getWindow().getScene().getStylesheets().add(MyClass.class.getResource("/button.css").toExternalForm());

For "Dialogs" this is not possible (see attachment: visible dialog).

It would be nice if the API of "Dialogs" would provide a method to add custom stylesheets.

该提问来源于开源项目:controlsfx/controlsfx

  • 写回答

5条回答 默认 最新

  • weixin_39918128 2020-11-20 13:09
    关注

    Original comment by Jonathan Giles (Bitbucket: JonathanGiles, GitHub: JonathanGiles).

    Dialogs are now owned by OpenJFX, so bugs need to be filed over there.

    评论

报告相同问题?