Skip to content

Using a GtkListBox instead of TreeView #1768

@infirit

Description

@infirit

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.

  • GtkListBox: A GtkListBoxRow is just a container we can put any kind of GtkWidget in.
  • GtkRevealer: No more custom drawing methods to handle animation. These do a good enough job for what blueman needs.
  • GtkLevelBar: Fully themable with CSS so no need for the lowres pixmaps we currently use.

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions