New KisLayerFilterWidget
Closed, ResolvedPublic

Description

As part of the animation changes we're adding the ability to filter the layer tree by name.

To do this nicely we want to make a new widget KisLayerFilterWidget that will replace the KisColorFilterCombo at the upper-right corner of the LayerBox. We're also refactoring a bit of related code in order as much as reasonably possible.

Here's a couple of tentative designs:

The general idea is that when a user clicks on the button on the upper-right corner of the layer box, the KisLayerFilterWidget pops open and gives the user various options for filtering their layer tree (by name, by label color, and possibly others in the future). Because the filtering is hidden in a pop-over, we also need the button's icon to clearly indicate to the user when filtering is active, so the icon will be colored blue (the usual selection color) when filtering is ON and gray when filtering is OFF.

We're also breaking a new widget class, KisColorLabelButton, out of the existing design of the KisColorLabelSelectorWidget, in order to create a similar look and feel.

Right now we're designing towards option #2 (dynamic), which only shows KisColorLabelButtons for color labels that are being used by the current document. (This matches the way that Krita's current KisColorFilterCombo works.)

Let us know what you think about the design. Also, let's take some time to consider what other filtering possibilities (if any) we might want to give users.

In MR https://invent.kde.org/kde/krita/-/merge_requests/272

emmetoneill triaged this task as Normal priority.
emmetoneill updated the task description. (Show Details)Apr 1 2020, 10:36 PM
emmetoneill added a subscriber: eoinoneill.
eoinoneill updated the task description. (Show Details)Apr 2 2020, 1:14 AM
emmetoneill updated the task description. (Show Details)Apr 5 2020, 9:29 PM
emmetoneill closed this task as Resolved.
emmetoneill claimed this task.