-
Notifications
You must be signed in to change notification settings - Fork 730
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
theme settings: Add capability to override the active theme's scrollbar size and click behavior #8547
Conversation
Would it make sense to also move the Overlay scroll bars toggle from Effects to the Themes GUI so all the scrollbar related settings are in one place? |
If you don't find how to show a real demo widget, probably one way you have is draw the result instead of create a real widget. I think in python draw Gtk widget to a Cairo context will work well (in gjs is not working yet). The idea of make it in that way was taken from the Firefox code and also from how Mutter is render the title bar. So, the credit of this idea is from this projects. As an example, this attempt to display the window buttons in that way was wrote in gjs, but can easily be ported to Python: Edit: An example to load a Gtk.CssProvider from a file (with python): https://www.programcreek.com/python/example/88440/gi.repository.Gtk.CssProvider |
Hi @lestcape I just ended up using a GtkPlug/Socket for now (files/usr/share/cinnamon/cinnamon-settings/bin/scrollbar-test-widget.py) - it's not the greatest (there's a flicker when it reloads itself that's sort of unavoidable) but it does the job and was fairly simple. It's not wayland compatible I'm sure but that's not a bridge I need to cross right now :) |
Ah okay, it's good that you've already found a way... I only provided some ideas but i can not ensure it really will be functional at all as is not tested by me specifically for what you want to do. Note: I do not know who get the idea about to control the style of Gtk in real time, but I think this is a very good idea. Mainly, because things like that happens. Thankfully here there is a counterpart that gives to the user the freedom to modify a Gtk theme. To me it's very nice to see this pull. So, please make it happens... Have a good day ahead... |
… settings. - Moved the overlay scrollbars switch into this section - Added switch to control scrollbar warping when clicking in the trough. - Added switch to enable overriding the scrollbar width, along with the control to adjust size. - This size applies exactly for gtk3 (via the .config/gtk-3.0/gtk.css file) The rest of the file remains unaltered (though the layout and order may change.) - For gtk2, the size is applied with a multiplier (default 1.5), which matches up nicely on Mint-Y themes. There is a hidden (for now) setting to adjust the multiplier. The gtk2 adjustment is made in ~/.gtkrc-2.0. Existing file contents are preserved.
Pretty much done. Only remaining concerns: