如何更改Eclipse中自动填充框中的高亮颜色 [英] How to change the highlight color in autocomplete box in Eclipse

查看:560
本文介绍了如何更改Eclipse中自动填充框中的高亮颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





从屏幕截图中可以看出,浅灰色背景上的白色文字不是非常可读。






Ubuntu 11.10与Unity和Eclipse Classic






更新:确实与系统相关。改变Ubuntu主题会改变这种颜色。在 / usr / share / themes / Ambiance / 中有这样的设置,但是我无法弄清楚哪一个。背景是一个渐变,所以选择颜色和灰度不起作用。

解决方案

它必须是一个系统设置,尝试Ubuntu控制中心(系统设置)/外观/自定义。单击所有选项卡,看看哪个颜色与eclipse中的颜色相匹配。



更新:
我刚刚意识到在ubuntu 11.04中一些奇怪的原因是可以自定义颜色被删除,您需要更改配置文件

  sudo vim / usr / share /主题/环境/ gtk-2.0 / gtkrc 

在我的版本行94是

  base [ACTIVE] = shade(0.97,@bg_color)

您需要根据需要进行更改,例如:

  base [ACTIVE] = shade (0.50,@bg_color)

然后你进入系统设置/外观,将主题更改为某事改回氛围,瞧,事情发生了变化。我只是无法想象为什么没有UI来改变这个。



更新2:这与其他评论者建议的仅仅是在一个不同的文件中略有相似。我想有区别是这将影响全球系统



更新2:



在ubuntu 11.10中仍然没有GUI来更改主题颜色,但是它们也改变了文件结构,所以exectute以下命令(与上述相同)

  sudo vim /usr/share/themes/Ambiance/gtk-2.0/gtkrc 

并搜索控制工具提示颜色的这一部分:

  styletooltips{
bg [NORMAL] = @ tooltip_bg_color
fg [NORMAL] = @tooltip_fg_color
}

而alter则为你希望例如:

  bg [NORMAL] =#000000
fg [NORMAL] =#FFFFFF

更新3:



p ub ub ub b b b b b b b b b b b b b b b b b b b b b b b b

I can't find a way to change the color of the highlighted selection in the autocomplete box in Eclipse.

As you can see from the screenshot white text on light gray background is not very readable.


Ubuntu 11.10 with Unity and Eclipse Classic


Update: This is system dependent, indeed. Changing the Ubuntu theme changes this color. There are settings about this in /usr/share/themes/Ambiance/, but I can't figure out which one. The background is a gradient, so picking the color and grepping for it does not work.

解决方案

it must be a system setting, try the Ubuntu control center (system settings) / appearance / customize. Click all the tabs and see which color matches the color in eclipse.

Update: I just realized that in ubuntu 11.04 for some weird reason the possibility to customize the colors was removed, you need to change the config files

sudo vim /usr/share/themes/Ambiance/gtk-2.0/gtkrc 

in my version line 94 is

base[ACTIVE]      = shade (0.97, @bg_color)

which you need to change as you wish, e.g.:

base[ACTIVE]      = shade (0.50, @bg_color)

then you go to System settings / appearance, change the theme to something then change back to Ambience and voila, things are changed. I just can't imagine why there is no UI for changing this.

Update 2: this is slightly similar to what the other commenter suggested, just in a different file. I guess the difference is that will affect the system globally

UPDATE 2 :

in ubuntu 11.10 there is still no GUI to change the theme colors, but they also changed the file structure so exectute the following command (same as above)

sudo vim /usr/share/themes/Ambiance/gtk-2.0/gtkrc 

and search for this section that controls tooltip colors :

style "tooltips" {
    bg[NORMAL]        = @tooltip_bg_color
    fg[NORMAL]        = @tooltip_fg_color
}

and alter is as you wish e.g.:

    bg[NORMAL]        = "#000000"
    fg[NORMAL]        = "#FFFFFF"

UPDATE 3 :

In ubuntu 12.04 you need to do both changes described in update 1 and update 2

这篇关于如何更改Eclipse中自动填充框中的高亮颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆