Ubuntu + Eclipse 4.2 - Dark theme - How to darken sidebar backgrounds?

前端 未结 5 1037
小鲜肉
小鲜肉 2020-12-22 21:18

Due to spending 24/7 programming in front of a computer screen (job, thesis), it\'s beneficial to view dark colours as much as possible.

Ubuntu\'s Ambiance theme can

5条回答
  •  醉梦人生
    2020-12-22 21:43

    For Eclipse 4.5: 1. Create a file like the inserted snippet 2. Save it as "/usr/share/themes/..used theme../gtk-3.0/apps/eclipse.css" 3. Include it "/usr/share/themes/..used theme../gtk-3.0/gtk-main.css"

    @define-color ecl_scrollbutton_color #7C7C7C;
    @define-color ecl_scrollbutton_color_hover #FB7A00;
     
    .scrollbar,
    .scrollbar.vertical {
        -GtkScrollbar-has-backward-stepper: 0;
        -GtkScrollbar-has-forward-stepper: 0;
        -GtkRange-slider-width: 14;
    
        border-radius: 20px;
    
        border-image: none;
    }
    
    /*.scrollbar.trough,
    .scrollbar.trough.vertical {
    }
    */
    .scrollbar.slider,
    .scrollbar.slider.horizontal,
    .scrollbar.slider.vertical,
    .scrollbar.button,
    .scrollbar.button.horizontal,
    .scrollbar.button.vertical {
        border-width: 0.5px;
        border-style: solid;
        border-color: shade (@ecl_scrollbutton_color, 0.66);
        background-image: -gtk-gradient (linear, left top, right top,
                                         from (shade (@ecl_scrollbutton_color, 1)),
                                         color-stop (0.5, @ecl_scrollbutton_color),
                                         to (shade (@ecl_scrollbutton_color, 1)));
        box-shadow: inset 1px 0 shade (@bg_color, 1.1),
                    inset -1px 0 shade (@bg_color, 1.01),
                    inset 0 1px shade (@bg_color, 1.1),
                    inset 0 -1px shade (@bg_color, 1.1);
    }
    
    .scrollbar.slider:hover,
    .scrollbar.slider.vertical:hover,
    .scrollbar.slider.horizontal:hover {
        background-image: -gtk-gradient (linear, left top, left bottom,
                                         from (shade (@ecl_scrollbutton_color_hover, 1)),
                                         color-stop (0.5, @ecl_scrollbutton_color_hover),
                                         to (shade (@ecl_scrollbutton_color_hover, 1)));
        box-shadow: inset 1px 0 shade (@bg_color, 1.1),
                    inset -1px 0 shade (@bg_color, 1.1),
                    inset 0 1px shade (@bg_color, 1.1),
                    inset 0 -1px shade (@bg_colo

提交回复
热议问题