ubuntu下的eclipse的提示框可能会是黑色背景,而字体很难辨认,严重影响阅读:
在一个国外网站中找到了解决问题的办法:
http://askubuntu.com/questions/70599/how-to-change-tooltip-background-color-in-unity
他的问题是:
In a lot of applications the tooltips are just plain ugly (White text on black background, way too much contrast) or even unreadable (black or dark blue text (Hyperlinks) on black background). I want to change the background color of the tooltips to some medium
gray or even some yellow or something like that, maybe even something semi-transparent.
Here is a screenshot of Eclipse which displays some source code in a tool tip with black text on black background:
Switching to a different theme (Something other than Ambiance or Radiance) helps but I like Ambiance and I want to keep it. It's just this darn tooltip color which is absolutely unacceptable.
I found several solutions for older Ubuntu versions but they no longer work with Unity in Ubuntu 11.10 because I can't find any function to customize the Ambiance or Radiance theme. So how do I do that in the current Ubuntu version?
这个问题可以通过修改系统的主题解决,但是如果不想修改主题怎么办呢?
解决方法如下:
Found it!
I had to edit these files:
/usr/share/themes/Ambiance/gtk-3.0/settings.ini
/usr/share/themes/Ambiance/gtk-3.0/gtk.css
/usr/share/themes/Ambiance/gtk-2.0/gtkrc
You require root privileges to edit the files. Usesudo
gedit
to edit them.
Search fortooltip
in
these files and you'll find the color definitions for the foreground and the background. I use#000000
as
foreground and#f5f5b5
as
background and now the tooltips in all applications are again readable. After changing the color values simply switch to some other theme and then back to Ambiance and the tooltip color is now fixed.
分享到:
相关推荐
ubuntu 下eclipse CDT搭建交叉编译开发环境
Ubuntu修正LibreOffice中文乱码以及eclipse提示框颜色.docx
ubuntu_eclipse启动设置,jdk环境变量,其他设置
本文主要是在ubuntu 16.04环境下,如何安装 eclipse。
Ubuntu安装eclipse.txt
Ubuntu下Eclipse中文乱码解决.docx
详细介绍Ubuntu环境下安装Eclipse有截图
介绍ubuntu下opencv的eclipse工程配置
解决 Ubuntu Eclipse 代码浮层黑色背景问题
简单有效的配置Ubuntu下Eclipse C&C++项目的开发编译环境,照着文档一步一步配置,让你少走弯路。
Ubuntu下eclipse环境搭建,开发Android需要用的哦,简单介绍
Ubuntu下使用Eclipse开发CC++
解决ubuntu macbuntu eclipse 没有菜单栏.txt
ubuntu eclipseIDE(开发环境)ubuntu eclipseIDE(开发环境)ubuntu eclipseIDE(开发环境)ubuntu eclipseIDE(开发环境)
在ubuntu_linux下安装eclipse以及运行c++程序的安装步骤
Ubuntu12.04下Eclipse安装配置
Ubuntu下 JDK 和 ECLIPSE的安装,亲测可用,解压命令什么我就不说了。
Ubuntu中eclipse的安装
Ubuntu 下安装安卓Android开发环境 (Eclipse Java + Tomcat)