Browse Source

Merge branch 'develop' into dla/feature/room_list_decoration

pull/1330/head
David Langley 1 year ago committed by GitHub
parent
commit
f4652313e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/src/debug/res/drawable/ic_launcher_background.xml
  2. BIN
      app/src/main/ic_launcher-playstore.png
  3. 27
      app/src/main/kotlin/io/element/android/x/icon/IconPreview.kt
  4. 20
      app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
  5. 20
      app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
  6. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher.png
  7. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher.webp
  8. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_background.png
  9. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_background.webp
  10. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png
  11. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp
  12. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp
  13. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  14. BIN
      app/src/main/res/mipmap-hdpi/ic_launcher_round.webp
  15. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher.png
  16. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher.webp
  17. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_background.png
  18. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_background.webp
  19. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png
  20. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp
  21. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp
  22. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  23. BIN
      app/src/main/res/mipmap-mdpi/ic_launcher_round.webp
  24. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher.png
  25. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher.webp
  26. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_background.png
  27. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp
  28. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png
  29. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp
  30. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp
  31. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  32. BIN
      app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp
  33. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  34. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher.webp
  35. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png
  36. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp
  37. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png
  38. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp
  39. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp
  40. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  41. BIN
      app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp
  42. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  43. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp
  44. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png
  45. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp
  46. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png
  47. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp
  48. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp
  49. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  50. BIN
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp
  51. 10
      app/src/nightly/res/drawable/ic_launcher_background.xml
  52. 2
      app/src/release/res/drawable/ic_launcher_background.xml
  53. 7
      tools/lint/lint.xml

10
app/src/debug/res/drawable/ic_launcher_background.xml

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#F7F07E"
android:fillType="evenOdd"
android:pathData="m0,0h108v108h-108z" />
</vector>

BIN
app/src/main/ic_launcher-playstore.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 260 KiB

27
app/src/main/kotlin/io/element/android/x/icon/IconPreview.kt

@ -17,13 +17,20 @@
package io.element.android.x.icon package io.element.android.x.icon
import androidx.compose.foundation.Image import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ColorFilter
import androidx.compose.ui.res.painterResource import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import io.element.android.x.R import io.element.android.x.R
@Preview @Preview
@ -47,3 +54,23 @@ internal fun RoundIconPreview(
Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null) Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null)
} }
} }
@Preview
@Composable
internal fun MonochromeIconPreview(
modifier: Modifier = Modifier,
) {
Box(
modifier = modifier
.size(108.dp)
.background(Color(0xFF2F3133))
.clip(shape = RoundedCornerShape(32.dp)),
contentAlignment = Alignment.Center
) {
Image(
painter = painterResource(id = R.mipmap.ic_launcher_monochrome),
colorFilter = ColorFilter.tint(Color(0xFFC3E0F6)),
contentDescription = null
)
}
}

20
app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml

@ -1,6 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2023 New Vector Ltd
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/> <background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<!-- Waiting for design monochrome android:drawable="@mipmap/ic_launcher_monochrome" /--> <monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon> </adaptive-icon>

20
app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml

@ -1,6 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2023 New Vector Ltd
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@mipmap/ic_launcher_background"/> <background android:drawable="@drawable/ic_launcher_background"/>
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> <foreground android:drawable="@mipmap/ic_launcher_foreground"/>
<!-- Waiting for design monochrome android:drawable="@mipmap/ic_launcher_monochrome" /--> <monochrome android:drawable="@mipmap/ic_launcher_monochrome"/>
</adaptive-icon> </adaptive-icon>

BIN
app/src/main/res/mipmap-hdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_background.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_monochrome.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

BIN
app/src/main/res/mipmap-hdpi/ic_launcher_round.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_background.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_monochrome.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

BIN
app/src/main/res/mipmap-mdpi/ic_launcher_round.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_background.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_monochrome.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

BIN
app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_background.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.9 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_monochrome.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_background.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_monochrome.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

BIN
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

10
app/src/nightly/res/drawable/ic_launcher_background.xml

@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#07007E"
android:fillType="evenOdd"
android:pathData="m0,0h108v108h-108z" />
</vector>

2
app/src/release/res/drawable/ic_launcher_background.xml

@ -0,0 +1,2 @@
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:src="@mipmap/ic_launcher_background" />

7
tools/lint/lint.xml

@ -1,5 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?><!--
<!--
~ Copyright (c) 2022 New Vector Ltd ~ Copyright (c) 2022 New Vector Ltd
~ ~
~ Licensed under the Apache License, Version 2.0 (the "License"); ~ Licensed under the Apache License, Version 2.0 (the "License");
@ -32,7 +31,9 @@
<issue id="IconDipSize" severity="error" /> <issue id="IconDipSize" severity="error" />
<issue id="IconDuplicatesConfig" severity="error" /> <issue id="IconDuplicatesConfig" severity="error" />
<issue id="IconDuplicates" severity="error" /> <issue id="IconDuplicates" severity="error" />
<issue id="IconExpectedSize" severity="error" /> <issue id="IconExpectedSize" severity="error">
<ignore path="**/ic_launcher_monochrome.webp" />
</issue>
<issue id="LocaleFolder" severity="error" /> <issue id="LocaleFolder" severity="error" />
<!-- AlwaysShowAction is considered as an error to force ignoring the issue when detected --> <!-- AlwaysShowAction is considered as an error to force ignoring the issue when detected -->

Loading…
Cancel
Save