Search code examples
eclipseubuntucolorsjavadocforeground

How to change javadoc view font color in eclipse?


Java doc view looks like this

Java doc shows like this,it seems font color is white,so how to change font color?

My configuration:

Ubuntu 12.10 64bit desktop eclipse 4.2 classic theme


Solution

  • First, I manual added in /usr/share/themes/Mint-X/gtk-3.0/gtk-main.css (I use the Theme "Mint-X", Ubuntu Menu -> Preferences -> Appearance -> Tab Theme ) After "@define-color theme_tooltip_fg_color #000000;" the following:

    @define-color tooltip_bg_color #F6FBA0;
    @define-color tooltip_fg_color #000000;
    

    This worked for the background. For some reason it doesn't worked for the foreground. I tried setting nearly every variable without success. At the end I set the Tooltip color hard-coded to #000000 in /usr/share/themes/Mint-X/gtk-3.0/gtk-widgets.css (Line 2214: "color: #000000;"):

    /***********
     * tooltip *
     ***********/
    
    .tooltip {
        padding: 3px;
        border: 1px solid @border;
        border-radius: 4px;
        background-color: @theme_tooltip_bg_color;
        color: #000000;
        box-shadow: none;    
    }
    
    .tooltip * {
        background-color: transparent;
    }
    

    Useful Info: Changes will only be applied after an Eclipse-Restart.