jfxtras-styles icon indicating copy to clipboard operation
jfxtras-styles copied to clipboard

Problem with Windows 10 Title bar

Open se7kn8 opened this issue 4 years ago • 1 comments

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.

se7kn8 avatar Jun 03 '21 16:06 se7kn8

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 avatar Jun 20 '21 20:06 dukke

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 avatar Aug 19 '22 16:08 dukke

Closing this issue..

dukke avatar Aug 19 '22 16:08 dukke