rogerdudler / eclipse-ui-themes

Dark UI Theme for Eclipse 4+
http://rogerdudler.github.com/eclipse-ui-themes/
Eclipse Public License 1.0
319 stars 106 forks source link

WindowBuilder Editor disabled when using Dark Juno #14

Open Vilinkamen opened 11 years ago

Vilinkamen commented 11 years ago

The latest stable WindowBuilder Editor under Windows 7 seems to be disabled when Dark Juno theme is activated. The "Source" and "Design" tabs disappear, even when a file is opened through the "Open With..." menu. I confirmed that Dark Juno is the problem by reverting to "Windows 7" theme and verifying that the tabs do work. Switching back to "Dark Juno" made the tabs disappear.

dexter00 commented 11 years ago

We are waiting for patch :)

https://github.com/rogerdudler/eclipse-ui-themes/issues/11

use alt + page up

infinitec commented 11 years ago

I too have the same issue with design tab not showing up when using Dark Juno Theme. Is there a plan to update the theme to support Window Builder? At the very least, is there a few lines of code that I may add in the appropriate place for a fix?

I really enjoy using the theme, and am grateful for your efforts to put it together. I will await the fix for Window Builder.

haku commented 11 years ago

If this is the same as #11 as dexter00 suggested, then please retest with latest from master as commit 88236604a42c349db6cd2af1ca0f999917ea62d3 may have fixed it? Thanks.

infinitec commented 11 years ago

@haku I grabbed the latest master which fixed the issue with the tabs. However, on Ubuntu 12.04 in Eclipse 4.2, when I open the design view for Window Builder, I get the following: Selection_003 Maybe it's a GTK issue, as it looks fine in Win 7.

Anyway, thanks for the heads up.

haku commented 11 years ago

I had a go a reproducing that bug but it seems to work ok for me: https://www.dropbox.com/s/0iu6pvpceepcy4l/window-builder-dark-juno.png . Perhaps it is some form of window manager related issue? I am using Gnome 3 instead of Unity. What I did: I got the latest release of dark-juno and replaced the css file with that from master (i do not know the correct build process for this theme, but this seems to work ok).

cd <some tmp dir>
wget https://github.com/downloads/rogerdudler/eclipse-ui-themes/com.github.eclipsecolortheme.themes_1.0.0.201207121019.zip
unzip com.github.eclipsecolortheme.themes_1.0.0.201207121019.zip
mv plugins/com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar .
unzip com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar themes/css/juno.css
cp ~/development/eclipse-ui-themes/com.github.eclipsecolortheme.themes/themes/css/juno.css themes/css/juno.css
zip com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar themes/css/juno.cs
cp com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar ~/opt/eclipse-juno/dropins

Result: https://www.dropbox.com/s/ht7nplugvrz9wtl/com.github.eclipsecolortheme.themes_1.0.0.201207121019.jar

As a side note, if you are having issues with CSS themes on GTK, there is another way. GTK is much more themeable than say OSX (where I use this theme). The cleanest way to get a dark Eclipse with GTK is to change the GTK theme. On Ubuntu / Gnome 3 I use my own theme that looks like this: https://www.dropbox.com/s/lymj45ol2rhvzfp/window-builder-gtk-greyShadow3.png . Source for my GTK theme is here: https://github.com/haku/greyShadow3 . To get Eclipse 4.x to use pure GTK theme, just delete all the CSS. Something like this (make backups first):

cd ~/opt/eclipse-juno/plugins/org.eclipse.platform_4.2.1.v201209141800/css
rm *.css

Hope this helps.

infinitec commented 11 years ago

@haku Installed Gnome Shell and had the same issue. After more research I found that there is a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=368543 The issue seems to be with eclipse on Ubuntu and the use of Cairo in rendering the palette. The bug included some suggestions on the issue. I added the following lines to my eclipse.ini file, restarted Eclipse, and the palette is now rendering correctly.

-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false -Dorg.eclipse.swt.internal.gtk.useCairo=false

Thanks for your help with the theming. Also, your greyShadow3 theme is nice. I will try it out.

By the way, after using Gnome Shell for a bit, I may just stick with it to see how it grows on me. It seems to render elements more cleanly than when using Unity.

Thanks again.