Skip to content

Commit 4ef60de

Browse files
committed
Add Blueworld
1 parent 1a30522 commit 4ef60de

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
package de.berlindroid.zepatch.patchable
2+
3+
import androidx.compose.foundation.Image
4+
import androidx.compose.foundation.layout.size
5+
import androidx.compose.runtime.Composable
6+
import androidx.compose.ui.Modifier
7+
import androidx.compose.ui.graphics.ImageBitmap
8+
import androidx.compose.ui.res.painterResource
9+
import androidx.compose.ui.tooling.preview.Preview
10+
import androidx.compose.ui.unit.dp
11+
import de.berlindroid.zepatch.R
12+
import de.berlindroid.zepatch.annotations.Patch
13+
import de.berlindroid.zepatch.ui.SafeArea
14+
15+
@Patch("BlueworldLogo")
16+
@Composable
17+
fun BlueworldLogo(
18+
shouldCapture: Boolean = false,
19+
onBitmap: (ImageBitmap) -> Unit = {},
20+
) {
21+
SafeArea(
22+
shouldCapture = shouldCapture,
23+
onBitmap = onBitmap,
24+
) {
25+
Image(
26+
modifier = Modifier.size(200.dp),
27+
painter = painterResource(R.drawable.blueworld),
28+
contentDescription = "Blueworld Logo"
29+
)
30+
}
31+
}
32+
33+
@Preview
34+
@Composable
35+
private fun BlueworldLogoPreview() {
36+
BlueworldLogo()
37+
}
20 KB
Loading

0 commit comments

Comments
 (0)