guari/eclipse-ui-theme

Luna 4.4.0 on GTK3: theme is messed up

iksws opened this issue ยท 30 comments

=( Don't work fine!
Any know how to fix it?
error

info!
I am use global dark theme gnome ON
window = DUST theme
GTK+ Adwaita default
icons= default
cursor =default

Yes, it should be a 'well-known' issue of the SWT porting on GTK3.
Starting from Luna, Eclipse is run by default with the GTK3 layer on Linux, but this option currently has also more limits on appearance customization...

You have to run Eclipse in GTK2 mode, to do it you can use a script like this to launch Eclipse:

#!/bin/bash
export SWT_GTK3=0
./eclipse

This mainly fixes the issues related to GTK3 and restores the 'old' look, except for the scrollbars: those will look worse if you use the default Ubuntu theme compared to Eclipse Kepler and Juno.

not work...! guari!

put the .sh file in the same folder of the Eclipse executable and then run the script, I tested it some months ago with the same configuration and it worked.. or use a terminal ;)

"i try... but not work..." =(
try this
Exec=env UBUNTU_MENUPROXY=0 SWT_GTK3=0 ~/Apps/eclipse/eclipse
try this
Exec=env SWT_GTK3=0 ~/Apps/eclipse/eclipse
try in terminal...
try sh script in folder
try with eclipse kepler

this theme not work for me =(
this theme run only in unity?
run in terminal and i see this

./eclipse.desktop: linha 5: Unity: command not found

I desist! thks for help and time Guari!

Doesn't work for me neither.

The fix export SWT_GTK3=0 works for me.

Does not work for me either. Looks like the button backgrounds are not being changed but the labels are. Hence you can hardly see the labels.

I'm using gnome-shell and have tried turning on and off the global shell dark theme but this seems to have no effect on eclipse.

I'm having the exact same issue too, no luck with exports and .sh files. I'm running Ubuntu Gnome 14.04 with Gnome Shell and system dark themes, Eclipse 4.4.

WTF in ubuntu 14.04 Gnome with 'Dark themes', I use
export SWT_GTK3=1
and work like a charm!!!!! =D

my .desktop
[Desktop Entry]
Name=Eclipse
Comment=Eclipse Luna
Exec=env SWT_GTK3=1 /Apps/eclipse/eclipse
Icon=
/Apps/eclipse/eclipse-1.png
StartupNotify=true
Terminal=false
Type=Application

Thanks iksws this also works for me: turn on the global dark theme in gnome-tweak-tool and export SWT_GTK3=1

Turning ON Gnome dark theme and exporting SWT_GTK3=1 fix buttons issue for me, but messed up item highlighting

Before (with SWT_GTK3=0, Blue highlighting, buttons messed up):
Before (Blue highlighting, buttons messed up)

After (with SWT_GTK3=1, No highlight, pretty buttons):
After (No highlight, pretty buttons)

Yes and box lines too, but all others work, dark, dark juno and Gtk+ but
I think the file gtk3.css have problemas,tweak tool not change to gtk3-dark.css
I move gtk3-dark to gtk and have more problemas, you can see this in MENU of the gnome-terminal.

if you use gtk.css the menu is white, if you move dark.css to gtk.css the menu is black.
I think this file have effect in all gtk interfaces.

Another option that worked better for me is to keep GTK3, but force a dark theme.

export SWT_GTK3=1
export GTK_THEME=Adwaita:dark
./eclipse

Using GTK3 fixed the buttons for me as well, but caused all sorts of other problems
1) Highlighting would not work in some widgets
2) Keyboard shortcuts and file operations would randomly stop working
3) Git history did not display the tree view

The second issue was a deal breaker, I had to restart eclipse every 5 minutes or so. My fix was to continue to use GTK2, but force a different theme for eclipse only. I did this using the following script:

export SWT_GTK3=0
export GTK2_RC_FILES=/usr/share/darktable/darktable.gtkrc
/usr/lib64/eclipse/eclipse

Note 1: I did a search for dark gtkrc files on my system and decided to try the one for the darktable application before downloading random themes from the internet. To me, the darktable theme looks amazing in eclipse! One thing that I love about it is that it reduces the font size of all the ui elements so I see more files in the project explorer and more symbols in the outline.

Note 2: In addition to the darktable rc files, I'm using the dark theme in eclipse and global dark in the gnome tweak tool.

Note 3: SWT_GTK3 initially didn't change anything for me because my eclipse.ini file was using --launcher.GTK_version which overrides the SWT_GTK3 environment variable. This can be fixed by either changing the gtk version in the ini file or by deleting that option and using the environment variable instead.

hi,

export SWT_GTK3=1
export GTK_THEME=Adwaita:dark
eclipse

doesn't fix the buttons issues on Fedora 21.

For me it's working on Fedora 21. Just:
export SWT_GTK3=1
./eclipse

Enjoy.

Anyone done this in Linux mint? Cause I tried export SWT_GTK3=1 then start Eclipse and the buttons are still wrong color.

Fixed setting export SWT_GTK3=0 for set the GTK2 mode.. Also is useful if you use tools like JBoss for html editing because it only supports GTK2.

Then install a trully adwaita GTK2 & GTK3 dark theme like this one:
http://cbowman57.deviantart.com/art/Adwaita-Dark-3-14-rev-2-492714039

This will also fix your Chrome and other applications that use the GTK2 theme

I haven't tested this issue again for a long time (almost a year), but now it works for me using this script:

#!/bin/bash
export SWT_GTK3=1
~/apps/eclipse/eclipse
iksws commented

@gustavovelascoh
Hi man!
What distribution you are using? and what version of the eclipse?
I'm using now Mint 17/Cinnamon with luna and not work :( the gtk is a headache.

Running
export SWT_GTK3=0
Works on Eclipse Mars and Linux Mint 17.1 KDE

mvvvv commented

Running on GTK3 on unity 15.04

Both are working fine

@gustavovelascoh even i am having issues with button even after SWT_GTK3=1. I am using MINT 17.2, also had same issues in MINT 17.1.

Hi @gustavovelascoh i am able to over come this issue. here are my settings in linux mint 17.2 cinnamon.

STS settings
screenshot from 2015-07-28 09 18 38

Cinnamon Theme Settings

screenshot from 2015-07-28 09 19 48

I'm using Gnome Ubuntu 14.04 and Eclipse Luna. On Eclipse I use dark theme and default color and font theme, and global dark theme for Gnome. Has anyone dark theme on Eclipse Mars?

I use STS 3.7 which is based on Eclipse 4.5. No issues with Dark theme

I use CodeComposerStudio based on Eclipse Version: 6.1.0.00104 , but the buttons issue is present.

I think if you can change the Ubuntu theme for controls to Delorean Dark or any dartk theme then you can over come the very annoying button issue.

Exec=env SWT_GTK3=0 /home/dshwang/workspace/eclipses/eclipse/eclipse save my life. Thank you.
I use Eclipse CDT Mars.2 on Ubuntu 15.10.