Windows dark mode problem in app designer
32 views (last 30 days)
Show older comments
I recently updated MATLAB to 2025 and made a new standalone app version of my program again.
My problem is that everything in my program is now either the normal color (grey) or black and I found out it's related to my windows being in dark mode.
I can see that I haven't put the same type of background color on everything originally, so some things have a background color and some things don't have, and the things that don't have has now changed to black.
So I started going through all the code and all the components and changing everything to have no background color in hopes that my program will accommodate dark mode.
The problem is that the radio buttons, I can't seem to get them to work in dark mode. Am I overlooking something here or can someone help me? They dont have the background color?
My last question is, is there a way I could completely just tell that my program should be run in light mode always so I don't have to change everything in it to accommodate dark mode?
Thanks in advance. Johan
0 Comments
Accepted Answer
dpb
on 18 Sep 2025
Edited: dpb
on 18 Sep 2025
R2025a introduced some new features to at least begin to handle this -- see <Design Graphics and Apps for Different Themes> as a starting point.
How, specifically, or even if this will deal with the individual controls in the app I don't know, but it should give you a start on what Mathworks has in mind.
I'm guessing you'll need to set the equivalent of a style sheet set of colors that can be used on startup or in a callback to make such color changes programmatically unless/until Mathworks updates them to do so automagically.
As for the radio button background color itself, see if that is related to <this previous Answer> that there's an issue if the 'Interpreter' property is 'none'. Setting it to 'html' seems to fix that issue that apparently was inadvertently introduced in an update.
More Answers (0)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!