Documentation is missing description and example how to style PageHeader section Actions

Bug #1585548 reported by Maxim Gnidak
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
Fix Released
High
Tim Peeters

Bug Description

Documentation is missing description and example how to style PageHeader section Actions. It's not really clear to understand from Documentation how to style them.

Related branches

Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Tim Peeters (tpeeters)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ubuntu-ui-toolkit (Ubuntu):
status: New → Confirmed
Revision history for this message
Tim Peeters (tpeeters) wrote :

There is no Styles.SectionsStyle at the moment so custom styling using StyleHints is not supported now. Do you have some use cases on what you like to change from the default style?

Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Maxim Gnidak (maxvanceffer) wrote :

I already managed to change style of PageHeader sections. It took the time, and searching in severals projects.

I used this code:

PageHeader {
    extension: Sections {

        StyleHints {
            sectionColor: "#2d3a4e"
            underlineColor: "#2d3a4e"
            selectedSectionColor: "#FFFFFF"
            pressedBackgroundColor: '#c4c4c4'
        }
    }

    StyleHints {
        foregroundColor: 'white'
        backgroundColor: '#5c7cad'
    }
}

If this is stable api, then it better to be added in documentation of PageHeader style.

Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Incomplete → Confirmed
importance: Undecided → High
Tim Peeters (tpeeters)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: Confirmed → In Progress
Cris Dywan (kalikiana)
Changed in ubuntu-ui-toolkit (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-ui-toolkit - 1.3.2009+16.10.20160615.3

---------------
ubuntu-ui-toolkit (1.3.2009+16.10.20160615.3) yakkety; urgency=medium

  [ Tim Peeters ]
  * Introduce Styles.SectionsStyle. Fixes LP: #1585548
  * Update header contents only after its style was initialized.
    Fixes LP: #1588837
  * Update export_qml_dir.qml to work inside a lxd container.
  * Draw a red outline around the subheader in AdaptivePageLayout to warn that
    the old header is deprecated. Fixes LP: #1583636

  [ Christian Dywan ]
  * Select the current item before adding the test page.
  * Introduce gallery for browsing visual tests.
  * Put Scrollbar in ShaderEffectSource to blend with frame. Fixes LP: #1583543
  * Correctly use build/src dir with unit tests. Fixes LP: #1589982

  [ Florian Boucault ]
  * Do not initialize haptics at startup but only when used for the first time.
  * PageHeadButton: do not load the icon until the button is made visible.

  [ Albert Astals Cid ]
  * Prepend UC_ to performance env vars.
  * Using -1 as PERFORMANCE_MONITOR_WARNING_COUNT_THRESHOLD envvar disables the
    warning count threshold.
  * Add envvars to change the performance monitor variables.

 -- Zoltán Balogh <email address hidden> Wed, 15 Jun 2016 18:32:29 +0000

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