Commit 41ca6d8
authored
Align StreamDesign.Colors with Figma design token system (#6272)
* Add Chrome neutral color scale to `StreamDesign` and update `StreamPrimitiveColors`.
* Introduce `ColorScale` and `ChromeScale` to `StreamDesign`.
* Refactor `StreamDesign.Colors` to use `ColorScale` and `ChromeScale` objects.
* Renames to match Figma in favor of traceability.
* Remove unexisting in Figma `chipBg` and `composerBg` from `StreamDesign.Colors`.
* Update to correct color references as per Figma designs
* Color.Unspecified defaults were silently broken. Defaults were wrong for dark themes
* Reorganize and update `StreamDesign.kt` color definitions.
* Update chip color tokens in `StreamDesign` and `ReactionCountRow`.
* Update `StreamDesign.kt` documentation based on Figma.
* Move component-specific color properties (e.g., `badgeBgInverse`, `chatBgIncoming`, `controlRemoveBg`) from the primary constructor to derived properties with default values.
* These files reference backgroundElevationElevation1 but the property was renamed to backgroundCoreElevation1 in the design token reorganization.
* Use `brand` and `chrome` instead of direct `StreamPrimitiveColors` references as per Figma tokens
* Change visibility of component color tokens in `StreamDesign.kt` from `public` to `internal`.
* Move `chatPollProgressFillOutgoing`, `chatReplyIndicatorIncoming`, `chatReplyIndicatorOutgoing`, and `controlPlaybackThumbBgDefault` to the end of the `Colors` class and its default factory methods to match the updated organizational structure.
* apiDump
* Update documentation for `backgroundCoreOnAccent` in `StreamDesign.kt`.
* Update `StreamDesign` to allow custom color scales in default color palette constructors.
* Update `StreamDesign` to support color scale inversion and customizable default colors.
* Make `chatPollProgressFillOutgoing`, `chatReplyIndicatorIncoming`, and `chatReplyIndicatorOutgoing` internal derived, and update `skeletonLoadingHighlight` values.
* Update `backgroundCoreInverse`
* Update snapshot files
* apiDump
* Make `controlPlaybackThumbBgDefault` internal derived.1 parent 65d5819 commit 41ca6d8
99 files changed
Lines changed: 896 additions & 748 deletions
File tree
- stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample
- feature
- channel
- add
- component
- group
- list
- reminders
- ui
- channel
- chats
- component
- location
- login
- profile
- stream-chat-android-compose
- api
- src
- main/java/io/getstream/chat/android/compose/ui
- attachments
- content
- preview
- internal
- channels
- header
- list
- channel
- attachments
- info
- components
- attachments/images
- avatar
- button
- common
- composer
- messages
- poll
- reactions
- selectedmessage
- messages
- attachments
- poll
- composer
- internal
- suggestions
- header
- theme
- test
- kotlin/io/getstream/chat/android/compose/ui/channel/info
- snapshots/images
- stream-chat-android-docs/src/main/kotlin/io/getstream/chat/docs/kotlin/compose
- guides
- messages
- stream-chat-android-ui-guides/src/main/java/io/getstream/chat/android/guides/catalog/compose/customattachments
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | | - | |
| 320 | + | |
| 321 | + | |
322 | 322 | | |
323 | 323 | | |
324 | 324 | | |
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
182 | | - | |
| 182 | + | |
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
| 186 | + | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
| 361 | + | |
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
| |||
511 | 511 | | |
512 | 512 | | |
513 | 513 | | |
514 | | - | |
| 514 | + | |
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments