Why is the menu bar background white?
Mostrar comentarios más antiguos
When I create a figure (using figure func), the menu bar background is white. Is there a way to change this? It seems that this could be Windows dependent since, on another computer, the menu bar is grey as expected.

2 comentarios
Answer from AI:
To change the MATLAB desktop menu bar/toolstrip background color, navigate to Home > Environment > Preferences > MATLAB > Appearance > Colors and adjust the theme. For GUI applications, use set(gcf, 'Color', 'k') to change the figure background color, or set(0, 'DefaultFigureColor', 'k') for all figures.
Key Details for Changing MATLAB Appearance:
- Desktop Theme (R2025a and later): Go to Preferences -> MATLAB -> Appearance -> Colors to change theme colors, such as setting a dark background.
- Desktop Theme (Before R2025a): In Preferences -> MATLAB -> Colors, clear "Use system colors" to customize desktop tool colors.
- GUI Figure Backgrounds: Use set(gcf, 'Color', [R G B]) for specific figures or set(0, 'DefaultFigureColor', 'w') to change the default color for all new figures.
- Toolbar UI Component: Use tb = uitoolbar(fig); tb.BackgroundColor = [0.5 0.5 0.5]; to customize specific toolbar component colors.
- Simulink Background: In the Format tab, select a color from the Background menu to change the model canvas color.
If you are trying to make the entire MATLAB desktop interface dark (including the top menu bar/toolstrip), this is currently limited to the official Dark Theme setting in Preferences, as comprehensive UI customization is not supported.
And here is the MATLAB page:
Luc
el 2 de Feb. de 2026
Respuestas (2)
Matt J
el 3 de Feb. de 2026
0 votos
You could also upgrade to R2025. There, the menu bar is grey (or at least not as white)

and you can also render figures in dark theme:

Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

