[sdk] Allow header background customization per page
Bug #1350893 reported by
Tim Peeters
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:/
Related branches
lp:~tpeeters/ubuntu-ui-toolkit/40-PageWithHeader
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 411 lines (+279/-12)8 files modifiedcomponents.api (+1/-0)
src/Ubuntu/Components/1.3/AdaptivePageLayout.qml (+7/-3)
src/Ubuntu/Components/1.3/MainView.qml (+9/-1)
src/Ubuntu/Components/1.3/Page.qml (+40/-0)
src/Ubuntu/Components/1.3/PageTreeNode.qml (+0/-7)
src/Ubuntu/Components/Themes/Ambiance/1.3/PageHeaderStyle.qml (+1/-1)
tests/unit_x11/tst_components/tst_multicolumnheader.qml (+69/-0)
tests/unit_x11/tst_components/tst_page_with_header.qml (+152/-0)
Changed in ubuntu-ui-toolkit: | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → Medium |
status: | New → Confirmed |
description: | updated |
Changed in ubuntu-ux: | |
assignee: | nobody → Jouni Helminen (jounihelminen) |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → Incomplete |
Changed in ubuntu-ux: | |
importance: | Undecided → Medium |
status: | New → Triaged |
summary: |
- Allow header background customization per page + [sdk] Allow header background customization per page |
Changed in ubuntu-ui-toolkit: | |
importance: | Medium → Low |
Changed in ubuntu-ux: | |
status: | Triaged → Incomplete |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → Low |
status: | New → Incomplete |
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 |
To post a comment you must log in.
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).