Give Dark Mode a try in the R2025a pre-release

General
Follow


Give Dark Mode a try in the R2025a pre-release

Mike Croucher on 13 Jan 2025 (Edited on 13 Jan 2025)
Latest activity Reply by Mitchell Sandoe on 22 Jan 2025 at 19:49

Hi everyone
The R2025a pre-release is now available to licensed users. I highly encourage you to download, give it a try and give us some feedback.
The first thing I tried was switching to Dark mode. Here's the magic
>> s = settings;
>> s.matlab.appearance.MATLABTheme.PersonalValue = "Dark";
Sign in to participate
Mitchell Sandoe
Mitchell Sandoe on 22 Jan 2025 at 16:41
This is great! Will make things much more comfortable for many users.
I was scavenging the events and set-observable properties surrounding the Theme and I can't seem to find anything that I can use to detect any changes to the theme from within the GUis of my program. Is there or will there be a way for us to listen for changes to settings().matlab.appearance.MATLABTheme or a figure's Theme? Apologies if I just did not look hard enough.
It would be helpful since font colors and icons chosen for the usual light gray theme have insufficient contrast in the dark theme. With there not being a great way for MATLAB to automatically adjust those details for us (I would guess), it would be nice to have a means to adapt for that ourselves.
Adam Danz
Adam Danz on 22 Jan 2025 at 18:29
In R2025a, figures have a ThemeChangedFcn callback function that responds when the figure's theme is changed.
Mitchell Sandoe
Mitchell Sandoe on 22 Jan 2025 at 19:49
Ah. Once again, I went the long way around. Thanks!
William Thielicke
William Thielicke on 21 Jan 2025 at 14:43 (Edited on 21 Jan 2025 at 14:44)
I think this is a nice thing to have. Unfortunately, the new system breaks my user interface (because some sizes of the elements seem to have changed). This will require quite some work I fear, and I don't have the time at the moment:
(right click on the image and select "open image in new tab" to see at full size)
Farouk
Farouk on 19 Jan 2025
great start but they could have done a better job. I was already getting this look with matlabSchemer. I hope they add more themes like VS code
Chen Lin
Chen Lin on 14 Jan 2025
This is great news! Dark Mode, which has been one of the popular topics in community, is availabe for everyone to try out! Let's have some good discussions here.
Go to top of page