
R2022b Simulink is unusable on dark themed KDE
25 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens

Problem: Simulink is unusable - white text on white/grey background, which makes the text unreadable, the tool strip (top of the GUI) is normal), but the bottom 3/4 of the GUI (the schematic editor in the middle, property inspector on the right, model browser on the left), is completely unusable.
Matlab is OK (the classic light theme), and Preference/Colors is NOT set to follow system (the OS's theme is plasma breeze dark).
If no definite solution to fix it can be provided, can someone point out the GUI technology behind the simulink window so I can try to fix it myself? It doesn't seem to be the same with the one used by matlab (which is some kind of java GUI I guess), is it built on web viewer (it feels like one)? Gtk web view or Qt web view?
Thanks.
Operating System: Red Hat Enterprise Linux 8.6
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Graphics Platform: X11
0 commentaires
Réponses (2)
Franklin Ronald
le 15 Mai 2024
Modifié(e) : Franklin Ronald
le 15 Mai 2024
Hi.
I'm using environment variables to set a light theme to MATLAB only.
XDG_CURRENT_DESKTOP=GNOME
GTK_THEME=Adwaita:light
And Simulink is light but usable.

1 commentaire
Devin
le 18 Mar 2025
Modifié(e) : Devin
le 18 Mar 2025
Hi all,
This fix does work great but if you launch MATLAB through the GUI like I do you can apply this fix permanetly by editing MATLAB's .desktop file.
Find MATLAB’s .desktop file (Usually in /usr/share/applications/matlab.desktop or ~/.local/share/applications/matlab.desktop).
Edit it using a text editor:
nano ~/.local/share/applications/matlab.desktop
Find the line starting with Exec= and modify it like this:
Exec=env XDG_CURRENT_DESKTOP=GNOME GTK_THEME=Adwaita:light matlab -desktop
depending on how your .desktop is set up it may be the directory to the MATLAB launcher and in that case, put
env XDG_CURRENT_DESKTOP=GNOME GTK_THEME=Adwaita:light
before the dierctory like so.
Exec=env XDG_CURRENT_DESKTOP=GNOME GTK_THEME=Adwaita:light /usr/local/MATLAB/R2024b/bin/matlab -desktop
Save and exit, then refresh the desktop database:
update-desktop-database ~/.local/share/applications
Now, MATLAB should always launch with these environment variables, even from the GUI.
Navya Singam
le 4 Oct 2022
Hi,
The team is aware of the issue and it may be fixed in the future releases.
The only way to solve the issue is to turn off the dark theme on system and then reinstalling MATLAB.
1 commentaire
Jan Mertes
le 17 Déc 2023
Hello,
is there a possibility to solve the problem yet?
I have exactly the same problem.
System: OpenSUSE Tumbleweed; Kernel: 6.6.6.1; Dekstop: KDE Plasma 5.27.10 with a Dark Theme (Breeze) on X11.
Kind regards
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!