mirror of
https://github.com/revanced/revanced-manager-compose-old.git
synced 2025-04-29 22:14:28 +02:00
feat: make AppIcon size adjustable
This commit is contained in:
parent
2eb37b81c8
commit
ceeab7ea0c
@ -9,10 +9,14 @@ import androidx.compose.ui.unit.dp
|
||||
import com.google.accompanist.drawablepainter.rememberDrawablePainter
|
||||
|
||||
@Composable
|
||||
fun AppIcon(drawable: Drawable?, contentDescription: String?) {
|
||||
fun AppIcon(
|
||||
drawable: Drawable?,
|
||||
contentDescription: String?,
|
||||
size: Int = 48
|
||||
) {
|
||||
Image(
|
||||
rememberDrawablePainter(drawable),
|
||||
contentDescription,
|
||||
Modifier.size(48.dp)
|
||||
Modifier.size(size.dp)
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user