@@ -5,6 +5,7 @@ import androidx.compose.foundation.Image
55import androidx.compose.foundation.background
66import androidx.compose.foundation.border
77import androidx.compose.foundation.layout.Box
8+ import androidx.compose.foundation.layout.Column
89import androidx.compose.foundation.layout.padding
910import androidx.compose.foundation.layout.size
1011import androidx.compose.foundation.shape.RoundedCornerShape
@@ -55,8 +56,46 @@ fun MaukerMakesLogo(
5556 }
5657}
5758
59+ @Patch(" MaukerMakesInverted" )
60+ @Composable
61+ fun MaukerMakesLogoInverted (
62+ shouldCapture : Boolean = false,
63+ onBitmap : (ImageBitmap ) -> Unit = {},
64+ ) {
65+ SafeArea (
66+ shouldCapture = shouldCapture,
67+ onBitmap = onBitmap,
68+ ) {
69+ Box (
70+ modifier = Modifier
71+ .background(
72+ color = Color .Transparent ,
73+ shape = RoundedCornerShape (100 )
74+ )
75+ .border(
76+ BorderStroke (
77+ 5 .dp,
78+ Color .White
79+ ), RoundedCornerShape (100 )
80+ )
81+
82+ ) {
83+ Image (
84+ modifier = Modifier
85+ .size(200 .dp)
86+ .padding(16 .dp),
87+ painter = painterResource(R .drawable.mauker_makes_logo_inverted ),
88+ contentDescription = null
89+ )
90+ }
91+ }
92+ }
93+
5894@Preview
5995@Composable
6096fun MaukerMakesLogoPreview () {
61- MaukerMakesLogo ()
97+ Column {
98+ MaukerMakesLogo ()
99+ MaukerMakesLogoInverted ()
100+ }
62101}
0 commit comments