Benoit Marty
39bd0b9746
fix typo
1 year ago
Benoit Marty
4cb0417afa
Showkase does not take into account the `fontScale` parameter of the Preview annotation, so alter the LocalDensity in the CompositionLocalProvider.
1 year ago
Benoit Marty
5ace169440
Update the API and add UI screenshots demoing it.
1 year ago
Benoit Marty
26bae1a831
Move extension to dedicated file.
1 year ago
Benoit Marty
0627a1155c
Auto capitalize first letter of sentences for messages, room topic and bug report description. ( #948 )
1 year ago
Benoit Marty
3c07fea2dd
Improve rendering of Text composer regarding fontScale. ( #984 )
1 year ago
Benoit Marty
3c1f764bee
Improve rendering of "All chats" regarding fontScale. ( #984 )
1 year ago
Benoit Marty
94c6223be2
Set expicit `fontSize` parameter (to default value 1f), to test different fontScale more easily.
1 year ago
Jorge Martin Espinosa
914235228d
[Compound] Implement platform components (Switch, RadioButton, Checkbox) ( #982 )
...
* Create our custom Switch component
* Update RadioButton colors
* Update Checkbox colors
* Fix padding in `ReplyToContent`
* Add `indeterminate` and `hasError` parameters to `CheckBox`.
Improve previews.
* Improve Switch previews.
* Improve RadioButton previews.
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
Benoit Marty
56614da071
Fix lint false positive.
1 year ago
Benoit Marty
908471cd51
Remove other unused resource.
1 year ago
Benoit Marty
9211a33ad8
Add missing preview.
1 year ago
Benoit Marty
b8281052b9
Enable detekt rules `UseDataClass` and fix existing issues.
1 year ago
Benoit Marty
b3cf0d2cf1
Enable detekt rules `UnderscoresInNumericLiterals` and fix existing issues.
1 year ago
Benoit Marty
19e81825ff
Enable detekt rules `AlsoCouldBeApply` and fix existing issues.
1 year ago
Benoit Marty
6aa5239189
Enable detekt rule `PreviewPublic` and fix existing issues.
1 year ago
ganfra
e0eea67e7a
Clean PR
1 year ago
Benoit Marty
4029425ec3
Fix regression from 9bf7c1ccf8
, composition log was not correct.
1 year ago
ganfra
a3bcb2c4ca
Room: avoid calling displayName/avatarData on each recomposition
1 year ago
Benoit Marty
c75eabbcb0
Enable detekt rules `UnnecessaryParentheses` and cleanup the code.
1 year ago
Benoit Marty
2163c1db8c
Create sheetStateForPreview to avoid code duplication.
1 year ago
ganfra
d273dd00ff
Media: Clean after pr reviews
1 year ago
Benoit Marty
6b3f69accf
Use Large and remove Huge.
1 year ago
Benoit Marty
f12dc56ff8
Create Huge logo size
1 year ago
Benoit Marty
6fe59cb5f8
Small refacto to have more Preview.
1 year ago
Benoit Marty
5824281f0b
Small refacto.
1 year ago
Benoit Marty
d80f2de112
No need to use trick for night resource when using DayNightPreviews annotation.
1 year ago
Benoit Marty
7ca5bcf74e
Fix preview.
1 year ago
Benoit Marty
616d933fb6
Format file
1 year ago
Benoit Marty
5aa4cbdac7
Fix text color
1 year ago
Jorge Martin Espinosa
2488432805
Hide encryption history + FTUE flow ( #839 )
...
* First attempt at implementing encrypted history banner and removing old UTDs
* Get the right behavior in the timeline
* Implement the designs
* Extract post-processing logic, add tests
* Add encryption banner to timeline screenshots
* Create FTUE feature to handle welcome screen and analytics
* Move classes to their own packages, add tests for `DefaultFtueState`.
* Remove unnecessary private MutableStateFlow
* Move some FTUE related methods and classes back to the `impl` module
* Handle back press at each FTUE step
* Remove unneeded `TestScope` receiver for `createState` in tests.
* Use light & dark previews for the banner view.
* Move color customization from `TextStyle` to `Text` component.
* Rename `InfoList` design components, use them in `AnalyticsOptInView` too.
* Cleanup MatrixClient.
* Fix copy&paste error
Co-authored-by: Benoit Marty <benoit@matrix.org>
* Fix typo
* Fix Maestro tests
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Co-authored-by: Benoit Marty <benoit@matrix.org>
1 year ago
ganfra
e2bdeed2fb
ProgressDialog: add cancelable...
1 year ago
Benoit Marty
253e8c1c2b
Move TypographyAliases next to ColorAliases
1 year ago
Benoit Marty
88eaab0e44
Fix regression on some colors. Introduce a temporary color, since the color values are not in Compound. `temporaryColorBgSpecial`
1 year ago
Benoit Marty
3e03ca4a5e
Create alias for typography (more semantic name). `aliasButtonText`
1 year ago
Benoit Marty
b7b6e0323d
Create alias for typography (more semantic name). `aliasScreenTitle`
1 year ago
Benoit Marty
2844dee6d2
Remove `fontSize` parameter. Must use `style` only.
1 year ago
Benoit Marty
b31a449338
Remove `lineHeight` parameter. Must use `style` only.
1 year ago
Benoit Marty
0f468ad978
Remove `letterSpacing` parameter. Must use `style` only.
1 year ago
Benoit Marty
1dae7694fd
Remove `fontFamily` parameter. Must use `style` only.
1 year ago
Benoit Marty
92bc490fa3
Remove `fontWeight` parameter. Must use `style` only.
1 year ago
Benoit Marty
5846af2aa4
Remove ElementTextStyles. Only ElementTheme.typography.* styles must be used now.
1 year ago
Benoit Marty
e2f3f2966b
Remove ElementColors. We should use semantics and material colors now.
1 year ago
Benoit Marty
1bc13d16d9
Improve animation of Swipe to reply: replace usage of SwipeToDismiss by Modifier.draggable
1 year ago
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()`.
1 year ago
Benoit Marty
4b90904bc0
Cleanup
1 year ago
Benoit Marty
7fef755234
Use the CoroutineScope from the LaunchedEffect.
1 year ago
Benoit Marty
af323d8636
Show Snackbar once the verification is finish in the correct screen ( #812 )
1 year ago
jonnyandrew
d8fcfc5844
Collapse long lists of message reactions ( #806 )
...
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
1 year ago
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
1 year ago