Windows dark mode problem in app designer
32 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Johan C
el 18 de Sept. de 2025
Comentada: Johan C
el 19 de Sept. de 2025
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 comentarios
Respuesta aceptada
dpb
el 18 de Sept. de 2025
Editada: dpb
el 18 de Sept. de 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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!