Commit Graph

111 Commits

Author SHA1 Message Date
renovate[bot]
6d3b816bf5 Update dependency app.cash.molecule:molecule-runtime to v1 (#925)
* Update dependency app.cash.molecule:molecule-runtime to v1

* Replace `RecompositionClock` with `RecompositionMode`

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jorge Martín <jorgem@element.io>
2023-07-20 07:36:19 +02:00
Benoit Marty
ff4b068008 Move test classes to the correct package. 2023-07-18 22:48:23 +02:00
Benoit Marty
9dcb419560 Not a fixture so prefixed with create instead of a. 2023-07-18 22:41:42 +02:00
ganfra
cd19436924 RoomList: introduce RoomListDataSource so we keep the data in memory as long as the node is in the backstack. 2023-07-18 22:09:50 +02:00
ElementBot
045d957f91 Sync Strings (#882)
* Sync Strings from Localazy

* Update screenshots

---------

Co-authored-by: bmarty <bmarty@users.noreply.github.com>
2023-07-17 10:22:15 +02:00
Benoit Marty
16f30db20e Move TypographyAliases next to ColorAliases 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
f0d3b9da53 Remove fontWeight parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty
247348b372 TextStyle again. 2023-07-10 17:33:42 +02:00
Benoit Marty
7be0e3ea4b Remove ElementTextStyles. Only ElementTheme.typography.* styles must be used now. 2023-07-10 17:33:42 +02:00
bmarty
0cf24610c9 Sync Strings from Localazy 2023-07-10 00:11:05 +00:00
Benoit Marty
be73fc7ba2 Fix Snackbar colors. 2023-07-07 15:39:43 +02:00
ganfra
da27970116 Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
Jorge Martin Espinosa
df8f447e23 [Design] Use outlined textfields in login screen (#801)
* Use outlined textfields in the login screen

* Fix enabled status

* Fix loading state for button in `ConfirmAccountProviderView` too

* Update subtitle string

* Remove no longer used translation

---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-07 10:08:38 +02:00
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
ganfra
8667784271 AwaitRoom : create loading state with placeholders 2023-07-05 12:42:01 +02:00
ganfra
79eef06995 Await room: first attempt to wait for a room to be ready 2023-07-04 18:19:06 +02:00
Benoit Marty
1f455238d6 Replace CurrentUserProvider by an extension on MatrixClient. 2023-07-03 17:09:04 +02:00
Benoit Marty
002ddf4f3f Show current user in the settings and extract code in CurrentUserProvider. 2023-07-03 17:09:04 +02:00
bmarty
bd3dd76039 Sync Strings from Localazy 2023-07-03 00:11:17 +00: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
beb78be082 Tweak colors of drop down menu. 2023-06-29 18:17:37 +02:00
Benoit Marty
5807c1dc85 Use correct typography 2023-06-29 18:17:37 +02:00
Benoit Marty
4a8d870c54 Outlined icon for 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
7fd6851c65 Create wrapper for DropdownMenuItem and DropdownMenu 2023-06-29 18:17:37 +02:00
Benoit Marty
6c47cd4029 Reduce height of invite button, and improve click effect. Also change text style to fontBodyMdMedium 2023-06-29 18:17:37 +02:00
Benoit Marty
b8c95045b3 Reduce height of invite button, and improve click effect. 2023-06-29 18:17:37 +02:00
Benoit Marty
2f544fd27a Extract InvitesEntryPointView to its own file and add preview (no other change) 2023-06-29 18:17:37 +02:00
Benoit Marty
a95067ae0d Singleline for search room list TextField 2023-06-29 18:17:37 +02:00
Yoan Pintas
8ab32bfaa0 Add analytics tracking for some screens (#698) 2023-06-29 13:39:34 +00:00
ganfra
e3744636b6 Merge branch 'develop' into feature/fga/room_list_api 2023-06-28 15:14:06 +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
02c1553d1e Modifier parameter as first param with default value. 2023-06-27 19:43:03 +02:00
Benoit Marty
1b84d8e3ee Fix test compilation issue. 2023-06-27 19:43:03 +02:00
Benoit Marty
659d719456 Iterate on Room placeholder 2023-06-27 19:41:59 +02:00
Benoit Marty
6ece791840 Iterate on Room placeholder 2023-06-27 19:41:59 +02:00
Benoit Marty
931a1fe4de Fab icon alignment. 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
47b8ceb832 Extract InvitesEntryPointView and change font style to bodyMedium 2023-06-27 19:30:42 +02:00
Benoit Marty
35fbdff907 Remove useless (?) Column. 2023-06-27 19:28:28 +02:00
Benoit Marty
dc6a65a8db Move preview to the Composable it is previewing. 2023-06-27 19:26:45 +02:00