No documentation for how to hide MainView's header
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Committed
|
Low
|
Tim Peeters | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Low
|
Tim Peeters |
Bug Description
All Ubuntu applications should have a MainView, even if you want the app to be fullscreen and not contain the "Ubuntu header" (for example a game). The way to do this, currently, is to have a Header and a Page, and set the Page's title to the empty string, "". This will hide the header. This is, however, undocumented, and even if documented is a bit crufty (what happens if you have more than one page and one of them has a blank title? Does the header appear only on some pages? That would mean that you can switch between pages until you get to a headerless one and then you're stuck there.) Perhaps there should be a hideHeader boolean property on MainView or similar: it would do the same thing as setting the current Page's title to "", but would be a property of the header rather than the page: it would also make it easier to discover this feature from reading the documentation, because there would be an explicit property to do what's required rather than a magic value of an existing property.
Related branches
- 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 |
Changed in ubuntu-ui-toolkit: | |
importance: | Medium → Low |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Tim Peeters (tpeeters) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | Confirmed → In Progress |
Fix committed into lp:ubuntu-ui-toolkit/staging at revision None, scheduled for release in ubuntu-ui-toolkit, milestone Unknown