Jorge Martin Espinosa
37a4d49494
[Compound] Implement dialogs ( #1043 )
...
* Implement dialogs following Compound tokens
* Update screenshots
* Fix confirmation dialog preview
* Update screenshots
* Add changelog
* Add Figma designs link
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-08-11 12:44:40 +00:00
Jorge Martin Espinosa
0773e99216
[Compound] implement IconButton changes ( #1049 )
...
* Compound: implement IconButton changes.
* Use `LocalContentColor` for tinting
* Update screenshots
* Add changelog
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-08-11 10:01:18 +00:00
Jorge Martin Espinosa
af932b31c4
[Compound] Implement components (Button) ( #1021 )
...
* Create `CompoundButton`
* Some fixes
* Lint fixes
* Start replacing existing `Button` usages
* Replace button usages
* Remove previous Button composable
* Rename `CompoundButton` to `Button`
* Fix emphasized button being displayed as Text
* Fix cancel button in `WaitListView`
* Update screenshots
* Add shorthand functions for `OutlinedButton` and `TextButton`
* Add changelog
* Fix wrong size used for emphasized button in dialog
* Create a private `ButtonInternal` implementation with the shared logic.
- Make `ButtonStyle` private.
- Rename `title` to `text`.
- Rename `buttonStyle` and `buttonSize` to just `style` and `size`.
* Fix several warnings and lint issues.
* Update screenshots
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io >
2023-08-08 16:11:37 +00:00
Jorge Martin Espinosa
75137c1469
Fix detekt issues in develop ( #1004 )
...
Co-authored-by: Marco Romano <marcor@element.io >
2023-07-31 14:01:08 +02:00
Benoit Marty
70787a0345
Merge pull request #986 from vector-im/feature/bma/bigFontSizeImprovement
...
Big font size improvements
2023-07-28 17:02:29 +02:00
Benoit Marty
d06f86f79d
Merge pull request #967 from vector-im/feature/bma/detektConfig
...
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
8dd1aeabff
fix typo
2023-07-28 16:34:37 +02:00
Benoit Marty
4d7307bae2
Showkase does not take into account the fontScale parameter of the Preview annotation, so alter the LocalDensity in the CompositionLocalProvider.
2023-07-28 16:08:38 +02:00
Benoit Marty
0b5a3c56d6
Update the API and add UI screenshots demoing it.
2023-07-28 10:29:13 +02:00
Benoit Marty
bfb27db58b
Move extension to dedicated file.
2023-07-28 10:01:22 +02:00
Benoit Marty
d46a79316e
Auto capitalize first letter of sentences for messages, room topic and bug report description. ( #948 )
2023-07-27 17:13:42 +02:00
Benoit Marty
5047136a7b
Merge pull request #983 from vector-im/feature/bma/lintErrors
...
Update lint rules, remove unused resource and sync strings.
2023-07-27 15:59:38 +02:00
Benoit Marty
1d89584daf
Improve rendering of Text composer regarding fontScale. ( #984 )
2023-07-27 15:45:02 +02:00
Benoit Marty
96b7923979
Improve rendering of "All chats" regarding fontScale. ( #984 )
2023-07-27 15:44:56 +02:00
Benoit Marty
fb870a0903
Set expicit fontSize parameter (to default value 1f), to test different fontScale more easily.
2023-07-27 15:43:20 +02:00
Jorge Martin Espinosa
e351e87dbc
[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 >
2023-07-27 14:55:58 +02:00
Benoit Marty
d656c29ea5
Fix lint false positive.
2023-07-27 11:50:16 +02:00
Benoit Marty
fbc627c738
Remove other unused resource.
2023-07-27 11:41:10 +02:00
Benoit Marty
e7f673c5bc
Add missing preview.
2023-07-26 14:01:23 +02:00
Benoit Marty
613cd4f863
Enable detekt rules UseDataClass and fix existing issues.
2023-07-26 11:51:17 +02:00
Benoit Marty
15ac81d32a
Enable detekt rules UnderscoresInNumericLiterals and fix existing issues.
2023-07-26 11:48:08 +02:00
Benoit Marty
d433c3cbaa
Enable detekt rules AlsoCouldBeApply and fix existing issues.
2023-07-26 11:10:46 +02:00
Benoit Marty
996574f2c6
Enable detekt rule PreviewPublic and fix existing issues.
2023-07-26 10:08:39 +02:00
ganfra
cfd43af45c
Merge branch 'develop' into feature/fga/avoid_deadlocks
2023-07-25 16:09:24 +02:00
ganfra
9cf74eff63
Clean PR
2023-07-25 16:02:33 +02:00
Benoit Marty
a3f28a442e
Fix regression from 061ac9bce3, composition log was not correct.
2023-07-24 15:36:55 +02:00
ganfra
2f92203d85
Room: avoid calling displayName/avatarData on each recomposition
2023-07-21 15:19:19 +02:00
Benoit Marty
c72f1a09a7
Enable detekt rules UnnecessaryParentheses and cleanup the code.
2023-07-20 18:08:08 +02:00
Benoit Marty
d84a9d5d24
Create sheetStateForPreview to avoid code duplication.
2023-07-20 17:39:55 +02:00
ganfra
e09b8aca0e
Merge pull request #900 from vector-im/feature/fga/better_media_handling
...
Feature/fga/better media handling
2023-07-18 17:52:41 +02:00
ganfra
fa0aeccf22
Media: Clean after pr reviews
2023-07-18 16:38:36 +02:00
ganfra
f7c55f8d04
Merge branch 'develop' into feature/fga/better_media_handling
2023-07-18 15:13:59 +02:00
Benoit Marty
56691ed753
Use Large and remove Huge.
2023-07-18 14:58:09 +02:00
Benoit Marty
b86f829cfc
Create Huge logo size
2023-07-18 12:12:39 +02:00
Benoit Marty
7d9a02075a
Small refacto to have more Preview.
2023-07-18 11:32:52 +02:00
Benoit Marty
4186c810e4
Small refacto.
2023-07-18 11:22:51 +02:00
Benoit Marty
9013bb6f1d
No need to use trick for night resource when using DayNightPreviews annotation.
2023-07-18 11:19:46 +02:00
Benoit Marty
d3f1d122ed
Fix preview.
2023-07-18 10:12:56 +02:00
Benoit Marty
0fd9ba5602
Format file
2023-07-18 10:12:56 +02:00
Benoit Marty
9a76adcd5e
Fix text color
2023-07-18 10:12:56 +02:00
Jorge Martin Espinosa
280b7e32e0
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 >
2023-07-17 18:34:36 +02:00
ganfra
c4d0938839
ProgressDialog: add cancelable...
2023-07-13 23:49:55 +02:00
Benoit Marty
be6b8c825b
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
16f30db20e
Move TypographyAliases next to ColorAliases
2023-07-11 11:29:56 +02:00
Benoit Marty
d60a590cb5
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
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
5f3ba74f30
Remove fontSize parameter. Must use style only.
2023-07-10 17:33:42 +02:00
Benoit Marty
277595412f
Remove lineHeight parameter. Must use style only.
2023-07-10 17:33:42 +02:00
Benoit Marty
68f14141d6
Remove letterSpacing parameter. Must use style only.
2023-07-10 17:33:42 +02:00