在 Linux 上更改快速修复中的 Eclipse 链接或首选项中的 Eclipse 链接的颜色
如果我使用深色主题,则链接到 Eclipse-“快速修复”或 ie Eclipse-> 首选项-> 常规-> 编辑器(三个“参见...“文件关联”|“内容类型”|”)外观”'-链接)不可读。
在这张图片上,我正在谈论的链接是青色灰色:
我找到了Windows/XP的解决方案:
悬停使用与系统上相同的颜色。在 Windows 上您 可以通过“显示设置”>“更改”外观>高级:工具提示。 链接颜色是您的浏览器(Windows 上的 IE)中使用的颜色。
但是,我需要一个适用于 Linux (XFCE 4.8.1/GTK) 的解决方案,
我检查/测试了 Eclipse 的所有设置,但没有发现此链接颜色的设置。它似乎是一个系统设置(GTK),所以我已经尝试将其添加到 gtkrc:
style "default" {
GtkWidget::link-color = "#ffffff"
}
class "GtkWidget" style "default"
但这并没有改变 Eclipse 中的链接颜色。
我希望你能帮忙 - 谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
GNOME
http://devblog.virtage.com/2013/06/eclipse-and-eclipse-based-apps-on-ubuntu-13-04-desktop-hacks/
KDE
使用颜色菜单(第一个条目图片):
并重新定义工具提示背景颜色:
然后欣赏可读的弹出窗口:
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):
And redefine the tooltip background color:
Then enjoy the readable popups:
安装 gnome-color-chooser 并自定义工具提示颜色,如下所述:
http://www.devsniper.com/black-tooltip-in-eclipse-on-ubuntu-12-04/
Install gnome-color-chooser and customize the tooltip color as described here:
http://www.devsniper.com/black-tooltip-in-eclipse-on-ubuntu-12-04/
我会在这里插话,因为我也有同样的问题。
在 Unix(KDE、Gnome 等)上运行 Eclipse 时,没有对此进行修复。
QuickFix 列表以及 UI 中的其他各个位置(例如“首选项”面板)中使用的链接颜色是硬编码的。
在 Windows 上,您比较幸运,因为 Eclipse 使用本机链接小部件,该小部件从系统设置中获取颜色。
在非 Windows 上,您只能使用深蓝色的硬编码颜色。
至少在 GTK 上,它应该做的是使用 GtkWidget::link-color 设置。但目前还没有。
如果您想修复它,请上传此错误或自行修复代码:
https ://bugs.eclipse.org/bugs/show_bug.cgi?id=130444
悲伤,我知道):
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 ):
查看这篇文章 https://stackoverflow.com/questions/96981/color-themes-for-eclipse< /a> 或查看 Eclipse 颜色主题 站点。
Check out this post https://stackoverflow.com/questions/96981/color-themes-for-eclipse or have a look at the Eclipse color themes site.