BlueMystical / Dark-Mode-Forms

Apply Dark Mode to all Controls in a Form [WinForms]
GNU General Public License v3.0
110 stars 15 forks source link

Using Button Image #42

Closed BLahne closed 1 month ago

BLahne commented 2 months ago

button.Image is not displayed after using DarkModeCS

ButtonImage

Aniobodo commented 2 months ago

I had a similar (but not the same) with button. Setting a BackColor in Dark Mode did not reflect. But I found a way out of it by resetting the FlatStyle of the button to Flat.

BlueMystical commented 2 months ago

Ohh i did not tested buttons with images, Thanks for reporting this, Will be fixed on the next patch.

BLahne commented 2 months ago

Thanks, it works :-)

Bartq95 commented 1 month ago

Hello, I have the same problem. After enabling dark mode all pictures from buttons are gone. Tabelarka_dark

BLahne commented 1 month ago

Hallo Bartq95, have you seen the comment from Aniobodo above (FlatStyle to Flat). button.FlatStyle = IsDarkMode ? FlatStyle.Flat : FlatStyle.Standard; image

Bartq95 commented 1 month ago

Hallo Bartq95, have you seen the comment from Aniobodo above (FlatStyle to Flat). button.FlatStyle = IsDarkMode ? FlatStyle.Flat : FlatStyle.Standard; image

Hello BLahne,

in my app i dynamically add new buttons. I've addes flat style but image does not show at all. I'm a newbie programmer, maybe something i did wrong. Please take a look. Addnig new button is done after set dark mode.

image

BLahne commented 1 month ago

This is my test: image

in class DarkModeCS at Line 368: image

My result: image

Bartq95 commented 1 month ago

It's working :) Thank you very much.

image

BlueMystical commented 1 month ago

hi folks, Many thanks for your bug reports and contributions.

@BLahne i had modified the Code to add your fix:

image