[Libreoffice-bugs] [Bug 142947] Make menu expander triangles configurable for icon design

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Sep 16 08:09:16 UTC 2021


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

--- Comment #9 from Heiko Tietze <heiko.tietze at documentfoundation.org> ---
This code sizes the triangles equally but it depends only on the view setting
for toolbars. Small icons on Notebookbars don't fit the size of large on
toolbars. The toolbox is not aware of the position (NB, TB or sidebar) and we
shouldn't make it dependent. 

-    const tools::Long nSize = rDropDownRect.getWidth() - 2 * nMargin;
+    tools::Long nSize;
+    switch (officecfg::Office::Common::Misc::SymbolSet::get())
+    {
+       case 0: nSize = 10 - 2 * nMargin; break; //S
+       case 1: nSize = 13 - 2 * nMargin; break; //L
+       case 2: nSize = 13 - 2 * nMargin; break; //Auto
+       case 3: nSize = 16 - 2 * nMargin; break; //XL
+    }

My take: WF resp. size the controls containing icons in NB equally.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210916/ed003e3a/attachment.htm>


More information about the Libreoffice-bugs mailing list