Skip to content

Commit b3c0332

Browse files
bmartyElementBot
andauthored
Update app icon (#4534)
* Update application icon. * Update icon preview code. * Update screenshots * Also update the icon on fastlane config. --------- Co-authored-by: ElementBot <[email protected]>
1 parent b0beb0d commit b3c0332

26 files changed

+33
-18
lines changed
-165 KB
Loading

appicon/element/src/main/kotlin/io/element/android/appicon/element/IconPreview.kt

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,34 +10,44 @@ package io.element.android.appicon.element
1010
import androidx.compose.foundation.Image
1111
import androidx.compose.foundation.background
1212
import androidx.compose.foundation.layout.Box
13-
import androidx.compose.foundation.layout.size
1413
import androidx.compose.foundation.shape.CircleShape
15-
import androidx.compose.foundation.shape.RoundedCornerShape
1614
import androidx.compose.runtime.Composable
17-
import androidx.compose.ui.Alignment
1815
import androidx.compose.ui.Modifier
1916
import androidx.compose.ui.draw.clip
2017
import androidx.compose.ui.graphics.Color
2118
import androidx.compose.ui.graphics.ColorFilter
2219
import androidx.compose.ui.res.painterResource
2320
import androidx.compose.ui.tooling.preview.Preview
24-
import androidx.compose.ui.unit.dp
2521

2622
@Preview
2723
@Composable
2824
internal fun IconPreview() {
2925
Box {
30-
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
31-
Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null)
26+
Image(
27+
modifier = Modifier.matchParentSize(),
28+
painter = painterResource(id = R.drawable.ic_launcher_background),
29+
contentDescription = null,
30+
)
31+
Image(
32+
painter = painterResource(id = R.mipmap.ic_launcher_foreground),
33+
contentDescription = null,
34+
)
3235
}
3336
}
3437

3538
@Preview
3639
@Composable
3740
internal fun RoundIconPreview() {
3841
Box(modifier = Modifier.clip(shape = CircleShape)) {
39-
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null)
40-
Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null)
42+
Image(
43+
modifier = Modifier.matchParentSize(),
44+
painter = painterResource(id = R.drawable.ic_launcher_background),
45+
contentDescription = null,
46+
)
47+
Image(
48+
painter = painterResource(id = R.mipmap.ic_launcher_foreground),
49+
contentDescription = null,
50+
)
4151
}
4252
}
4353

@@ -46,10 +56,7 @@ internal fun RoundIconPreview() {
4656
internal fun MonochromeIconPreview() {
4757
Box(
4858
modifier = Modifier
49-
.size(108.dp)
50-
.background(Color(0xFF2F3133))
51-
.clip(shape = RoundedCornerShape(32.dp)),
52-
contentAlignment = Alignment.Center
59+
.background(Color(0xFF2F3133)),
5360
) {
5461
Image(
5562
painter = painterResource(id = R.mipmap.ic_launcher_monochrome),
-1.46 KB
Loading
-10.2 KB
Binary file not shown.
-1.75 KB
Loading
-1.48 KB
Loading
-1.01 KB
Loading
-4.72 KB
Binary file not shown.
-1.27 KB
Loading
-722 Bytes
Loading

0 commit comments

Comments
 (0)