uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QskAspect: Introduce enum emphasis, variant or similar

peter-ha opened this issue · comments

Trying to get a common understanding of different skins like Material 3, Windows, iOS and Ubuntu (Vanilla), we might need controls with different emphasis or variants, e.g. important push buttons being more noticeable than less important ones.

This issue is to gather some feedback on how we want to proceed here.

Controls that have different emhasis:

Screenshot from 2023-02-02 14-29-22

Screenshot from 2023-02-02 14-30-28

Screenshot from 2023-02-02 14-31-01

Screenshot from 2023-02-02 14-31-22

Screenshot from 2023-02-02 14-38-44

Screenshot from 2023-02-02 14-53-04

Screenshot from 2023-02-02 14-57-11

Controls that have different variants (that are different from a styling perspective):

  • Material 3 buttons, FABs (see above) and icon buttons:

Screenshot from 2023-02-02 15-34-51

  • Material 3 Chips (?, see above): assist / filter / input / suggestion

Screenshot from 2023-02-02 14-47-50

I tried adding a new enum Emphasis to QskAspect, just to get a feeling for it: https://github.com/edelhirsch/qskinny/tree/m3

This seems to work nicely for the buttons:

Screenshot from 2023-02-03 16-13-33

Screenshot from 2023-02-03 16-57-14

Also at this point I am wondering whether the Section enum works out; my gut feeling is this is not exactly what we need for Material 3 at least, but let's see how this all plays out...

commented

see QskAspect::Variation