这个问题十分高级,随着Ubuntu版本的变迁这个问题的解决方案也在不断变化

最开始,SystemSettings里面可以设置工具条背景色,后来这个选项在新版本Ubuntu中消失了

我用过Ubuntu14.04,它用的是GTK2.0,配置文件的是gtkrc

我现在用Ubuntu15.10,它用的是GTK3.0,配置文件大都是.css格式的

==========方案一:直接设置eclipse========

==============方案二:设置主题==================

1.Good resource

stackoverflow
askubuntu
weblog :This is really a good passage!

2.Steps

If you want to apply your change to all the applications,modify "/usr/share/themes/Ambian/gtk-2.0/gtkrc":

  change 'gtk-color-scheme=...fg_color=#000000...bg_color=#f5f5f5'

If you just want to apply change to eclipse,edit one file with a random name.For example,I write a file '~/Desktop/style' whose contents is this:

  style "my-tooltips"
  {
    bg[NORMAL] = "#f5f5f5"
    fg[NORMAL] = "#000000"
  }
  widget "gtk-tooltip*" style "my-tooltips"
Then you can start eclipse with this style.Press 'Ctrl+Alt+T' to open terminal,input the command below:

  GTK2_RC_FILES=style eclipse

Now you will see everything change !  

3.Optimizaton

If you always start eclipse in terminal,just put this cmd above into global(There are many ways to accomplish this).

If you want to start eclipse by clicking the icon in the laungcher,edit the file "/usr/share/applications/eclipse.desktop"

change the 'exec' as your own cmd.

Actually you can create your own laungchers here.

5.My method

/usr/local/bin/eclipse-style

  style "haha"
  {
    bg[NORMAL] = "#f5f5b5"
    fg[NORMAL] = "#000000"
  }
  widget "gtk-tooltip*" style "haha"

/usr/local/bin/ec

  #!/bin/bash
  GTK2_RC_FILES=/usr/local/bin/eclipse-style eclipse

/usr/share/applications/eclipse.desktop

  Change one line:  
  Exec=ec

Change Eclipse Tooltip's Color in Ubuntu的更多相关文章

  1. How to change Eclipse loading image

    Eclipse IDE has many customize components, the splash welcome image (purple color loading image) is ...

  2. 如何为Eclipse安装主题(Color Theme)

    Eclipse开发环境默认都是白底黑字的,看到同事的Xcode中设置的黑灰色背景挺好看的,就去网上查了一下.发现Eclipse也可以设置主题. 方法1:你可以从Eclipse Marketplace中 ...

  3. Win7中使用Eclipse连接虚拟机中的Ubuntu中的Hadoop2.4<3>

    经过前几天的学习,基本上能够小试牛刀编写一些小程序玩一玩了,在此之前做几项准备工作 明白我要用hadoop干什么 大体学习一下mapreduce ubuntu重新启动后,再启动hadoop会报连接异常 ...

  4. Eclipse tooltip变黑的修正

  5. How to change the header background color of a QTableView

    You can set the style sheet on the QTableView ui->tableView->setStyleSheet("QHeaderView:: ...

  6. How to change statusbar text color to dark on android 4.4

    Because I haven't enough votes, so post picture at here, thank you. Almost 2 weeks ago, I was search ...

  7. 解决ubuntu 14.04 下eclipse 3.7.2 不能启动,报Could not detect registered XULRunner to use 或 org.eclipse.swt.SWTError: XPCOM 等问题的处理

    对于eclipse 3.7.2在ubuntu 14.04下不能启动,需要在 eclipse/configuration 目录下的config.ini文件内增加一行org.eclipse.swt.bro ...

  8. Ubuntu12.04 Eclipse 提示框背景色修改

    I had to edit these files: /usr/share/themes/Ambiance/gtk-3.0/settings.ini /usr/share/themes/Ambianc ...

  9. eclipse 的操作

    1.windows->Preferences...打开"首选项"对话框,左侧导航树,导航到general->Workspace,右 侧Text file encodin ...

随机推荐

  1. Ineedle驱动方式dpdk测试性能

    这次主要是测试在dpdk方案下,ineedle的处理包的性能. 发包工具: 使用立永当时写的一个发包工具:linux_pcap 做法:大概是从网上抓取了一些数据包,将源ip替换为随即ip,sip替换为 ...

  2. linux权限补充:rwt rwT rws rwS 特殊权限

    众所周知,Linux的文件权限如: 777:666等,其实只要在相应的文件上加上UID的权限,就可以用到加权限人的身份去运行这个文件.所以我们只需要将bash复制出来到另一个地方,然后用root加上U ...

  3. 又是一周-AJAX(三)

    hi 我又食言了,但我还是厚颜无耻的回来了... 1.AJAX(三) 三.AJAX的简单的例子 3.1 简介 完成:查询员工信息,通过输入员工编号查询员工的基本信息+新建员工的信息,包含员工姓名,编号 ...

  4. 关于AngularJs中的路由学习总结

    AngularJs中的路由,应用比较广泛,主要是允许我们通过不同的url访问不同的内容,可实现多视图的单页web应用.下面看看具体怎么使用. 关于路由  通常我们的URL形式为http://jtjds ...

  5. 通过Hander进行界面刷新

    Timer timer; TimerTask task; Handler handler;//先声明这3个变量 //在onCreate方法内 handler = new Handler(){ @Ove ...

  6. 计算2的N次方&&计算e

    2的N次方 注意:这里在处理的时候并没有用循环来处理,而是用移位的做法.    n<<4  就是 n*2^4    ,所以在本例中只需要写 1<<time  (time是要求的 ...

  7. AC日记——整理药名 openjudge 1.7 15

    15:整理药名 总时间限制:  1000ms 内存限制:  65536kB 描述 医生在书写药品名的时候经常不注意大小写,格式比较混乱.现要求你写一个程序将医生书写混乱的药品名整理成统一规范的格式,即 ...

  8. AC日记——简单密码 openjudge 1.7 10

    10:简单密码 总时间限制:  1000ms 内存限制:  65536kB 描述 Julius Caesar曾经使用过一种很简单的密码.对于明文中的每个字符,将它用它字母表中后5位对应的字符来代替,这 ...

  9. junit 测试及assert的扩张

    @Testpublic void method() 测试注释指示该公共无效方法它所附着可以作为一个测试用例. @Beforepublic void method() Before注释表示,该方法必须在 ...

  10. SWT使用注意点

    出现这个错: java.lang.UnsatisfiedLinkError: no swt-win32-3139 in java.library.path 解决方法: 将swt-win32-3139导 ...