Created
March 22, 2016 21:16
-
-
Save npetzall/218676eaf6d925049da4 to your computer and use it in GitHub Desktop.
Eclipse Looka and feel on Ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eclipse.ini add these 2 lines -> | |
--launcher.GTK_version | |
2 | |
before: | |
--launcher.appendVmargs | |
This will cause eclipse to use GTK2 instead of GTK3. | |
Verify by checking (Menu)Help->About Eclipse->(Button)Installation Details->(Tab)Configuration->(TextArea) | |
org.eclipse.swt.internal.gtk.version=2.*.* | |
new file ".gtkrc-eclipse" put it somewhere special (/home/$user/.gtkrc-eclipse) (Content)-> | |
###BOF### | |
style "gnome-color-chooser-tooltips" | |
{ | |
bg[NORMAL] = "#FFFFAF" | |
fg[NORMAL] = "#000000" | |
} | |
widget "gtk-tooltip*" style "gnome-color-chooser-tooltips" | |
style "gtkcompact" { | |
font_name="Sans 9" | |
GtkButton::defaultborder={0,0,0,0} | |
GtkButton::defaultoutsideborder={0,0,0,0} | |
GtkButtonBox::childminwidth=0 | |
GtkButtonBox::childminheigth=0 | |
GtkButtonBox::childinternalpadx=0 | |
GtkButtonBox::childinternalpady=0 | |
GtkMenu::vertical-padding=1 | |
GtkMenuBar::internalpadding=0 | |
GtkMenuItem::horizontalpadding=4 | |
GtkToolbar::internal-padding=0 | |
GtkToolbar::space-size=0 | |
GtkOptionMenu::indicatorsize=0 | |
GtkOptionMenu::indicatorspacing=2 | |
GtkPaned::handlesize=4 | |
GtkRange::troughborder=0 | |
GtkRange::stepperspacing=0 | |
GtkScale::valuespacing=0 | |
GtkScrolledWindow::scrollbarspacing=0 | |
GtkExpander::expandersize=10 | |
GtkExpander::expanderspacing=0 | |
GtkTreeView::vertical-separator=0 | |
GtkTreeView::horizontal-separator=0 | |
GtkTreeView::expander-size=8 | |
GtkTreeView::fixed-height-mode=TRUE | |
GtkWidget::focuspadding=1 | |
} | |
class "GtkWidget" style "gtkcompact" | |
style "gtkcompactextra" { | |
xthickness=1 ythickness=1 | |
} | |
class "GtkButton" style "gtkcompactextra" | |
class "GtkToolbar" style "gtkcompactextra" | |
class "GtkPaned" style "gtkcompactextra" | |
###EOF### | |
Last but not least | |
/home/$user/.local/share/applications/eclipse.desktop (content)-> | |
###BOF### | |
[Desktop Entry] | |
Encoding=UTF-8 | |
Version=1.0 | |
Type=Application | |
Name=Java - Eclipse | |
Icon=eclipse.png | |
Path=/opt/eclipse/java-mars/eclipse | |
Exec=env GTK2_RC_FILES=/path/to/.gtkrc-eclipse /path/to/eclipse | |
StartupNotify=false | |
StartupWMClass=Eclipse | |
OnlyShowIn=Unity; | |
X-UnityGenerated=true | |
###EOF### | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment