Commit Graph

14 Commits

Author SHA1 Message Date
Benoit Marty
16f30db20e Move TypographyAliases next to ColorAliases 2023-07-11 11:29:56 +02:00
Benoit Marty
38bac940c7 Cleanup doc 2023-07-11 11:29:56 +02:00
Benoit Marty
84fad3e7f3 Create alias for typography (more semantic name). aliasButtonText 2023-07-11 10:29:06 +02:00
Benoit Marty
529f6d681e Create alias for typography (more semantic name). aliasScreenTitle 2023-07-11 10:29:06 +02:00
Benoit Marty
cbe627db0f Remove unused legacy colors. 2023-07-11 10:29:06 +02:00
Benoit Marty
7485a62969 Remove unused materialTypography. We should only use typography (TypographyTokens) 2023-07-11 10:29:06 +02:00
Benoit Marty
9b042cf056 Remove ElementColors. We should use semantics and material colors now. 2023-07-10 17:33:42 +02:00
Benoit Marty
3ab393a41f Use temporary color for default avatar background 2023-06-29 18:17:37 +02:00
Benoit Marty
bc88eb62c5 Fix message color bubbles. 2023-06-29 18:17:37 +02:00
Benoit Marty
0e9a4bd860 Ignore isHighlighted state for now, we need a design decision on it. 2023-06-29 18:17:37 +02:00
Benoit Marty
a663f0e86c Fix placeholoder color issue (with a workaround) 2023-06-29 18:17:37 +02:00
Jorge Martin Espinosa
79f7537c0b Update compound theme colors (#718)
* Update `*surfaceVariant` colors in `MaterialTheme`.

* Update screenshots

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-29 09:19:31 +02:00
Jorge Martin Espinosa
c5a5810c05 Link Compound's TypographyTokens to ElementTheme. (#700)
* Link Compound's `TypographyTokens` to `ElementTheme`.

Also add some docs about when we should use each set of tokens.

* Renamed `LocalColors` to `LocalLegacyColors`.

Made both `LocalLegacyColors` and `LocalCompoundColors` internal. This means it will need to always be used through `ElementTheme.`

Also, removed any usages of `LocalColors.current` accross the project, they're now used through `ElementTheme.legacyColors`.
2023-06-28 08:53:20 +00:00
Jorge Martin Espinosa
02dc447624 [Compound] Integrate compound tokens (#586)
* Added tokens.

* Apply color to MaterialTheme, also add typography.

* Map colors to the right ones in the themes.

* Create and improve previews of some components

* More preview improvements

* Add `tertiary` and `onTertiary` colors, remove some unused ones.

* Fix usage of deleted color token

* Fix bug in Switch previews

* Create a separate `:libraries:theme` module to keep everything related to colors, typography and Compound in general.

* Fix `DatePickerPreview`

* Add missing Compound generated files by fixing their package name

* Move `ElementTheme` to the `:libraries:theme` module, make some variables internal.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-27 16:15:40 +00:00