Icon control #355

Manually merged
promag merged 2 commits from icon into main 2023-08-26 10:26:12 +00:00 AGit
promag commented 2023-08-23 21:52:05 +00:00 (Migrated from github.com)

Button control is used to show icons because it has support to colorize the image. Button is packed with more stuff like states, event handling, label... eventually a light component should be used instead. For now, abstract the usage of Button in the new Icon control and use it in trivial places. There are more places where Icon can be used but require more changes, so I'm leaving them for follow-ups.

`Button` control is used to show icons because it has support to colorize the image. `Button` is packed with more stuff like states, event handling, label... eventually a light component should be used instead. For now, abstract the usage of `Button` in the new `Icon` control and use it in trivial places. There are more places where `Icon` can be used but require more changes, so I'm leaving them for follow-ups.
promag commented 2023-08-23 21:58:15 +00:00 (Migrated from github.com)

Forgot to mention that this is a small step in fixing focus navigation since the previous Button instances had by default enabled: true and so were in the focus chain.

Forgot to mention that this is a small step in fixing focus navigation since the previous `Button` instances had by default `enabled: true` and so were in the focus chain.
jarolrod (Migrated from github.com) approved these changes 2023-08-25 19:32:42 +00:00
jarolrod (Migrated from github.com) left a comment

ACK 000837be04

Agree with encapsulating the Button Icon workaround into a dedicated component. This does make some progress in fixing the tab focus chain; can especially be seen in tabbing on a settings page.

ACK 000837be04343cbe8b17f3c933a69c0ca78c14ab Agree with encapsulating the Button Icon workaround into a dedicated component. This does make some progress in fixing the tab focus chain; can especially be seen in tabbing on a settings page.
johnny9 (Migrated from github.com) approved these changes 2023-08-26 03:12:09 +00:00
johnny9 (Migrated from github.com) left a comment

ACK 000837be04

Code looks cleaner with the new component, good change.

ACK 000837be04343cbe8b17f3c933a69c0ca78c14ab Code looks cleaner with the new component, good change.
Sign in to join this conversation.
No description provided.