← Back to team overview

ubuntu-phone team mailing list archive

Fwd: [Ubuntu-touch-coreapps] Upcoming UI Toolkit Panel/Toolbar API changes

 

---------- Forwarded message ----------
From: Tim Peeters <tim.peeters@xxxxxxxxxxxxx>
Date: Thu, Sep 12, 2013 at 1:33 PM
Subject: Re: [Ubuntu-touch-coreapps] Upcoming UI Toolkit Panel/Toolbar API
changes
To: Michael Spencer <sonrisesoftware@xxxxxxxxx>


I can imagine that this would be a good solution, but it is really a
decision for design to make, and I don't think they are focussing on
desktop yet. We can discuss making your approach (using wideAspect) the
default until they do have time to work out the behavior on desktop.


On Wed, Sep 11, 2013 at 2:48 PM, Michael Spencer
<sonrisesoftware@xxxxxxxxx>wrote:

> On Wed, Sep 11, 2013 at 4:11 AM, Tim Peeters <tim.peeters@xxxxxxxxxxxxx>wrote:
>
>> Hello,
>>
>> I would like to make you aware of some upcoming changes to the API and
>> behavior of the Panel and Toolbar in the Ubuntu UI Toolkit, related to
>> opening and closing the panel/toolbar.
>>
>> First, I like to point out that for applications using MainView with
>> Pages (the recommended app structure), that opening and closing of the
>> toolbar is handled by the UITK. The current behavior (hidden by default,
>> swipe in by user to show it) is not ideal, but we are working together with
>> design to improve the default behavior. Apps that still need to override
>> this behavior are recommended to set the Page.tools.opened property of the
>> currently active page to force the toolbar to open/close. Apps that follow
>> these recommendations are not affected by the changes below.
>>
>> 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.
>>
>
> So will the toolbar be open & locked by default on the desktop? Currently
> in each page's tools, I set opened and locked based on wideAspect. Will
> something similar be included by default?
>
> Thank you,
> --
> Michael Spencer | sonrisesoftware.wordpress.com
>
> Trust in the Lord with all thine heart; and lean not unto thine own
> understanding. In all thy ways acknowledge him, and he shall direct thy
> paths.
> - Proverbs 3:5-6
>

References