Closed BLahne closed 1 month 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.
Ohh i did not tested buttons with images, Thanks for reporting this, Will be fixed on the next patch.
Thanks, it works :-)
Hello, I have the same problem. After enabling dark mode all pictures from buttons are gone.
Hallo Bartq95, have you seen the comment from Aniobodo above (FlatStyle to Flat). button.FlatStyle = IsDarkMode ? FlatStyle.Flat : FlatStyle.Standard;
Hallo Bartq95, have you seen the comment from Aniobodo above (FlatStyle to Flat). button.FlatStyle = IsDarkMode ? FlatStyle.Flat : FlatStyle.Standard;
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.
This is my test:
in class DarkModeCS at Line 368:
My result:
It's working :) Thank you very much.
hi folks, Many thanks for your bug reports and contributions.
@BLahne i had modified the Code to add your fix:
button.Image is not displayed after using DarkModeCS