简体   繁体   English

eclipse 编辑器中的背景图像

[英]Background image in eclipse editor

我想在 eclipse helios 的 java 编辑器中放置一个图像作为背景。

No, you can't have a background image for the editor section of Eclipse.不,您不能拥有 Eclipse 编辑器部分的背景图像。

To change background colour:要更改背景颜色:

Open Windows > Preferences > Editors > Text Editors打开 Windows > 首选项 > 编辑器 > 文本编辑器
Browse Appearance color options浏览外观颜色选项
Select background color options, uncheck default, change to black选择背景颜色选项,取消选中默认值,更改为黑色
Select background color options, uncheck default, change to colour of choice选择背景颜色选项,取消选中默认值,更改为选择的颜色

Check this : Color Themes for Eclipse检查这个: Eclipse的颜色主题

for example: this config set eclipse 4 text editor background image (path "./eclipse-text-editor-background-image.png") from folder "eclipse-kepler-standart/plugins/org.eclipse.platform_4.3.2.v20140221-1700/images" cat ~/eclipse-kepler-standart/plugins/org.eclipse.platform_4.3.2.v20140221-1700/css/e4_basestyle.css例如:此配置从文件夹“eclipse-kepler-standart/plugins/org.eclipse.platform_4.3.2.v20140221”中设置eclipse 4文本编辑器背景图像(路径“./eclipse-text-editor-background-image.png”) -1700/images" cat ~/eclipse-kepler-standart/plugins/org.eclipse.platform_4.3.2.v20140221-1700/css/e4_basestyle.css

.MPart StyledText {
  background-image: url(./eclipse-text-editor-background-image.png);
  background-color: white;
  color: black;
}

.MPartStack {
  swt-unselected-tabs-color: #2D3340 #2D3340 #2D3340 100% 100%;
  swt-outer-keyline-color: #FFFFFF;
    swt-inner-keyline-color: #FFFFFF;
    swt-tab-outline: #B6BCCC;
    swt-shadow-visible: true;
    swt-mru-visible: false;
}

.MPartStack.active {
    swt-inner-keyline-color: #FFFFFF;
    swt-tab-outline: #B6BCCC;
    swt-shadow-visible: true;
}

#PerspectiveSwitcher {
    eclipse-perspective-keyline-color: #AAB0BF #AAB0BF;
}

.MToolBar.Draggable {
    handle-image:  url(./dragHandle.png);
}

.MToolControl.Draggable {
    handle-image:  url(./dragHandle.png);
}

.DragFeedback {
    background-color: #00FF00; 
}

.ModifiedDragFeedback {
    background-color: #A0A000; 
}

CTabItem {
  font: Terminus;
    font-style: normal;
    font-weight: normal;
}

CTabItem.busy {
    font-style: italic;
}

CTabItem.highlighted {
    font-weight: bold;
}

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

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