- 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.
Why is the menu bar background white?
61 views (last 30 days)
Show older comments
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 Comments
Torsten
on 2 Feb 2026 at 10:58
Edited: Torsten
on 2 Feb 2026 at 11:07
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:
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:
Answers (2)
Matt J
on 3 Feb 2026 at 16:05
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:

2 Comments
Matt J
on 3 Feb 2026 at 19:25
You're welcome, but if/when you are satisfied that this resolves the problem well enough, and that there are no better solutions, please Accept-click the answer.
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!
