[Interest] [Qt Labs Controls 5.6] Customization recommendations

Ronan Jouchet ronan.jouchet at cadensimaging.com
Thu Mar 10 16:19:14 CET 2016


Hi.

I'm porting a QML 5.5 tablet+desktop app to the new Qt 5.6 Labs
Controls. I have some feedback and a few questions.

1. Great job on the simple "2 axis" (theme, accent) customization for
    the Material/Universal styles, it provides a nice starting point :)
    And great job on sprucing up Material with helpful animations.

2. The [DOC] states that "all visual implementations sit in the imports
    folder, so that users who want to create their own complete style can
    copy the folder and start tweaking". And as further exemplified by
    Gabriel's QtWS15's [TALK], tweaking e.g. `Button` means providing
    your own `label` & `background` items.

    -> That sounds nice for users wanting total control over the complete
       style. But suppose instead I'm mostly happy with Material and
       only want to *override some attributes*, much like I would do
       with CSS in a webapp, and as opposed to wholly defining control
       sub-items {label, background, ...}.

       Is there a way to do that? Following the documentation sentence
       quoted above, I'd just copy the whole `material` folder and start
       tweaking, but then I'd have to merge my tweaks with upstream
       changes brought by each Qt release.
       Correct? Is this the workflow you have in mind?

3. With upcoming desktop support in mind, would it be interesting to
    add a third customization axis (alongside theme & accent) called
    "density" that would adjust paddings like the [GMAIL] feature does?

    For tablet+desktop apps where exact platform style conformance is not
    a goal and thus where a common UX / controls set is acceptable, it
    could provide widget size "responsiveness" to fit the platform
    expected input precision. That's what I was thinking to implement
    when I stumbled upon my question 2.

    Does it make sense / has such a feature already been discussed?

Thanks :)

[DOC] 
https://doc-snapshots.qt.io/qt5-5.6/qtlabscontrols-differences.html#styles
[TALK] https://www.youtube.com/watch?v=FqjabvHSiZk
[GMAIL] 
https://gist.githubusercontent.com/ronjouch/b9dbb87a577ed16a44e0/raw/d10b4ab6c378fb4e432235ff2fd430b5b3789206/gmail-display-density.png

-- 
Ronan



More information about the Interest mailing list