[sdk] Allow header background customization per page

Bug #1350893 reported by Tim Peeters
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Committed
Medium
Jouni Helminen
ubuntu-ui-toolkit (Ubuntu)
Fix Released
Medium
Tim Peeters

Bug Description

Each Page should have the ability to customize a few things about the look of the header, these changes should take affect when the page becomes the top page in a PageStack or the current tab in Tabs.

headerColor: Set the background color of the Header
headerGradient: Same as headerColor, only using a Gradient object instead of a single color
headerImage: Set a background Image on the Header, resized to fit based on fillMode
headerBorderImage: Same as headerImage, but using a BorderImage

follow-up of this bug: https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1315884 which I changed to only include header foreground color customization.

Related branches

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
assignee: nobody → Tim Peeters (tpeeters)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Tim Peeters (tpeeters) wrote :

Adding
property Item backgroundItem

to Page.head may be a solution, like that the developer can set anything (or just a Rectangle if they want a simple colored background).

Michael Hall (mhall119)
description: updated
Changed in ubuntu-ux:
assignee: nobody → Jouni Helminen (jounihelminen)
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
status: Confirmed → Incomplete
John Lea (johnlea)
Changed in ubuntu-ux:
importance: Undecided → Medium
status: New → Triaged
summary: - Allow header background customization per page
+ [sdk] Allow header background customization per page
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit:
importance: Medium → Low
Changed in ubuntu-ux:
status: Triaged → Incomplete
Zoltan Balogh (bzoltan)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Tim Peeters (tpeeters)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Jouni Helminen (jounihelminen) wrote :

Makes sense to allow developers to change the header colour by page if someone really wants to

Changed in ubuntu-ux:
status: Incomplete → Fix Committed
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → In Progress
importance: Low → Medium
Changed in ubuntu-ui-toolkit:
importance: Low → Medium
no longer affects: ubuntu-ui-toolkit
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.3.1688+15.10.20151018.1-0ubuntu1

---------------
ubuntu-ui-toolkit (1.3.1688+15.10.20151018.1-0ubuntu1) wily; urgency=medium

  [ Tim Peeters ]
  * Add delegate property to ActionBar.
  * Introduce PageHeader component.
  * Add header property to Page.
    Fixes LP: #1248898, LP: #1350893, LP: #1445016, LP: #1492328
  * Use the correct navigation overflow icon in PageHeader.

  [ Loïc Molinari ]
  * Fixed OpenGL ES 2 mipmap fallback. OpenGL ES 2 doesn't support
    GL_TEXTURE_MAX_LEVEL by default, it is only available via an extension. It
    was working on the devices where this extension is available but not on
    the emulator. Fixes LP: #1505221.

  [ Christian Dywan ]
  * Handle incubateObject returning null in PageWrapperUtils.
    Fixes LP: #1505197
  * Add module header to PageWrapperUtils.

  [ Zoltan Balogh ]
  * Improve test plan
    - Ad -q parameter to provision the device for normal use with a PPA
    - Fix up the camera and clock app on the device to acces services
    - Replace phablet tools with manual enabling writable image
    - Fix PPA pin up for staging and other regular PPAs.

  [ Zsombor Egri ]
  * Emit Dropped event for live ListItem drag'n'drop. Fixes LP: #1500118.

  [ Timo Jyrinki ]
  * Build dep on libinput-dev and libxkbcommon-dev (LP: #1437192).

  [ Benjamon Zeller ]
  * Remove unused variables.

  [ CI Train Bot ]
  * No-change rebuild.

 -- Zoltan Balogh <email address hidden> Sun, 18 Oct 2015 03:47:27 +0000

Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → 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.