Changing color of Eclipse links in quick fix or Ec

2019-01-25 05:23发布

if i use a dark theme then links in Eclipse-"quick fix" or in i.e. Eclipse->Preferences->General->Editor (the three 'see... "File Associaton"|"Content Types"|"Appearance"'-links) are unreadable.

On this image the links i am talking about are cyan on grey:

I found a solution for Windows/XP:

The hover uses the same colors as the on your system. On Windows you can change that via Display settings > Appearance > Advanced: ToolTip. The link color is the one used in your browser (IE on Windows).

However, i need a solution for Linux (XFCE 4.8.1/GTK)

I checked/tested all settings of Eclipse and i found no setting for this link-color. It seems to be a system-setting (GTK), so i already tried to add this to gtkrc:

style "default" {
        GtkWidget::link-color = "#ffffff"
}

class "GtkWidget" style "default" 

but this did not change the link color in Eclipse.

I hope you can help - thanks!

4条回答
该账号已被封号
2楼-- · 2019-01-25 06:06

I'll chime in here, since I have the same issue.

There is no fix for this, when running Eclipse on Unix (KDE, Gnome, etc).

The color for links, which is used in the QuickFix list as well as various other places in the UI (such as Preferences panels), is hardcoded.

On Windows, you are luckier, since Eclipse uses the native link widget, which takes its colors from system settings.

On non-Windows, you are stuck with a dark-blue hardcoded color.

What it should do, at least on GTK, is use the GtkWidget::link-color setting. But it doesn't, currently.

If you want to see it fixed, either upvode this bug or fix the code yourself:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=130444

Sad, I know ):

查看更多
够拽才男人
3楼-- · 2019-01-25 06:11
趁早两清
4楼-- · 2019-01-25 06:16

Install gnome-color-chooser and customize the tooltip color as described here:

http://www.devsniper.com/black-tooltip-in-eclipse-on-ubuntu-12-04/

查看更多
戒情不戒烟
5楼-- · 2019-01-25 06:19

GNOME

http://devblog.virtage.com/2013/06/eclipse-and-eclipse-based-apps-on-ubuntu-13-04-desktop-hacks/

KDE

Use the colors menu (the first entry in the picture):

enter image description here

And redefine the tooltip background color:

enter image description here

Then enjoy the readable popups:

enter image description here

查看更多
登录 后发表回答