-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
Using a GtkListBox instead of TreeView #1768
Comments
Pretty cool. If I get it right, using Regarding the bars, we have to keep in mind #860, #1642, and #1620. I do like the concepts without bars, but I have the feeling you do not and I agree that having colors there is nice. Adding some color to those concepts (applied to text and icon) does work in my mind, though. 😄 |
Yeah, the first two I like to handle together. But I can do the bars later and just put the pixbuf we already have in a GtkImage (although this does have a drawback that we'll have to let Gtk scale it which makes it blurry).
My primary goal with this was to see if I could replicate what we already have with standard widgets. This can be done pretty easily with a few small changes. I have no problem dropping the bars for something else. And those issues was what made me investigate other, more flexible options. The nice thing with using these widgets is that we can style them how we like it. We could provide color profiles that are stored in css files and can be changed by the user. I think we can even style the icons (not tried but see 1) 1: https://docs.gtk.org/gtk3/css-properties.html#icon-properties |
Yeah, sure. I was just thinking that it does not make sense to change the bars if we then drop them. 😄 If it's small enough, it wouldn't hurt, though. |
It really is easy to replace pixbufs with the bars. Let me push the script to a repo so people can |
Here are all the files I used (or have used) in my experiments. https://github.com/infirit/listbox |
First devicemenu attempt with popover. Search button to headerbar. Also changed the animation to slide which looks much better to me. Peek.2022-11-13.19-58.webm |
One of the more annoying things with the current implementation is that it's overly complicated and uses custom draw methods, faders etc. I Made a proof of concept using GtkListBox for the view and GtkRevealer for animation and GtkLevelBar for the bars.
Why did I do this you might ask. We have been discussing changing the UI and doing all that is going to involve more custom drawing making things even more complicated.
Small demo.
blueman_listbox.webm
Just putting this out in the open so anyone can comment on it.
ps: The bars are not right yet and need a gradient, the bar icons are just placeholders.
The text was updated successfully, but these errors were encountered: