Commit Graph

291 Commits

Author SHA1 Message Date
Benoit Marty c919618bc0 Fix account provider change on nightly and release (#861)
* Use parallelMap (same code)

* Add proguard rules. Fixes #818

* Rename file proguard-rules.pro to consumer-rules.pro for coherency.

* Remove empty and non-referenced proguard files.
2023-07-13 14:46:57 +02:00
Benoit Marty 253e8c1c2b Move TypographyAliases next to ColorAliases 2023-07-11 11:29:56 +02:00
Benoit Marty 88eaab0e44 Fix regression on some colors. Introduce a temporary color, since the color values are not in Compound. temporaryColorBgSpecial 2023-07-11 10:29:06 +02:00
Benoit Marty 3e03ca4a5e Create alias for typography (more semantic name). aliasButtonText 2023-07-11 10:29:06 +02:00
Benoit Marty b7b6e0323d Create alias for typography (more semantic name). aliasScreenTitle 2023-07-11 10:29:06 +02:00
Benoit Marty 2844dee6d2 Remove fontSize parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty b31a449338 Remove lineHeight parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty 0f468ad978 Remove letterSpacing parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty 1dae7694fd Remove fontFamily parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty 92bc490fa3 Remove fontWeight parameter. Must use style only. 2023-07-10 17:33:42 +02:00
Benoit Marty 5846af2aa4 Remove ElementTextStyles. Only ElementTheme.typography.* styles must be used now. 2023-07-10 17:33:42 +02:00
Benoit Marty e2f3f2966b Remove ElementColors. We should use semantics and material colors now. 2023-07-10 17:33:42 +02:00
Benoit Marty 0fbf799d15 Merge pull request #826 from vector-im/feature/bma/swipeAction
Improve swipe to reply rendering
2023-07-10 13:56:29 +02:00
Chris Smith 20bdf98db6 Merge pull request #824 from vector-im/misc/cjs/left-align-top-bars 2023-07-10 12:23:29 +01:00
Benoit Marty 1bc13d16d9 Improve animation of Swipe to reply: replace usage of SwipeToDismiss by Modifier.draggable 2023-07-10 11:52:27 +02:00
Jorge Martin Espinosa c0df303c22 Make Showkase browser work in the nightly versions (#829) 2023-07-10 10:10:22 +02:00
Benoit Marty b0ec6ba7a5 Merge pull request #823 from vector-im/feature/bma/snackbarFix
Snackbar fix
2023-07-07 22:04:37 +02:00
Marco Romano c48fcac2f1 Use @DayNightPreviews to correctly render the PinIcon in dark mode (#795)
- Fixes rendering of `-night` resources in screenshot tests by overriding the `nightMode` with `paparazzi.unsafeUpdateConfig()`.
2023-07-07 16:35:34 +02:00
Benoit Marty 4b90904bc0 Cleanup 2023-07-07 16:15:59 +02:00
Benoit Marty 7fef755234 Use the CoroutineScope from the LaunchedEffect. 2023-07-07 15:35:16 +02:00
Benoit Marty af323d8636 Show Snackbar once the verification is finish in the correct screen (#812) 2023-07-07 15:34:15 +02:00
jonnyandrew d8fcfc5844 Collapse long lists of message reactions (#806)
---------

Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-07-07 13:19:11 +00:00
Chris Smith 043ed3e0aa Remove CenterAlignedTopAppBar
Centering the titles is very iOS-y and not aligned with the material
guidelines (which say center aligned top bars are only for the main
root page in the app). They also present issues when we have titles
and textual actions that end up being quite long in other languages,
as they end up merging together.

Fixes #655
2023-07-07 13:59:05 +01:00
ganfra 10c2859fac Merge branch 'develop' into feature/fga/waiting_ss_room 2023-07-07 11:34:45 +02:00
Marco Romano 3449ea486a Optional day night preview annotation (#793)
Adds the `@DayNightPreviews` annotation that when used on a composable will:
- Display both a day mode and night mode preview in Android Studio.
- Produce both a day and night screenshot during screenshot testing.

The usage of this new annotation is optional, all the current previews continue to work without breakages.
New code can use, when appropriate, the new `@DayNightPreviews` annotation and replace the pattern using three `LightPreview/DarkPreview/ContentToPreview` functions with:

```
@DayNightPreviews
@Composable
fun MyScreenPreview(@PreviewParameter(MyStateProvider::class) state: MyState) {
    ElementPreview {
        MyScreen(
            state = state,
        )
    }
}
```
2023-07-06 12:35:54 +02:00
Marco Romano ca695ca077 Revert "Auto generate dark mode previews and screenshots (#776)" (#784)
This reverts commit fd467c2451.
2023-07-05 15:47:53 +02:00
Marco Romano fd467c2451 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 27df1f2112 AwaitRoom : create loading state with placeholders 2023-07-05 12:42:01 +02:00
Marco Romano 0b23f1bc4f Adds dark mode pin icon for location sharing (#766) 2023-07-04 13:23:53 +00:00
Benoit Marty e7331e8be0 Merge pull request #742 from vector-im/feature/bma/settingsUi
Settings UI
2023-07-04 10:13:14 +02:00
Benoit Marty 29e87ca7da Merge pull request #752 from vector-im/feature/bma/onBoardingIteration
Desing: onboarding iteration
2023-07-03 20:28:16 +02:00
Benoit Marty 43af57c170 Improve rendering of preference anaytics screen. 2023-07-03 17:09:04 +02:00
Benoit Marty d14b9e3c1f Fix wrong padding. 2023-07-03 17:09:04 +02:00
Benoit Marty f325ffad12 More cleanup on BugReportView. 2023-07-03 17:09:04 +02:00
Benoit Marty c0bda1ec86 Design iteration on bug report screen. 2023-07-03 17:09:04 +02:00
Benoit Marty 57152b2000 Fix click effect. 2023-07-03 17:09:04 +02:00
Benoit Marty 24621079f7 Fix font of settings titles. 2023-07-03 17:09:04 +02:00
Benoit Marty b4a5128a05 Update preference header (still have to be displayed) 2023-07-03 17:09:04 +02:00
Benoit Marty efb6f2dcbd Fix padding end. 2023-07-03 17:09:04 +02:00
Benoit Marty bd3142b0bb Create PreferenceDivider 2023-07-03 17:09:04 +02:00
Benoit Marty fef58a476e Design iteration on preferences. 2023-07-03 17:09:04 +02:00
Chris Smith 11c7dc7db0 Move pin graphic/component to design system 2023-07-03 11:51:50 +01:00
Benoit Marty db8a07c198 Iterate design on on boarding screen. 2023-07-03 12:11:55 +02:00
Benoit Marty 1bfb4a0ebe Use temporary color for default avatar background 2023-06-29 18:17:37 +02:00
Benoit Marty e93f245fcf Fix detekt issue. 2023-06-29 18:17:37 +02:00
Benoit Marty 066aaef0fd Fix message color bubbles. 2023-06-29 18:17:37 +02:00
Benoit Marty 8cb0e0808c Improve API of UnreadIndicatorAtom 2023-06-29 18:17:37 +02:00
Benoit Marty 349d9fbc0f Rename color alias 2023-06-29 18:17:37 +02:00
Benoit Marty 85d3fef5e7 Unread indicator color changed to iconAccentTertiary 2023-06-29 18:17:37 +02:00
Benoit Marty ebb34a0214 Fix placeholoder color issue (with a workaround) 2023-06-29 18:17:37 +02:00