简体   繁体   English

Dart 编辑主题

[英]Themes for Dart Editor

Right now, the white background is killing my eyes, as it's a looong dark night.现在,白色背景让我眼前一亮,因为这是一个漫长的黑夜。 Is it possible to change the theme (to something darker) from the Dart Editor (v 0.1)?是否可以从 Dart 编辑器 (v 0.1) 更改主题(更改为更暗的主题)? What about picking a background colour and syntax highlighting?选择背景颜色和语法高亮怎么样?

Yes, it is possible and I have just verified this quickfix for a darker background on the Dart Editor Version 0.1.0.201204042313 :是的,这是可能的,我刚刚在 Dart Editor Version 0.1.0.201204042313上验证了这个 quickfix 的较暗背景:

  1. Close the Dart Editor关闭 Dart 编辑器
  2. Open with your favorite editor the file: <DART-INSTALL-DIR>\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs使用您喜欢的编辑器打开文件: <DART-INSTALL-DIR>\workspace\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.ui.editors.prefs
  3. Change the content更改内容

from:从:

 #Fri Apr 06 20:28:37 EST 2012
 eclipse.preferences.version=1
 overviewRuler_migration=migrated_3.1

to:到:

#Fri Apr 06 20:28:38 EST 2012
AbstractTextEditor.Color.Background.SystemDefault=false
AbstractTextEditor.Color.Background=208,208,223
eclipse.preferences.version=1
overviewRuler_migration=migrated_3.1

Start your Dart Editor and the background should look like:启动你的 Dart 编辑器,背景应该是这样的:在此处输入图像描述

You may create a "complete theme" simply adding more properties to the org.eclipse.ui.editors.prefs and org.eclipse.jdt.ui.prefs files.您可以创建一个“完整的主题”,只需向org.eclipse.ui.editors.prefsorg.eclipse.jdt.ui.prefs文件添加更多属性。

I strongly suggest you to have a look inside the "Eclipse Preferences (EPF)" sample files of the project http://www.eclipsecolorthemes.org/我强烈建议您查看项目http://www.eclipsecolorthemes.org/的“Eclipse Preferences (EPF)”示例文件

I haven't tried yet but in theory you could manually install the plugin Eclipse Color Theme .我还没有尝试过,但理论上你可以手动安装插件Eclipse Color Theme


Update 06-Dec-2012 2012 年 12 月 6 日更新

The new Dart Editor Build 0.2.7.1_r15699 supports theming for both editor and panels.新的Dart Editor Build 0.2.7.1_r15699 支持编辑器和面板的主题化。 This "trick" is not needed anymore, please customize your theme using Preferences --> Visual Theme不再需要这个“技巧”,请使用Preferences --> Visual Theme在此处输入图像描述

Hannes Rammer built an open source tool for this Hannes Rammer 为此构建了一个开源工具

also available online at https://rainbow-dart.appspot.com/也可在线访问https://rainbow-dart.appspot.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM