之前做 Lite,实在被 XE8 那个浓妆艳抹丑呆了,赶紧分析,原来 IDE 开始玩 Theme 了,引入的 ModernTheme220.bpl 导致的(后来对比,原来 XE7 起开始增加的)?
刚才看 EMB 官方关于 XE8 的更新说明:
http://docwiki.embarcadero.com/RADStudio/XE8/en/What%27s_New_in_Delphi_and_C%2B%2BBuilder_XE8
看到这个,原来人家官方就支持自定义的?
Visual Changes and Customization
The appearance of the IDE has changed for XE8. See System Registry Keys for IDE Visual Settings for information on how you can customize the appearance of the IDE.To revert some of the changes and make the XE8 IDE look more like XE7 IDE, follow these steps:
- Create a new text document (you can use any text editor) and copy the following text into it:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Embarcadero\BDS\XE8\ModernTheme] "FontName"="MS Sans Serif" "FontSize"=dword:00000008 "MainToolBarColor"="clBtnFace"
- Save the file with the
.reg
extension. - Execute the file. You will see a warning about changing the registry. You must accept in order to apply the changes.
-
- Note: You may need Administrator permissions to be able to execute registry script files. If the IDE was open when you set or changed registry values, you must restart the IDE for the values to take effect.
-
不过一番尝试,官方文档应该是手误或者 wiki 文档时 XE8 未正常发布?官方文档写错了,应该是 HKEY_CURRENT_USER\Software\Embarcadero\BDS\16.0\ModernTheme 而不是 HKEY_CURRENT_USER\Software\Embarcadero\BDS\XE8\ModernTheme
譬如这个:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Embarcadero\BDS\16.0\ModernTheme]
"FontName"="宋体"
"FontSize"=dword:00000009
"MainToolBarColor"="clBtnFace"