Travis Griggs
04/04/2023, 12:11 AMcolorResource(id = R.color.row_border))
all over, but that gets really verbose. I'd honestly just like to write extension methods on Color (e.g. Color._row_border
), but I think that's considered Not Cool? And I'm not sure having things like RowBorder
at the same level of Purple80
is the way to go either.Stylianos Gakis
04/04/2023, 11:06 AMcontainedButtonContainer
and onContainedButtonContainer
to MaterialThemeTravis Griggs
04/04/2023, 4:25 PMTravis Griggs
04/04/2023, 4:31 PMTravis Griggs
04/04/2023, 4:38 PMStylianos Gakis
04/04/2023, 4:57 PMTravis Griggs
04/04/2023, 5:03 PMColor
instead of Colors
, and thought they were suggesting just extending Color with addtional dynamic constant names. And I was kind of appreciating that getting a color (dynamic or static) would just be a short Color.Something.
But alas, the documention does not suggest that. To actually do that anyway, having done a little bit of experimentation, the correct incantation would be something like:
val Color.Companion._TextDark:Color get() = Color(0xFF_22_22_22)
Stylianos Gakis
04/04/2023, 5:24 PM