Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

An always-revealed toolbar would be more suitable for a pointer-driven interface. How, using the Ubuntu SDK, can I set the toolbar to be (and remain) revealed?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

I think there is a bug in the Ubuntu UI toolkit discussing whether this should be implemented by default. However, it currently must be done manually.

This is what I use:

onActiveChanged: tools.opened = showToolbar

tools: ToolbarItems {
    locked: showToolbar
    opened: showToolbar
}

Unfortunately, there is a bug in the SDK that causes a 2gu margin above the toolbar. I fix that by adding this to my MainView:

states: [
    State {
        when: showToolbar

        PropertyChanges {
            target: taskViewPage.parent
            anchors.bottomMargin: -root.toolbar.triggerSize
        }
    }
]
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.