← Back to team overview

ubuntu-phone team mailing list archive

Fwd: Upcoming UI Toolkit Panel/Toolbar API changes

 

---------- Forwarded message ----------
From: Tim Peeters <tim.peeters@xxxxxxxxxxxxx>
Date: Thu, Sep 12, 2013 at 1:31 PM
Subject: Re: [Ubuntu-phone] Upcoming UI Toolkit Panel/Toolbar API changes
To: Michael Zanetti <michael.zanetti@xxxxxxxxxxxxx>


The toolbar.opened property was not supposed to be used directly anyway,
except if you use the Panel component for custom panels, such as the
webbrowser app does. For applications using a MainView with Page, the Page
still has a tools property of which you can specify the opened property as
(Page.)tools.opened: pageStack.depth > 1.

On the other hand, the problem that you are trying to solve with that may
be more general, so a behavior that we should put in the UITK (after
discussion with design). There are already upcoming changes to the toolbar
behavior that will always open the toolbar when you switch pages, so the
user can see that there is a back button. If you have proposals to always
show the toolbar when there is a back button (the upcoming changes will
hide the toolbar again if it is not interacted with in 5 seconds), please
discuss that with design.


On Wed, Sep 11, 2013 at 12:26 PM, Michael Zanetti <
michael.zanetti@xxxxxxxxxxxxx> wrote:

> Hi Tim
>
> thanks for the heads up.
>
> On Wednesday 11 September 2013 11:11:51 Tim Peeters wrote:
> >
> > These changes were made recently in the UITK:
> > * ADDED IN Panel: function open()
> > * ADDED IN Panel: function closed()
> > * DEPRECATED IN Panel: writable property opened. Will be made read-only.
>
> Too bad... This makes things like "toolbar.opened: pageStack.depth > 1"
> impossible and forces devs to have all sorts of onSomething handlers to
> control toolbar behavior. This change doesn't seem very QML'ish...
>
> Br,
> Michael
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

References