Need a way to expose and access common colors for a theme

Reported by Olivier Tilloy on 2013-06-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
High
Florian Boucault
Ubuntu UX
High
Katie Taylor
ubuntu-ui-toolkit (Ubuntu)
Undecided
Unassigned

Bug Description

The UITK should somehow expose the common colors that make up the current style’s visual identity, so that application authors can refer to those colors in their code without having to hardcode them.

An example of such a color is the Ubuntu Orange that’s tied to the Ambiance theme. In another theme, it might be a completely different color, but application developers shouldn’t have to care, they should be able to refer to this color by a named property and know that their applications will look right, regardless of the current theme.

I’m not sure how this should be exposed to application developers. Maybe a custom SystemPalette component (see http://qt-project.org/doc/qt-5.0/qtquick/qml-qtquick2-systempalette.html)?

Related branches

lp:~fboucault/ubuntu-ui-toolkit/color_palette
Merged into lp:ubuntu-ui-toolkit at revision 608
Tim Peeters: Approve on 2013-07-10
PS Jenkins bot: Approve (continuous-integration) on 2013-07-08
Olivier Tilloy (osomon) wrote :
Changed in ubuntu-ui-toolkit:
status: New → Confirmed
importance: Undecided → High
Changed in ubuntu-ux:
assignee: nobody → Calum Pringle (calumpringle)
status: New → Confirmed
importance: Undecided → High
Changed in ubuntu-ui-toolkit:
assignee: nobody → Florian Boucault (fboucault)
Changed in ubuntu-ui-toolkit:
status: Confirmed → In Progress
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:ubuntu-ui-toolkit at revision 608, scheduled for release in ubuntu-ui-toolkit, milestone Unknown

Changed in ubuntu-ui-toolkit:
status: In Progress → Fix Committed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 0.1.46+13.10.20130711-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+13.10.20130711-0ubuntu1) saucy; urgency=low

  [ Kaleo ]
  * Introduce new theme color palette API centralising the definition of
    the colors used by the widgets to draw themselves. Adapted most
    widgets to use the theme color palette. The color palette defined in
    the Ambiance theme is the one from the new visual design. (LP:
    #1186968, #1197853)
  * Switch: refresh to match new visual design.
  * Tabs: more robust binding of the header component.
  * CheckBox: refresh to match new visual design.

  [ Loïc Molinari ]
  * Added support for -Werror flagged debug builds and fixed warnings.
  * [UbuntuShape] Fixed alignment support.

  [ tpeeters ]
  * Add API tests for MainView.

  [ Ubuntu daily release ]
  * Automatic snapshot from revision 613
 -- Ubuntu daily release <email address hidden> Thu, 11 Jul 2013 04:02:09 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Fix Released
Changed in ubuntu-ui-toolkit:
status: Fix Committed → Fix Released
John Lea (johnlea) on 2013-09-09
Changed in ubuntu-ux:
assignee: Calum Pringle (calumpringle) → Katie Taylor (katie-t)
Katie Taylor (katie-t) on 2013-09-09
Changed in ubuntu-ux:
status: Confirmed → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers