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

Linux Huge Toolbar Problem - GTK3 improvement proposition #258

Open
mateusz-matela opened this issue Sep 29, 2016 · 3 comments
Open

Linux Huge Toolbar Problem - GTK3 improvement proposition #258

mateusz-matela opened this issue Sep 29, 2016 · 3 comments

Comments

@mateusz-matela
Copy link

Current instruction in wiki didn't work for me, but this style did:

GtkToolbar {
    padding: 0px;
}

I'm not expert on GTK so I'm not confident enough to update the wiki myself - maybe you know about something else that might break without the #swt-toolbar-flat selector.

I also found that you can have a similar solution as with GTK2 - create a customization file in user's home directory instead of changing the theme files directly. The file is ~/.config/gtk-3.0/gtk.css.

Tested in Ubuntu 16.4 + Eclipse 4.6.1.

@renataogarcia
Copy link

The issue with not being specific with the selector (#swt-toolbar-flat) is that it will remove padding from all your GtkToolbar components, even outside Eclipse. Maybe the selector has changed in Neon? If you use the CSS inspector you should be able to check it.

I think that updating ~/.config/gtk-3.0/gtk.css is probably a better solution than updating the theme, so I would encourage you to update the wiki with this info as the preferred method, but keeping the other as an alternative option and maybe remove it in the future.

@mateusz-matela
Copy link
Author

I've checked with the css inspector and if I didn't miss anything, the only style classes used on toolbars now are toolbar horizontal, so it doesn't look like something that can be used limit the effect to Eclipse.

I'll update the wiki in a moment about gtk.css. I thought you could add a wizard that would create this file automatically. If not, this issue can be closed.

@renataogarcia
Copy link

Sorry, I realised now that the issue is probably not with the Neon selector itself. You need to look at the selector on the GtkToolbar of the code that is being used the max height. (The wiki has a link to the code in the GTK3 instructions too).

I think that generating the file in the home directory with the correct selector for GTK3, in the same way it's done for GTK2 could be useful. However I believe this is a workaround, so ideally it would be better to fix the code that is calculating the max height?

P.S. I'm not the maintainer of this repo.

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

2 participants