guari / eclipse-ui-theme

Dark UI Theme for Eclipse 4+
Eclipse Public License 1.0
1.16k stars 185 forks source link

Luna 4.4.0 on GTK3: theme is messed up #73

Open iksws opened 10 years ago

iksws commented 10 years ago

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

iksws commented 10 years ago

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

guari commented 10 years ago

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.

iksws commented 10 years ago

not work...! guari!

guari commented 10 years ago

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 ;)

iksws commented 10 years ago

"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!

gustavovelascoh commented 10 years ago

Doesn't work for me neither.

VictorLamoine commented 10 years ago

The fix export SWT_GTK3=0 works for me.

maxmil commented 10 years ago

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.

fdefreitas commented 10 years ago

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.

iksws commented 10 years ago

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

maxmil commented 10 years ago

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

gustavovelascoh commented 10 years ago

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)

iksws commented 10 years ago

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.

clopez commented 9 years ago

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
spehrson commented 9 years ago

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.

napseis commented 9 years ago

hi,

export SWT_GTK3=1
export GTK_THEME=Adwaita:dark
eclipse

doesn't fix the buttons issues on Fedora 21.

xoned1 commented 9 years ago

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

Enjoy.

ShahinKordasti commented 9 years ago

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

OscarRL commented 9 years ago

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

gustavovelascoh commented 9 years ago

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 9 years ago

@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.

ShahinKordasti commented 9 years ago

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

mvvvv commented 9 years ago

Running on GTK3 on unity 15.04

Both are working fine

avinashga23 commented 9 years ago

@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.

avinashga23 commented 9 years ago

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

gustavovelascoh commented 9 years ago

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?

avinashga23 commented 9 years ago

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

gustavovelascoh commented 9 years ago

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

avinashga23 commented 9 years ago

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.

ds-hwang commented 8 years ago

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.