[kde-guidelines] Custom controls (was Discouraging use of custom widget replacements)

Thomas Pfeiffer colomar at autistici.org
Wed Jul 10 08:59:48 UTC 2013


On 10.07.2013 09:29, Heiko Tietze wrote:
> Viewing and Navigation: Complex views
> * If you really need to create your own widget follow the guidelines for
> custom controls.
>
> {{Construction}}
> == Purpose ==
>
> == Examples ==
>
> == Guidelines ==
> * Do you really need a custom widget? Check whether an existing widget
> cannot be used instead.
> * It is strongly recommended to consult the usability team
> (https://git.reviewboard.kde.org/groups/usability/)
> * Create interaction by following natural design. Find the appropriate
> metaphor and define a skeuomorph interface.

Hmm... many people nowadays think "OSX Lion Calendar" when they hear 
"skeuomorphic design" or "skeuomorph interface", and I don't think many 
people within KDE like that. Marco Martin even wrote a blog post pretty 
much bashing it (I'd like to insert the link, but I can't reach his blog 
atm).
Maybe we should leave the word out and leave it at "natural design" and 
"appropriate metaphor".

> * Make sure your new widget:
> ** Resizes correctly
> ** Handles right-to-left setups
> ** Works well with different color schemes
> ** Looks as close to native as possible (use QStyle or QStylePainter to
> draw elements)

-> Looks as close to existing Qt or kdelibs widgets as possible (...)

> ** Is based on an existing widget rather than a plain QWidget if possible
> * If possible, consider making your widget reusable enough so that it
> can be integrated in standard widgets
> == Implementation ==
>
>
> (Just to put all idea together in one place. There are a lot of aspects
> to add.)




More information about the kde-guidelines mailing list