JFXtras / jfxtras-styles

Java, JavaFX themes or look and feels. Currently contains JMetro theme.
https://pixelduke.com/java-javafx-theme-jmetro/
642 stars 144 forks source link

Problem with Windows 10 Title bar #201

Closed se7kn8 closed 2 years ago

se7kn8 commented 3 years ago

JMetroVersion: 11.6.15 Java Version: 16.0.1 JavaFX Version: 16 OS: Windows 10 21h1

Expected look: grafik

How it looks when the Windows 10 Option "Show accent colour on title bars" is enabled: grafik

Maybe it would help to make the icon transparent and add some margin between the header text and the title bar.

dukke commented 3 years ago

Hi @SE7-KN8

Yeah I'm not sure that's possible. I don't remember exactly but I think the only option was to set a white icon so that the icon seems as if it is not showing. If this is the case then the only solution might be to create new Dialog controls that replace the standard ones from JavaFX. I would probably make them available in the FXSkins library than style them on JMetro.

dukke commented 2 years ago

As stated, there's no way to fix this in JMetro unfortunately. You can't provide a transparent icon to a window.

The only solution I see is for you to have an icon with a solid color painted on it. That color would be the same as the color of the title bar.

You would also have to add the margin yourself as on a standard window (all white) that margin would look bad.

dukke commented 2 years ago

Closing this issue..