Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Luna 4.4.0 on GTK3: theme is messed up #73

Open
iksws opened this issue Jul 1, 2014 · 30 comments
Open

Luna 4.4.0 on GTK3: theme is messed up #73

iksws opened this issue Jul 1, 2014 · 30 comments

Comments

@iksws
Copy link

iksws commented Jul 1, 2014

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

@iksws
Copy link
Author

iksws commented Jul 1, 2014

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

@guari
Copy link
Owner

guari commented Jul 1, 2014

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
Copy link
Author

iksws commented Jul 1, 2014

not work...! guari!

@guari
Copy link
Owner

guari commented Jul 1, 2014

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
Copy link
Author

iksws commented Jul 1, 2014

"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
Copy link

gustavovelascoh commented Jul 2, 2014

Doesn't work for me neither.

@guari guari changed the title Luna 4.4.0 + Ubunto 14.04 + Gnome 3.12 Luna 4.4.0 on GTK3: theme is messed up Jul 6, 2014
@VictorLamoine
Copy link

The fix export SWT_GTK3=0 works for me.

@maxmil
Copy link

maxmil commented Jul 9, 2014

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
Copy link

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
Copy link
Author

iksws commented Jul 16, 2014

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
Copy link

maxmil commented Jul 16, 2014

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

@gustavovelascoh
Copy link

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
Copy link
Author

iksws commented Jul 18, 2014

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
Copy link

clopez commented Jan 8, 2015

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
Copy link

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
Copy link

napseis commented Mar 22, 2015

hi,

export SWT_GTK3=1
export GTK_THEME=Adwaita:dark
eclipse

doesn't fix the buttons issues on Fedora 21.

@xoned1
Copy link

xoned1 commented Mar 24, 2015

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

Enjoy.

@ShahinKordasti
Copy link

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

@OscarRL
Copy link

OscarRL commented Apr 11, 2015

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
Copy link

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
Copy link
Author

iksws commented Jul 6, 2015

@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
Copy link

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

@mvvvv
Copy link

mvvvv commented Jul 25, 2015

Running on GTK3 on unity 15.04

Both are working fine

@avinashga23
Copy link

@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
Copy link

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
Copy link

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
Copy link

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

@gustavovelascoh
Copy link

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

@avinashga23
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests