[Libreoffice-ux-advise] [Bug 154687] Add a way to reset toolbar button colors to default (see comment 4)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 25 09:20:30 UTC 2023


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

--- Comment #11 from Maxim Monastirsky <momonasmon at gmail.com> ---
(In reply to Heiko Tietze from comment #9)
> Is the current behavior intentionally implemented?
Yes it is, see SdrPaintView::SetDefaultAttr, and also the related
SetDefaultStyleSheet method, which sets the default style if a style is
double-clicked with no shape selected.

This is in-line with MS Office and any other drawing app, that let you choose
the default color for new shapes in advance. Our problem here is that we added
styles as a separate formatting layer to the mix, which is why there might be a
need to clear the direct formatting layer, for the underlying style to be
effective.

I believe that a better alternative to using DF for shape defaults, is to allow
setting arbitrary style as the default for new shapes instead of the "Default
Drawing Style" (just modifying the default style isn't always appropriate, as
it might affect other shapes as well). As said above, it is already possible by
double-clicking on a style when no shape is selected. The problem is that this
currently works only for shapes that otherwise would use "Default Drawing
Style", but e.g. lines default to "Object without fill", and not affected by
this choice. So a better UI is needed for this (might be as simple as a context
menu item of "use this style by default for the current shape kind").

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


More information about the Libreoffice-ux-advise mailing list