buttons in infobars, "pressed" state

Heiko Tietze heiko.tietze at documentfoundation.org
Mon Sep 14 12:49:59 UTC 2020


Don't see a reason to toggle buttons on the infobar. We should keep it as simple
as possible.

On 07.09.20 13:25, Caolán McNamara wrote:
> tdf#97926 (9e3ba7c3036c4d21e01d6f75ed29a1e8c4208141) added a uno api
> to insert infobars with optional buttons which can dispatch commands.
> 
> much earlier commits ca36bcc05d7159fd4cd8e3489fdf4b4551b696d6 and
> b34eab5996c52269360d166815ef15a250627c48 added features that when
> a button is associated with a command then that the button is disabled
> if the command is disabled and shown pressed if the associated
> FeatureStateEvent has a bool state.
> 
> I'm exploring using native buttons in the infobar and the pressed-state
> is problematic for me, "toggle" buttons can be set in a pressed state,
> but "normal" buttons typically not. Do we know if it is an expected
> feature of a button in an infobar that it should be down depressed in
> some circumstance, and if it is, is there an example of a command which
> has a bool state. Trying some things like .uno:SpellOnline or .uno:Bold
> which look sort of toggleable just show void for rEvent.State in
> PushButton::statusChanged
> 
> _______________________________________________
> LibreOffice mailing list
> LibreOffice at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/libreoffice
> 

-- 
Dr. Heiko Tietze, UX-Designer and UX-Mentor
Tel: +49 30 5557992-63 | Mail: heiko.tietze at documentfoundation.org
The Document Foundation, Kurfürstendamm 188, 10707 Berlin, DE
Gemeinnützige rechtsfähige Stiftung des bürgerlichen Rechts
Legal details: https://www.documentfoundation.org/imprint

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/libreoffice/attachments/20200914/dda030d9/attachment.sig>


More information about the LibreOffice mailing list