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
Benoit Marty
5c27952194
Create UnreadIndicatorAtom with preview.
2023-06-27 19:31:44 +02:00
Benoit Marty
23adc32cd2
Fix an issue on Avatar when font scale is not 1f.
2023-06-27 19:23:37 +02:00
Benoit Marty
d6f2d7a5d3
Rework AvatarSize.
...
Remove default value for AvatarSize, it has to be explicitely provided.
2023-06-27 19:23:37 +02: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
Benoit Marty
5f16297939
Merge branch 'develop' into feature/bma/removeOldResources
2023-06-27 16:09:30 +02:00
Benoit Marty
4cb9843415
Now that the composer as been removed, we do not need element resource module anymore.
2023-06-27 13:34:55 +02:00
Benoit Marty
287328f7df
More cleanup
2023-06-27 09:51:33 +02:00
Benoit Marty
4a8c49fa28
Use CommonStrings everywhere
2023-06-27 09:45:00 +02:00
Marco Romano
ffc9d1e82e
Refine handleSnackbarMessage API ( #676 )
...
As per our offline convos during a PR review.
2023-06-26 16:29:50 +02:00
Benoit Marty
ee033a2aa4
Improve PreferenceText rendering, in particular center the test on the right vertically, add padding in add more previews.
2023-06-26 11:06:36 +02:00
Jorge Martin Espinosa
bdb1841e44
[Message Actions] Report messages ( #642 )
...
* Add report messages feature
* Try to improve how snackbars are delivered
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-06-23 10:44:47 +02:00
Marco Romano
898985cb9b
Expose new windowInsets param from ModalBottomSheet ( #662 )
...
Part of new public API in compose.material3:1.1.1
2023-06-23 09:57:21 +02:00
Benoit Marty
9d6946aa20
Extract method about text to the design system module.
2023-06-16 09:40:00 +02:00
Jorge Martin Espinosa
9bdf53f43d
Move logic of different BottomSheets in MessagesView to presenters ( #600 )
...
* Move bottom sheet logic in `MessagesView` to presenters.
* Make the block inside `SheetState.hide` suspend.
2023-06-15 14:58:18 +02:00
Benoit Marty
ef7ddb8d0f
Merge pull request #549 from vector-im/feature/bma/onboardingServer
...
Onboarding iteration
2023-06-13 09:21:50 +02:00
Benoit Marty
937f4b81ee
Add some generated KDoc.
2023-06-09 18:40:31 +02:00
Benoit Marty
8d50acaff4
No need to pass maxLines = 1 if singleline = true anymore.
2023-06-09 18:16:23 +02:00