[Libreoffice-ux-advise] [Bug 96417] Groups of buttons on the toolbar and sidebar

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sun Oct 23 15:10:20 UTC 2016


https://bugs.documentfoundation.org/show_bug.cgi?id=96417

--- Comment #7 from Yousuf Philips (jay) <philipz85 at hotmail.com> ---
(In reply to Yan Pas from comment #4)
> The main profit that I see is reducing horizontal lenglth of the panel.
> Currently, by default, LO have big icons and Calc panel is barely fits
> laptop screen. So grouping some buttons would benefit a lot! (for example
> grouping allignment actions)


(In reply to Maxim Monastirsky from comment #5)
> Well, one of the problems that Yan tries to solve is the toolbar usability
> in a narrow window. I think that collapsing some related buttons to group
> buttons when the window gets narrow, is much better solution than what we're
> doing currently (putting everything in one popup menu). Keep in mind that
> the current implementation requires two clicks anyway (open the context
> menu+click on the menu item), and it also creates a lot of headache like Bug
> 42029. But I do agree that it isn't easy to implement.

Yes being able to shrink down the toolbar when users resize the window is a
useful feature and something i had wrote about previously and never filed a bug
for. :D

https://docs.google.com/document/d/1hSYOFoG6jnj2G0zWDbUYkrGZoj7YCSI9j3onkTZ65bU/edit#heading=h.gye3opjb9xhy

So here are example toolbar xml snippets of how i believe the feature can be
implemented.

<toolbar:toolbarseparator/>
<toolbar:toolbaritem xlink:href=".uno:LeftPara" toolbar:group="halign"/>
<toolbar:toolbaritem xlink:href=".uno:CenterPara" toolbar:group="halign"/>
<toolbar:toolbaritem xlink:href=".uno:RightPara" toolbar:group="halign"/>
<toolbar:toolbaritem xlink:href=".uno:JustifyPara" toolbar:group="halign"/>
<toolbar:toolbarseparator/>

<toolbar:toolbarseparator/>
<toolbar:toolbargroup>
 <toolbar:toolbaritem xlink:href=".uno:LeftPara"/>
 <toolbar:toolbaritem xlink:href=".uno:CenterPara"/>
 <toolbar:toolbaritem xlink:href=".uno:RightPara"/>
 <toolbar:toolbaritem xlink:href=".uno:JustifyPara"/>
</toolbar:toolbargroup>
<toolbar:toolbarseparator/>

In these examples, the icon of the group button would need to be updated to the
currently selected alignment option to show status, similar to how the font
color button icon gets updated. There would be group button that dont require
updating of the status and would be merging of not directly related radio
button options, so this can be done like so in a toolbar xml.

<toolbar:toolbarseparator/>
<toolbar:toolbargroup xlink:href=".uno:InsertGroup">
 <toolbar:toolbaritem xlink:href=".uno:InsertTable"/>
 <toolbar:toolbaritem xlink:href=".uno:InsertGraphic"/>
 <toolbar:toolbaritem xlink:href=".uno:InsertObjectChart"/>
 <toolbar:toolbaritem xlink:href=".uno:DrawText"/>
</toolbar:toolbargroup>
<toolbar:toolbarseparator/>

Here .uno:InsertGroup would have an entry in the GeneralCommands.xcu and which
would provide the tooltip label for the button as well as an associated image
to link to.

The coding part would have to be written into the window resize refreshing
code.

Szymon implemented a similar feature in the notebookbar, where when it is
resized a group of buttons are collapsed into a single down arrow button, which
hopefully will be replaced with a single group button instead.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list