Marco Romano
f33561c25d
Revert "Auto generate dark mode previews and screenshots ( #776 )" ( #784 )
...
This reverts commit 79b529193c .
2023-07-05 15:47:53 +02:00
Marco Romano
79b529193c
Auto generate dark mode previews and screenshots ( #776 )
...
With this change, composable previews and screenshots should be created with just:
```
@ElementPreviews
@Composable
fun MyViewPreview() {
ElementPreview {
MyView()
}
}
```
- Adds `@ElementPreviews` which is a shorthand for:
```
@Preview(name = "D")
@Preview(name = "N", uiMode = Configuration.UI_MODE_NIGHT_YES)
```
Should be used in connection with the now public `fun ElementPreview()` composable.
- Adds ElementPreviews to previewAnnotations in dangerfile
- Screenshots of night mode previews are now rendered with night mode
- Replaces `ElementPreviewLight` and `ElementThemedPreview` with `ElementPreview`
- Deprecates `ElementPreviewDark` which should be removed.
- Remaining usages of `ElementPreviewDark` are now ignored during screenshot tests
2023-07-05 13:58:24 +02:00
Marco Romano
d525304e67
Adds dark mode pin icon for location sharing ( #766 )
2023-07-04 13:23:53 +00:00
Benoit Marty
c1466fcea0
Merge pull request #742 from vector-im/feature/bma/settingsUi
...
Settings UI
2023-07-04 10:13:14 +02:00
Benoit Marty
9e5c009dda
Merge pull request #752 from vector-im/feature/bma/onBoardingIteration
...
Desing: onboarding iteration
2023-07-03 20:28:16 +02:00
Benoit Marty
be92588c28
Improve rendering of preference anaytics screen.
2023-07-03 17:09:04 +02:00
Benoit Marty
dbc93398cf
Fix wrong padding.
2023-07-03 17:09:04 +02:00
Benoit Marty
da7e9a8bf2
More cleanup on BugReportView.
2023-07-03 17:09:04 +02:00
Benoit Marty
1c6aa43bea
Design iteration on bug report screen.
2023-07-03 17:09:04 +02:00
Benoit Marty
eefad5acde
Fix click effect.
2023-07-03 17:09:04 +02:00
Benoit Marty
17532286bf
Fix font of settings titles.
2023-07-03 17:09:04 +02:00
Benoit Marty
0c29852d62
Update preference header (still have to be displayed)
2023-07-03 17:09:04 +02:00
Benoit Marty
16e7086992
Fix padding end.
2023-07-03 17:09:04 +02:00
Benoit Marty
1274e56057
Create PreferenceDivider
2023-07-03 17:09:04 +02:00
Benoit Marty
8665958ede
Design iteration on preferences.
2023-07-03 17:09:04 +02:00
Chris Smith
330e786d0d
Move pin graphic/component to design system
2023-07-03 11:51:50 +01:00
Benoit Marty
b1bcae251c
Iterate design on on boarding screen.
2023-07-03 12:11:55 +02:00
Benoit Marty
3ab393a41f
Use temporary color for default avatar background
2023-06-29 18:17:37 +02:00
Benoit Marty
d0401c0ebe
Fix detekt issue.
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
c06a0d46f6
Improve API of UnreadIndicatorAtom
2023-06-29 18:17:37 +02:00
Benoit Marty
b75100b2ab
Rename color alias
2023-06-29 18:17:37 +02:00
Benoit Marty
9345cbb724
Unread indicator color changed to iconAccentTertiary
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
Benoit Marty
f55c47747e
Do not change bg color of DropdownMenu for dark theme
2023-06-29 18:17:37 +02:00
Benoit Marty
94661ba6c8
Remove legacy TextStyles
2023-06-29 18:17:37 +02:00
Benoit Marty
f5f393c0e1
Mark param as ready to be removed.
2023-06-29 18:17:37 +02:00
Benoit Marty
12fde3375d
fontSize -> style
2023-06-29 18:17:37 +02:00
Benoit Marty
beb78be082
Tweak colors of drop down menu.
2023-06-29 18:17:37 +02:00
Benoit Marty
6333de8b12
Ensure menu item text has style fontBodyLgRegular
2023-06-29 18:17:37 +02:00
Benoit Marty
90474afef1
Ensure dropdown menu is 200.dp width.
2023-06-29 18:17:37 +02:00
Benoit Marty
ecafa8fba0
Add 16.dp offset to the menu
2023-06-29 18:17:37 +02:00
Benoit Marty
7fd6851c65
Create wrapper for DropdownMenuItem and DropdownMenu
2023-06-29 18:17:37 +02:00
Benoit Marty
acc9225e94
Add some debug composable to measure manually items on Preview.
2023-06-29 18:17:37 +02:00
ganfra
243ddfdcad
Media upload : Fix lint
2023-06-29 10:41:59 +02:00
ganfra
a8ff6fcbd8
Media upload: branch progress callback to UI
2023-06-28 23:14:08 +02:00
Jorge Martin Espinosa
dd562eccc8
Create a dummy value by default for LocalSnackbarDispatcher. ( #715 )
...
This should solve the issue with needing to provide a `LocalSnackbarDispatcher` for previews and screenshot tests.
2023-06-28 18:59:08 +02:00
Marco Romano
911403dfdd
Adds M3's BottomSheetScaffold wrapper to designsystem module ( #711 )
...
Needed for the share location screen.
2023-06-28 16:15:49 +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
Benoit Marty
6ccfd41c2d
Use Semantic color for placeholder.
2023-06-27 21:27:59 +02:00
Benoit Marty
a7da76ae36
Fix compilation issue after rebase.
2023-06-27 19:58:42 +02:00
Benoit Marty
15fba25651
Fix compilation issue after rebase.
2023-06-27 19:51:10 +02:00
Benoit Marty
c46c3e0281
Fix rendering of Room item in ForwardMessagesView
2023-06-27 19:49:54 +02:00
Benoit Marty
641028c082
Use a determinate progress indicator to improve the preview rendering
2023-06-27 19:49:54 +02:00
Benoit Marty
2efbfab939
Cleanup
2023-06-27 19:49:54 +02:00
Benoit Marty
c7ec8bc9e9
Fix compilation issue after rebase
2023-06-27 19:49:14 +02:00
Benoit Marty
8cdcaba9e3
Move all density unit calculation to the same place.
2023-06-27 19:43:03 +02:00
Benoit Marty
d3d26094bd
Create AvatarSize.MessageActionSender for Avatar in message actions bottom sheet (same value but do not use AvatarSize.TimelineSender)
2023-06-27 19:43:03 +02:00
Benoit Marty
6ece791840
Iterate on Room placeholder
2023-06-27 19:41:59 +02:00
Benoit Marty
c7fa2b7620
Disable tonal elevation for bottom sheet in light theme.
2023-06-27 19:31:44 +02:00