Commit graph

233 commits

Author SHA1 Message Date
Benoit Marty
c1ae0ffa58 Create wrapper for DropdownMenuItem and DropdownMenu 2023-06-29 18:17:37 +02:00
Benoit Marty
bffe29a8cc Add some debug composable to measure manually items on Preview. 2023-06-29 18:17:37 +02:00
ganfra
b296937209 Media upload : Fix lint 2023-06-29 10:41:59 +02:00
ganfra
f090aa021e Media upload: branch progress callback to UI 2023-06-28 23:14:08 +02:00
Jorge Martin Espinosa
679ee301dd 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
67f9444633 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
683b0b3594 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
8c3402b3f9 Use Semantic color for placeholder. 2023-06-27 21:27:59 +02:00
Benoit Marty
8dcf527933 Fix compilation issue after rebase. 2023-06-27 19:58:42 +02:00
Benoit Marty
80f2f6aa55 Fix compilation issue after rebase. 2023-06-27 19:51:10 +02:00
Benoit Marty
31c7c29836 Fix rendering of Room item in ForwardMessagesView 2023-06-27 19:49:54 +02:00
Benoit Marty
30d2a319ce Use a determinate progress indicator to improve the preview rendering 2023-06-27 19:49:54 +02:00
Benoit Marty
0c7832534c Cleanup 2023-06-27 19:49:54 +02:00
Benoit Marty
5e455eccb6 Fix compilation issue after rebase 2023-06-27 19:49:14 +02:00
Benoit Marty
ee3e2108a0 Move all density unit calculation to the same place. 2023-06-27 19:43:03 +02:00
Benoit Marty
77432ef1a7 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
980d5462f3 Iterate on Room placeholder 2023-06-27 19:41:59 +02:00
Benoit Marty
905f681d70 Disable tonal elevation for bottom sheet in light theme. 2023-06-27 19:31:44 +02:00
Benoit Marty
fb09991793 Create UnreadIndicatorAtom with preview. 2023-06-27 19:31:44 +02:00
Benoit Marty
d7424ad1c3 Fix an issue on Avatar when font scale is not 1f. 2023-06-27 19:23:37 +02:00
Benoit Marty
92bd16832d Rework AvatarSize.
Remove default value for AvatarSize, it has to be explicitely provided.
2023-06-27 19:23:37 +02:00
Jorge Martin Espinosa
a16335b4b7 [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
aadc6d68d8 Merge branch 'develop' into feature/bma/removeOldResources 2023-06-27 16:09:30 +02:00
Benoit Marty
659b9d3d9c 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
dfa1adb9c1 More cleanup 2023-06-27 09:51:33 +02:00
Benoit Marty
798da50454 Use CommonStrings everywhere 2023-06-27 09:45:00 +02:00
Marco Romano
c5c9cd33da Refine handleSnackbarMessage API (#676)
As per our offline convos during a PR review.
2023-06-26 16:29:50 +02:00
Benoit Marty
4f269d37dd 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
9251cbf536 [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
e1bb5684cd 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
9701abf15e Extract method about text to the design system module. 2023-06-16 09:40:00 +02:00
Jorge Martin Espinosa
244306545f 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
0c64921f10 Merge pull request #549 from vector-im/feature/bma/onboardingServer
Onboarding iteration
2023-06-13 09:21:50 +02:00
Benoit Marty
fde6b0e9bb Add some generated KDoc. 2023-06-09 18:40:31 +02:00
Benoit Marty
4f4d024a9f No need to pass maxLines = 1 if singleline = true anymore. 2023-06-09 18:16:23 +02:00
Benoit Marty
921a352947 Inline the scroll state. 2023-06-09 18:09:09 +02:00
Benoit Marty
1bc5277bc2 Fix icon tint 2023-06-08 16:56:20 +02:00
Benoit Marty
b039f0d01d Validate server on user click. 2023-06-08 16:34:44 +02:00
Jorge Martin Espinosa
c176eab4a3 [Message actions] New UI for replies (#545)
* Add 'reply to' UI to the message composer.

* Move the `BlurHashAsyncImage` to `:libraries:designsystem` as it is now used in several modules.

*  Create reusable `AttachmentThumbnail` and associated data classes and enums, it's now added to `:libraries:matrixui`.

* Re-use `AttachmentThumbnail` in a `ActionListView` and `TextComposer`.

* Add 'inReplyTo' models and UI.

* Add min size for images

* Create a separate layout for media items with no reply to info. Also, separate `Timeline__Row` components from `TimelineView`, as it was getting too large.

* Added `EqualWidthColumn` to use inside message bubbles. Also fixed some modifiers for media items replying to other messages.

* Disable `inReplyToClicked`.

* Remove unused resources and libraries.

* Remove any traces of `BlurHashAsyncImage` in `:features:messages`, since it was moved to the design system.

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-08 12:15:13 +02:00
Benoit Marty
80cfd74aa9 Fix some errors 2023-06-07 16:55:37 +02:00
ganfra
76e35582da Merge branch 'develop' into feature/fga/media_viewer_actions 2023-06-07 16:31:28 +02:00
Benoit Marty
cd860e9de3 Add test for ChangeAccountProviderPresenter and other presenters. 2023-06-07 15:18:23 +02:00
Jorge Martin Espinosa
e376c1be82 [Message actions] New UI for message composer and editing (#526)
* Add UI for edit composer mode

* Remove leftover code from the RTE implementation

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-07 13:06:19 +02:00
Benoit Marty
5b987ca691 Quality 2023-06-07 12:21:54 +02:00
Chris Smith
67fcfedb6e Merge pull request #529 from vector-im/misc/cjs/create-join-design-feedback-ii
More create and join room design tweaks
2023-06-07 09:19:16 +01:00
Benoit Marty
7001c7b9cc Account provider screen. - Crashing 2023-06-07 09:00:20 +02:00
Benoit Marty
67e85e0a36 Change account provider screen. 2023-06-07 09:00:20 +02:00
Benoit Marty
9f1605ab46 Improve composable for icons and create RoundedIconAtom. 2023-06-07 09:00:20 +02:00
Benoit Marty
5d7be76feb Merge pull request #527 from vector-im/feature/bma/designSystem
Preparatory work to integrate new FTUE screen
2023-06-07 08:59:13 +02:00
ganfra
51389053bf Media : timeline file adjustment 2023-06-06 23:10:02 +02:00