Review Request 125349: use a RowLayout for ToolbarLayout

David Edmundson david at davidedmundson.co.uk
Wed Sep 23 10:33:44 UTC 2015



> On Sept. 22, 2015, 1:22 p.m., David Edmundson wrote:
> > src/declarativeimports/plasmacomponents/qml/ToolBarLayout.qml, line 48
> > <https://git.reviewboard.kde.org/r/125349/diff/1/?file=405034#file405034line48>
> >
> >     So to make sure I'm clear we want to get
> >     
> >     child[0]
> >     spacer1
> >     child[1.....n-1]
> >     spacer2
> >     child[n]
> 
> Marco Martin wrote:
>     yeah
> 
> David Edmundson wrote:
>     That seems rather random. Why?
>     I predict we'll just see devs work round this by wrapping things in items or adding blank items all over the place.
> 
> Marco Martin wrote:
>     ...or just use RowLayout directly, that's perfectly fine
>     that's to look like the discussions we done at Randa on apps look.
>     now, i could also do this in higher level components that i'll need to do anyways and the first/last buttons would have some semantic meaning (opening/closing the left and right menu)
>     so it may make sense to having only centered buttons as children and properties for the left and right one.

>...or just use RowLayout directly, 

Didn't think of that. Good point.

Though at the least it needs a line in the documentation so it doesn't appear unexpected.

I prefer higher level semanatic meaning.
if it said "property Item primaryControl" 

 - it'd be more intuitive to use properly
 - we can restyle it in the future
 - it'll be easier to leave blank
+ then we could maybe then just make a default property that alias' into an inner layout and not have that function. 

One thing to note, your middle actions currently aren't centered relative to the toolbar but to the first and last children. i.e if your last child is giant, and the first is tiny the middle items will be slightly to the left of the middle of the toolbar


- David


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/125349/#review85751
-----------------------------------------------------------


On Sept. 22, 2015, 2:35 p.m., Marco Martin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/125349/
> -----------------------------------------------------------
> 
> (Updated Sept. 22, 2015, 2:35 p.m.)
> 
> 
> Review request for Plasma.
> 
> 
> Repository: plasma-framework
> 
> 
> Description
> -------
> 
> more reliable.
> also put the first and last buttons at the extremes, the others in the middle as briefly discussed with the VDG in Randa
> 
> 
> Diffs
> -----
> 
>   src/declarativeimports/plasmacomponents/qml/ToolBarLayout.qml 4206bed 
> 
> Diff: https://git.reviewboard.kde.org/r/125349/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Marco Martin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20150923/ef522f52/attachment.html>


More information about the Plasma-devel mailing list