Olivier Patry
01/26/2022, 10:21 PMMaterialTheme
open properties but if I want to customize more, I'm stuck.
For instance, I'd like to tweak the width of the `OutlinedButton`'s border and potentially its color.
The only thing I can think of so far is to redefine my own MyAppButton
tweaking what's needed (by calling built-in button composable or not, impl detail here).
Can't we have ways to override ButtonDefaults
? (using opened var
instead of val
or LocalButtonDefaults
or something like that).
I have the feeling that redefining custom buttons make composable less reusable and tightly coupled to custom composable rather than provided theming.Simon Stahl
01/26/2022, 10:56 PMMaterialTheme
and adjusting as neededOlivier Patry
01/26/2022, 11:04 PMMaterialTheme
(ie. not border color and width)Kirill Grouchnikov
01/26/2022, 11:08 PMButton
composable is a part of the specific design system implementation - Material design. If you start deviating from what that design system supports, you will need to create your own composables. Requesting that the UI toolkit supports all possible customizations (a couple for you, a couple more for somebody else, a couple here, a couple more there) is simply not a maintainable solution.Adam Powell
01/26/2022, 11:11 PMOlivier Patry
01/26/2022, 11:16 PMAdam Powell
01/26/2022, 11:18 PMIan Lake
01/26/2022, 11:41 PMOlivier Patry
01/26/2022, 11:46 PMIan Lake
01/26/2022, 11:49 PM