JFormDesigner / FlatLaf

FlatLaf - Swing Look and Feel (with Darcula/IntelliJ themes support)
https://www.formdev.com/flatlaf/
Apache License 2.0
3.42k stars 272 forks source link

Button Background #862

Closed MerlinUKRhapsody closed 4 months ago

MerlinUKRhapsody commented 4 months ago

I just cannot figure this one out - my JButtons behave correctly wrt to background, hovering, pressing etc - except after a button has been pressed and I move the mouse away - it gains a blue background color. This doesnt show up in the Theme Editor and I've set every 'background' color I can find for JButtons to the same thing:

image

Has anyone seen this before ?

DevCharly commented 4 months ago

Maybe you defined blue background for focused buttons?

MerlinUKRhapsody commented 4 months ago

I didnt - and that was the problem - I guess this was coming from the FlatLaf light theme from which mine inherits - i added the property to force it to the same background as an unfocussed one - thanks !