Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Theming the Eclipse 4.6 IDE itself -- How/where to override GTK3 "theme.css" for Eclipse o
Theming the Eclipse 4.6 IDE itself -- How/where to override GTK3 "theme.css" for Eclipse o [message #1707529] Mon, 07 September 2015 01:43
John AdevFriend
Messages: 9
Registered: September 2015
Junior Member
I've installed Eclipse 4.6 (Nova M1) on linux/64.

I launch it with GTK3
    SWT_GTK3=1 eclipse

My desktop env is KDE with Plasma5.

The default KDE theme is 'Breeze'.

I've installed the 'gnome-breeze' (
https://github.com/dirruk1/gnome-breeze.git) lookalike themes,
    ls /home/johna/.themes
        Breeze-dark-gtk
        Breeze-gtk

And I configured so that gtk-3.0 uses it by default
    grep theme-name /home/johhn/.config/gtk-3.0/settings.ini 
        gtk-theme-name=Breeze-gtk

When I launch Eclipse, the IDE itself uses that theme, like you'd expect. So the menus, toolbars, scrollbars, icons, etc are all from Breeze-gtk.

I can override EDITOR colors/themes, and some widgets backgrounds, from within Eclipse preferences. For example, I use AptanaStudio3 plugin, and import my favorite TextMate themes; all (well, a couple of glitches atm) editor context formatting follows that TM theme.

I want to edit the look & feel of the IDE.

Since GTK3 is no longer using theme-engine themes, but pure CSS, the override mechanism is to override the theme original CSS in
    /usr/share/themes/BreezeGTK/gtk-3.0/*.css


(1) For GTK3, where do the overrides *go*?

In
    /home/johhn/.config/gtk-3.0/*.css

(2) What's the usage for overriding the CSS for *just* eclipse?

IIUC, since theming is no longer using rc file format, the old GTK2 method
    SWT_GTK3=0 GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/johna/.gtkrc-2.0:/home/johns/.gtkrc-2.0-eclipse eclipse

won't work.

How & where do we theme eclipse-specific GTK3?
Previous Topic:Minimizing a view using perspectiveExtension not supported
Next Topic:Eclipse RCP with chart application
Goto Forum:
  


Current Time: Fri Apr 26 21:40:13 GMT 2024

Powered by FUDForum. Page generated in 0.02337 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top