Benoit Marty
9af275b7cf
Revert icon change for location.
2023-11-09 12:31:36 +01:00
Benoit Marty
344cad5341
Rename file.
2023-11-08 16:47:18 +01:00
Benoit Marty
e7a6e4039c
Add preview for AttachmentThumbnail and fix issue rendering for AttachmentThumbnailType.Location for coherency.
2023-11-08 16:28:07 +01:00
Benoit Marty
d2483ea11a
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
d7ce326612
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
308a0c0f57
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
99caa031e8
Replace mutableStateOf by mutableIntStateOf and mutableFloatStateOf. Use intValue and floatValue to avoid unboxing.
2023-09-26 18:07:53 +02:00
Benoit Marty
d2ca528679
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
d6ea21da22
Migrate other icons to compound icons.
2023-09-20 16:44:59 +02:00
Benoit Marty
e326e49e4c
Use DayNightPreview
2023-09-19 11:49:12 +02:00
Jorge Martín
19caf2e7a7
Create tests
2023-09-15 17:26:39 +02:00
Jorge Martín
41e614310f
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
ddb8f66c32
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
52853101d9
migrate object to data object ( #1135 )
2023-08-24 09:32:44 +02:00
Jorge Martin Espinosa
e3cfbc113b
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
226a3dbf28
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
d06f86f79d
Merge pull request #967 from vector-im/feature/bma/detektConfig
...
Update detekt config.
2023-07-28 16:47:26 +02:00
Benoit Marty
b2d3368f63
Allow user with enough power level to redact other's messages ( #969 )
2023-07-27 18:42:45 +02:00
Benoit Marty
b69e01a5f3
Enable detekt rules UseLet and fix existing issues.
2023-07-26 12:12:07 +02:00
Benoit Marty
996574f2c6
Enable detekt rule PreviewPublic and fix existing issues.
2023-07-26 10:08:39 +02:00
Benoit Marty
fce5234c7f
Fix compilation issue
2023-07-20 20:01:35 +02:00
Benoit Marty
c72f1a09a7
Enable detekt rules UnnecessaryParentheses and cleanup the code.
2023-07-20 18:08:08 +02:00
ganfra
888ca1c86b
Merge branch 'develop' into feature/fga/power_level
2023-07-18 22:54:33 +02:00
ganfra
e00462900e
PowerLevel: use new api exposed from rust which doesn't need to load members.
2023-07-18 15:10:44 +02:00
ganfra
7e5d339922
Media: render audio content
2023-07-13 18:09:58 +02:00
Benoit Marty
8893a8bfdc
Fix crash at first startup. Inject NotLoggedInImageLoaderFactory directly to NotLoggedInFlowNode
2023-07-12 15:32:00 +02:00
Benoit Marty
e8ba2b2e06
Cleanup import.
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
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
f0d3b9da53
Remove fontWeight parameter. Must use style only.
2023-07-10 17:33:42 +02:00
Benoit Marty
9b042cf056
Remove ElementColors. We should use semantics and material colors now.
2023-07-10 17:33:42 +02:00
ganfra
8667784271
AwaitRoom : create loading state with placeholders
2023-07-05 12:42:01 +02:00
Benoit Marty
8e36776c5f
Add todo to explain why code is commented out.
2023-07-03 17:09:04 +02:00
Benoit Marty
7f79cba40d
Fix modifier issue.
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
Benoit Marty
0c29852d62
Update preference header (still have to be displayed)
2023-07-03 17:09:04 +02:00
Chris Smith
330e786d0d
Move pin graphic/component to design system
2023-07-03 11:51:50 +01:00
Chris Smith
bd0e24598a
Show location replies per the designs
2023-06-30 16:14:44 +01: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
c7ec8bc9e9
Fix compilation issue after rebase
2023-06-27 19:49:14 +02:00
Benoit Marty
8cdcaba9e3
Move all density unit calculation to the same place.
2023-06-27 19:43:03 +02:00
Benoit Marty
192d32061d
Improve preview by adding Divider, and improve rendering.
2023-06-27 19:43:03 +02:00
Benoit Marty
f1ef67e736
Improve rendering when only one line is displayed.
2023-06-27 19:43:03 +02:00
Benoit Marty
d6f2d7a5d3
Rework AvatarSize.
...
Remove default value for AvatarSize, it has to be explicitely provided.
2023-06-27 19:23:37 +02:00
Jorge Martin Espinosa
02dc447624
[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
287328f7df
More cleanup
2023-06-27 09:51:33 +02:00
Benoit Marty
4a8c49fa28
Use CommonStrings everywhere
2023-06-27 09:45:00 +02:00
Benoit Marty
12e54ac080
Lazy usage of OkHttpClient
2023-06-26 11:07:53 +02:00
Jorge Martin Espinosa
de7bbbd5cf
[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