Benoit Marty
65c6da1480
Use the blurHash if available, when the thumbnailSource is null, and if not available render the image icon for image file.
2023-11-08 15:34:06 +01:00
Marco Romano
b2a61f2ed3
Show correct UI when replying to a voice message ( #1658 )
...
Shows voice messages in the room summary.
Shows voice messages in the reply context menu and composer.
Show replies to voice messages in the timeline.
(before this PR voice messages were shown the same as audio messages)
Story: https://github.com/vector-im/element-meta/issues/2106
2023-10-27 11:30:57 +02:00
Benoit Marty
8929a90970
Konsist: add test to ensure filename match top level Composable View, and fix existing issue
2023-10-10 15:39:22 +02:00
Benoit Marty
702c137ead
Replace mutableStateOf by mutableIntStateOf and mutableFloatStateOf. Use intValue and floatValue to avoid unboxing.
2023-09-26 18:07:53 +02:00
Benoit Marty
0e4c146e87
Detekt: Rename DayNightPreviews to PreviewsDayNight to follow naming convention.
...
MultiPreview annotations should start with `Previews` as prefix
2023-09-21 08:30:36 +02:00
Benoit Marty
d531e71cd8
Migrate other icons to compound icons.
2023-09-20 16:44:59 +02:00
Benoit Marty
2819448cd4
Use DayNightPreview
2023-09-19 11:49:12 +02:00
Jorge Martín
98bb91cd27
Create tests
2023-09-15 17:26:39 +02:00
Jorge Martín
2ccafec564
Changes:
...
- Improve UI to match designs.
- Extract `EditableAvatarView` component.
- Create `LabelledOutlinedTextField`.
- Get strings from Localazy.
2023-09-15 14:04:21 +02:00
Jorge Martin Espinosa
e6ecedf7bb
Take screen density into account when requesting thumbnails ( #1262 )
...
* Take screen density into account when requesting thumbnails
Otherwise, we could be asking for images with N size while we needed images for N@2x or N@3x size i.e.
2023-09-11 15:24:56 +02:00
Benoit Marty
7083abcf09
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Jorge Martin Espinosa
0324719606
Upgrade compose-material3 to 1.2.0-alpha05 version ( #1011 )
...
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
Also upgrade compileSdk to 34.
2023-08-17 14:20:54 +02:00
ganfra
fa51f6eaa7
Feature/fga/sync states ( #1042 )
...
* Change RoomSummaryDataSource to RoomListService to better reflects the rust api
* Better Sync management
* Sync: improve sync spinner rendering
* Sync: make test compiles
* Sync: add more test for sync spinner
* Sync: more clean-up
* Sync: pr review
---------
Co-authored-by: ganfra <francoisg@element.io>
2023-08-09 12:37:43 +00:00
Benoit Marty
822bb82347
Merge pull request #967 from vector-im/feature/bma/detektConfig
...
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
82e35cda0d
Allow user with enough power level to redact other's messages ( #969 )
2023-07-27 18:42:45 +02:00
Benoit Marty
495d6020ad
Enable detekt rules UseLet and fix existing issues.
2023-07-26 12:12:07 +02:00
Benoit Marty
6aa5239189
Enable detekt rule PreviewPublic and fix existing issues.
2023-07-26 10:08:39 +02:00
Benoit Marty
1be26c9fad
Fix compilation issue
2023-07-20 20:01:35 +02:00
Benoit Marty
c75eabbcb0
Enable detekt rules UnnecessaryParentheses and cleanup the code.
2023-07-20 18:08:08 +02:00
ganfra
1d2fd52ce6
Merge branch 'develop' into feature/fga/power_level
2023-07-18 22:54:33 +02:00
ganfra
669e62e462
PowerLevel: use new api exposed from rust which doesn't need to load members.
2023-07-18 15:10:44 +02:00
ganfra
3d0e6a4130
Media: render audio content
2023-07-13 18:09:58 +02:00
Benoit Marty
d3a95afe86
Fix crash at first startup. Inject NotLoggedInImageLoaderFactory directly to NotLoggedInFlowNode
2023-07-12 15:32:00 +02:00
Benoit Marty
53501a6483
Cleanup import.
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
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
92bc490fa3
Remove fontWeight parameter. Must use style only.
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
ganfra
27df1f2112
AwaitRoom : create loading state with placeholders
2023-07-05 12:42:01 +02:00
Benoit Marty
f9c7a9ec08
Add todo to explain why code is commented out.
2023-07-03 17:09:04 +02:00
Benoit Marty
0ea811269b
Fix modifier issue.
2023-07-03 17:09:04 +02:00
Benoit Marty
e1b528e861
Show current user in the settings and extract code in CurrentUserProvider.
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
Chris Smith
11c7dc7db0
Move pin graphic/component to design system
2023-07-03 11:51:50 +01:00
Chris Smith
f5e57f1645
Show location replies per the designs
2023-06-30 16:14:44 +01: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
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
ddaf862764
Improve preview by adding Divider, and improve rendering.
2023-06-27 19:43:03 +02:00
Benoit Marty
e7072c2c4a
Improve rendering when only one line is displayed.
2023-06-27 19:43:03 +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
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
Benoit Marty
3652059a52
Lazy usage of OkHttpClient
2023-06-26 11:07:53 +02:00
Jorge Martin Espinosa
42827206b3
[Message Actions] Forward messages ( #635 )
...
* Add forwarding messages base
* Make forwarding single-selection
---------
Co-authored-by: ElementBot <benoitm+elementbot@element.io>
2023-06-22 13:27:59 +02:00
ganfra
8e617b427d
CanSendEvent default to true and branch refresh mechanism...
2023-06-21 17:43:08 +02:00
Benoit Marty
da110bd2c4
Extract getCanSendEvent to the matrixui module, rename to canSendEventAsState and use produceState.
2023-06-21 10:57:55 +02:00
ganfra
e817afef84
Media: introduce a Kind.File so we don't use In-memory bytearray in timeline
2023-06-15 12:06:58 +02:00