一、前言
最近MATLAB用的比较多,个人也比较喜欢黑色炫酷主题,在这里记录、分享修改MATLAB主题色的方法。
使用的Matlab版本为MATLAB R2019b
二、修改前
三、修改后
四、操作步骤
在Matlab命令行中输入prefdir,回车运行
获取matlab.prf所在路径
将matlab.prf文件用记事本打开
修改前内容如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #MATLAB Preferences #Mon Nov 02 15:26:39 CST 2020 DeploytoollastOpenFile=SF:\\matlab R2019b\\bin\\untitled1.prj MatlabExitConfirm=Bfalse DeploytoolrecentProjects=SF:\\matlab R2019b\\bin\\untitled1.prj;F:\\matlab R2019b\\bin\\test_matlab_java.prj;F:\\matlab R2019b\\bin\\javaCallMatlab.prj RLOrderB2_WB_2014b_1=S0:1: RLHiddenB2_WB_2014b_1=I16376 CommandWindowClearConfirmation=Btrue RLWidthB2_WB_2014b_1_1=I204 RLWidthB2_WB_2014b_1_0=I130 EditorMRU8=SF:\\matlab R2019b\\bin\\matlab-theme-changer-master\\src\\readme-color.txt EditorMRU7=SF:\\matlab R2019b\\bin\\matlab-theme-changer-master\\src\\matlabThemeChooser.m EditorMRU6=SF:\\matlab R2019b\\bin\\matlab-theme-changer-master\\src\\applyPrfFile.m EditorMRU5=SF:\\matlab R2019b\\bin\\matlab-theme-changer-master\\prf\\darcula.prf EditorMRU4=SF:\\matlab R2019b\\bin\\ColorSetting.m EditorMRU3=SF:\\matlab R2019b\\bin\\applyPrfFile.m EditorMRU2=SF:\\matlab R2019b\\bin\\darcula.prf EditorMRU1=SF:\\matlab R2019b\\bin\\matlabThemeChooser.m RLPrevInitB2_WB_2014b_1=Btrue HasAppendedMlxToFileExtensionsKey=Btrue
|
建议先备份该文件
然后将该文件的内容修改为如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| ColorsUseSystem=Bfalse ColorsUseMLintAutoFixBackground=Btrue Editor.VariableHighlighting.Automatic=Btrue Editor.NonlocalVariableHighlighting=Btrue EditorCodepadHighVisible=Btrue EditorCodeBlockDividers=Btrue Editorhighlight-caret-row-boolean=Bfalse EditorRightTextLineVisible=Btrue EditorRightTextLimitLineWidth=I1 ColorsText=C-5654586 ColorsBackground=C-14803426 Colors_M_Keywords=C-3377102 Colors_M_Comments=C-8355712 Colors_M_Strings=C-9795751 Colors_M_UnterminatedStrings=C-4440260 Colors_M_SystemCommands=C-7707333 Colors_M_Errors=C-6411993 Colors_M_TypeSection=C-14739 Color_CmdWinErrors=C-38040 Color_CmdWinWarnings=C-26368 Colors_HTML_HTMLLinks=C-14124066 Colors_M_Warnings=C-11382726 ColorsMLintAutoFixBackground=C-12569813 Editor.VariableHighlighting.Color=C-13477571 Editor.NonlocalVariableHighlighting.TextColor=C-6785366 Editorhighlight-lines=C-16777216 Editorhighlight-caret-row-boolean=Btrue Editorhighlight-caret-row-boolean-color=C-14145496 EditorRightTextLineVisible=Btrue EditorRightTextLimitLineColor=C-11711155 EditorRightTextLineLimit=I80 ColorsSearchResult=C-15379935 Desktop.Font.Code=F0 13 Monospaced
|
五、拓展
还可以在工具栏→预设进一步修改
可以进一步修改颜色和字体大小。