On Fri, 2 May 2025 10:32:42 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

>> Implementation of 
>> [`StageStyle.EXTENDED`](https://gist.github.com/mstr2/0befc541ee7297b6db2865cc5e4dbd09).
>
> Michael Strauß has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   simplify header area picking

An even more concise example. Create c:\empty.css and run this, then hover over 
the window icons and note no style is applied (or is partially applied):


 @Override
    public void start(Stage primaryStage) {
        BorderPane borderPane = new BorderPane();
        borderPane.setTop(new HeaderBar());
        Scene scene = new Scene(borderPane, 400, 300);
        primaryStage.setScene(scene);
        primaryStage.initStyle(StageStyle.EXTENDED);
        primaryStage.show();
        // Calling this once shown, breaks the window decoration 
(minimise/restore/close) CSS
        
scene.getStylesheets().add(Paths.get("C:\\empty.css").toUri().toString());
        
        // Even reproducible on a non-existing file
        // 
scene.getStylesheets().add(Paths.get("C:\\i_dont_even_need_to_exist.css").toUri().toString());
    }

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1605#issuecomment-2849128835

Reply via email to