如何使 Matlab GUI 看起来更现代

How to make Matlab GUI look more modern

丑陋的 Matlab GUI 按钮风格和一切看起来都是 Windows95 年的风格,这是 20 年前的风格。我怎样才能使按钮、滚动条和 Matlab GUI 的整体感觉看起来不那么老套?有没有办法使用Matlab软件本身的原生风格并应用到GUIDE中?

尝试将默认的 Matlab 外观修改为 "Metal L&F",如下所示:

metal_laf = 'javax.swing.plaf.metal.MetalLookAndFeel';
javax.swing.UIManager.setLookAndFeel(metal_laf);

在 Windows 上,MATLAB 默认使用 "Windows Look and Feel",然后 MATLAB 图形控件具有原生外观。

您也可以尝试使用 Nimbus L&F:

nimbus_laf = 'com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel';
javax.swing.UIManager.setLookAndFeel(metal_laf);

但这通常会引起一些问题。

可以在 Undocumented MATLAB 博客中找到上述内容的完整和特别指南:

http://undocumentedmatlab.com/blog/modifying-matlab-look-and-feel