automotive-design-compose icon indicating copy to clipboard operation
automotive-design-compose copied to clipboard

Separate layout and appearance style properties

Open iamralpht opened this issue 1 year ago • 3 comments

The layout and appearance properties are all bundled into ViewStyle -- we can refactor ViewStyle to contain several structs that are more focused on a particular area (ViewStyle is currently modeled after DOM style, but this isn't necessarily the best direction). Additionally, we could choose to break layout down into interior/exterior, or even further along "which properties are used by which layout model".

iamralpht avatar Mar 13 '24 15:03 iamralpht

#792 has some discussion on splitting up layout properties.

iamralpht avatar Mar 13 '24 15:03 iamralpht

Also worth thinking about how tokens fit in, if we revisit ViewStyle.

iamralpht avatar Mar 13 '24 15:03 iamralpht

@iamralpht did this PR resolve this https://github.com/google/automotive-design-compose/pull/974, or is there more to be done with this ticket?

rylin8 avatar Apr 23 '24 18:04 rylin8