g3w-suite / g3w-client

Map viewer addon for G3W-SUITE
https://g3w-suite.readthedocs.io/en/latest/g3wsuite_client.html
Mozilla Public License 2.0
20 stars 17 forks source link

Indeterminate checkbox state (treeview items) #423

Open Raruto opened 1 year ago

Raruto commented 1 year ago

Checklist

Motivation

Probably within QGIS desktop UI it is not yet managed.

BTW, it's quite common to provide to end users an intermediate state for treeview parent nodes that are not fully active.

Here below an indeterminate checkboxes example:

image

Suggested solution

Make use of the fa-square-minus to denote this state:

Before

image

After

image

Alternatives considered

leolami commented 1 year ago

Hi @Raruto it could be a valid solution but we want to follow the behavior and style of QGIS as closely as possible to simplify the transition from desktop to web for the average QGIS user

And as you can see, the checkbox doesn't change its appearance based on the layers turned on or off inside it

immagine

Thanks for the report Leonardo