Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Customize treeview expander for HiDpi(How to change the gtk3 config towards bigger treeview expander in Eclipse Neon on linux with hi-dpi)
Customize treeview expander for HiDpi [message #1745161] Wed, 05 October 2016 21:44 Go to next message
Andreas Beeker is currently offline Andreas BeekerFriend
Messages: 2
Registered: October 2016
Junior Member
Hi,

I hope this issue is not OT in this forum - please advise me the correct one, if I'm wrong ...

I'd like to change the size of the treeview expander (i.e. the dropdown in front of tree entries) in Eclipse Neon, as it's tiny on a QHD display.

I could get it to work by disabling GTK3 [1] and using a custom .gtkrc-2.0 [2],
but what needs to be configured for GTK3 [3]?

I've tried it with choosing the "default" theme in eclipse and a ~/.themes/default/gtk-3.0/gtk.css [4] only containing the following entry ... but no avail:

GtkTreeView {
        expander-size: 20
}


Best wishes,
Andi


[1] askubuntu.com/questions/538318/how-to-work-around-eclipse-luna-gtk-bug-339174-change-to-not-use-oxygen
[2] stackoverflow.com/questions/13684289/can-i-make-eclipse-on-ubuntu-look-more-compact
[3] mail.gnome.org/archives/gtk-list/2011-March/msg00108.html
[4] thegnomejournal.wordpress.com/2011/03/15/styling-gtk-with-css/
Re: Customize treeview expander for HiDpi [message #1745374 is a reply to message #1745161] Sat, 08 October 2016 23:56 Go to previous message
Andreas Beeker is currently offline Andreas BeekerFriend
Messages: 2
Registered: October 2016
Junior Member
I've solved it by adding the following to ~/.config/gtk-3.0/gtk.css
* {
-GtkTreeView-expander-size: 20;
}


It seems, gtk.css will be parse when it's accompanied by a settings.ini ... but I might be wrong. If unsure, you can use strace [1] to check which files are tried to be opened.
So it seems the styling [2] needs that dash-notation [3].

For further styling the inspector [4] is handy.

Andi

[1] http://serverfault.com/questions/138297/how-to-track-all-files-a-process-opens-in-its-lifetime
[2] https://developer.gnome.org/gtk3/stable/GtkTreeView.html
[3] http://worldofgnome.org/making-gtk3-themes-part-2-the-gtk-css-and-gtk-widgets-css-files/
[4] https://wiki.gnome.org/Projects/GTK+/Inspector
Previous Topic:How to dram on canvas by button click?
Next Topic:Issue with how SWT Buttons appear on Windows 10
Goto Forum:
  


Current Time: Mon Dec 18 09:17:35 GMT 2017

Powered by FUDForum. Page generated in 0.02518 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software