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

Bug #1186968 reported by Olivier Tilloy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Fix Released
High
Florian Boucault
Ubuntu UX
Fix Released
High
Katie Taylor
ubuntu-ui-toolkit (Ubuntu)
Fix Released
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

Revision history for this message
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
Revision history for this message
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
Revision history for this message
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)
Changed in ubuntu-ux:
assignee: Calum Pringle (calumpringle) → Katie Taylor (katie-t)
Katie Taylor (katie-t)
Changed in ubuntu-ux:
status: Confirmed → Fix Committed
John Lea (johnlea)
Changed in ubuntu-ux:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.