-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change ComponentModifiers style from property to function
For example, what used to be: ``` ComponentStyle(...) { active = Modifier.color(Colors.Red) } ``` is now ``` ComponentStyle(...) { active { Modifier.color(Colors.Red) } } ``` On the surface of it, these feels needlessly verbose, but it future-proofs us to more complex selectors in the future, such as: ``` ComponentStyle(...) { nthChild(4) { Modifier.color(Colors.Green) } } ``` This also has the added bonus of communicating that setting modifiers is a one-way operation. You can set, but you can't get.
- Loading branch information
1 parent
1e7615c
commit 732b5b2
Showing
7 changed files
with
196 additions
and
208 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.