Sailfish Silica theme color names are confusing

asked 2014-05-05 00:23:46 +0300

tokaru gravatar image

updated 2014-07-31 14:08:04 +0300

jiit gravatar image

In the last months, I have repeatedly read the respective passages of the Sailfish Silica Reference as well as the Common Pitfalls Page. Looking at various apps, it does not always seem to be clear which color should be used for which elements.


1. Improve documentation on which color should be used for which kind of element

I think I have understood now that the Theme colors should be used like this (please correct me if I am wrong):

  • interactive elements: Theme.primaryColor
  • active/selected elements: Theme.highlightColor or Theme.secondaryHighlightColor, depending on priority
  • static elements: Theme.highlightColor or Theme.secondaryHighlightColor, depending on priority

But I am still not 100% sure, because the Sailfish website is not 100% clear about labels, e.g.

Theme.primaryColor - the default Label color

vs.

[...] descriptive items like static labels, page and section headers are painted with the ambience highlight color

So well... primary color? Or highlight color? And is there a recommendation if an element is interactive and active/selected?


2. Improve theme color names to be more semantic

Anyway, I think the color names in the theme should be self-explaining (semantic) for a better understanding and thus for a consistent user experience... so what about

  • Theme.color.interactive + interactiveSecondary
  • Theme.color.active + activeSecondary
  • Theme.color.static + staticSecondary

It would be a lot easier to understand for developers, and - should there be need for a fifth color in the future, e.g. for better differentiation of static and active elements - apps developed today would be prepared for the themes of tomorrow.


Obviously 2 would render 1 unnecessary, and be my preferred solution. Less reading and more developing for developers, more consistency for users. :)

edit retag flag offensive close delete

Comments

1

especially the naming scheme you propose is much more rational; group items of same category.

Acce ( 2014-05-05 15:22:55 +0300 )edit