Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -55,8 +56,46 @@ fun MaukerMakesLogo(
}
}

@Patch("MaukerMakesInverted")
@Composable
fun MaukerMakesLogoInverted(
shouldCapture: Boolean = false,
onBitmap: (ImageBitmap) -> Unit = {},
) {
SafeArea(
shouldCapture = shouldCapture,
onBitmap = onBitmap,
) {
Box(
modifier = Modifier
.background(
color = Color.Transparent,
shape = RoundedCornerShape(100)
)
.border(
BorderStroke(
5.dp,
Color.White
), RoundedCornerShape(100)
)

) {
Image(
modifier = Modifier
.size(200.dp)
.padding(16.dp),
painter = painterResource(R.drawable.mauker_makes_logo_inverted ),
contentDescription = null
)
}
}
}

@Preview
@Composable
fun MaukerMakesLogoPreview() {
MaukerMakesLogo()
Column {
MaukerMakesLogo()
MaukerMakesLogoInverted()
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.