Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 47 KiB |
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
/* |
||||
* 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. |
||||
*/ |
||||
|
||||
package io.element.android.x.icon |
||||
|
||||
import androidx.compose.foundation.Image |
||||
import androidx.compose.foundation.layout.Box |
||||
import androidx.compose.foundation.shape.CircleShape |
||||
import androidx.compose.runtime.Composable |
||||
import androidx.compose.ui.Modifier |
||||
import androidx.compose.ui.draw.clip |
||||
import androidx.compose.ui.res.painterResource |
||||
import androidx.compose.ui.tooling.preview.Preview |
||||
import io.element.android.x.R |
||||
|
||||
@Preview |
||||
@Composable |
||||
fun IconPreview( |
||||
modifier: Modifier = Modifier, |
||||
) { |
||||
Box { |
||||
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null) |
||||
Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null) |
||||
} |
||||
} |
||||
|
||||
@Preview |
||||
@Composable |
||||
fun RoundIconPreview( |
||||
modifier: Modifier = Modifier, |
||||
) { |
||||
Box(modifier = modifier.clip(shape = CircleShape)) { |
||||
Image(painter = painterResource(id = R.mipmap.ic_launcher_background), contentDescription = null) |
||||
Image(painter = painterResource(id = R.mipmap.ic_launcher_foreground), contentDescription = null) |
||||
} |
||||
} |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<background android:drawable="@mipmap/ic_launcher_background"/> |
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> |
||||
<!-- Waiting for design monochrome android:drawable="@mipmap/ic_launcher_monochrome" /--> |
||||
</adaptive-icon> |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<background android:drawable="@mipmap/ic_launcher_background"/> |
||||
<foreground android:drawable="@mipmap/ic_launcher_foreground"/> |
||||
<!-- Waiting for design monochrome android:drawable="@mipmap/ic_launcher_monochrome" /--> |
||||
</adaptive-icon> |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 2.8 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 5.8 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 8.0 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 9.4 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 8.9 KiB |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 19 KiB |