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
@@ -0,0 +1,39 @@
package de.berlindroid.zepatch.patchable

import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.size
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import de.berlindroid.zepatch.R
import de.berlindroid.zepatch.annotations.Patch
import de.berlindroid.zepatch.ui.SafeArea

@OptIn(ExperimentalMaterial3Api::class)
@Patch("EventFahrplanLogo")
@Composable
fun EventFahrplanLogo(
shouldCapture: Boolean = false,
onBitmap: (ImageBitmap) -> Unit = {},
) {
SafeArea(
shouldCapture = shouldCapture,
onBitmap = onBitmap,
) {
Image(
modifier = Modifier.size(200.dp),
painter = painterResource(R.drawable.eventfahrplan_logo),
contentDescription = null,
)
}
}

@Preview
@Composable
fun PreviewBerlindroid() {
EventFahrplanLogo()
}
54 changes: 54 additions & 0 deletions app/src/main/res/drawable/eventfahrplan_logo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="175.75dp"
android:height="120.32dp"
android:viewportWidth="175.75"
android:viewportHeight="120.32">
<path
android:fillColor="#FF000000"
android:pathData="M19.95,1.42L155.8,1.42A18.53,18.53 0,0 1,174.33 19.95L174.33,100.37A18.53,18.53 0,0 1,155.8 118.9L19.95,118.9A18.53,18.53 0,0 1,1.42 100.37L1.42,19.95A18.53,18.53 0,0 1,19.95 1.42z" />
<path
android:fillColor="#fff"
android:pathData="M155.8,2.83A17.2,17.2 0,0 1,172.91 20v80.42a17.09,17.09 0,0 1,-17.11 17.11H20A17.2,17.2 0,0 1,2.83 100.37V20A17.2,17.2 0,0 1,20 2.83H155.8m0,-2.83H20A20,20 0,0 0,0 20v80.42a20,20 0,0 0,20 19.95H155.8a20,20 0,0 0,19.95 -19.95V20A20,20 0,0 0,155.8 0Z" />
<path
android:fillColor="#ffed00"
android:pathData="M23.43,21h21a2.87,2.87 0,0 1,2.88 2.88v11.2A2.87,2.87 0,0 1,44.48 38h-21a2.88,2.88 0,0 1,-2.88 -2.88V23.89A3,3 0,0 1,23.43 21" />
<path
android:fillColor="#ffed00"
android:pathData="M53.72,50.39H76.44a2.88,2.88 0,0 1,2.88 2.88v11.2a2.87,2.87 0,0 1,-2.88 2.88H53.72a2.88,2.88 0,0 1,-2.88 -2.88V53.27a2.88,2.88 0,0 1,2.88 -2.88" />
<path
android:fillColor="#ff008e"
android:pathData="M23.43,56.9h21a2.87,2.87 0,0 1,2.88 2.88v10.6a2.87,2.87 0,0 1,-2.88 2.88h-21a2.88,2.88 0,0 1,-2.88 -2.88V59.78a3,3 0,0 1,2.88 -2.88" />
<path
android:fillColor="#ff008e"
android:pathData="M53.72,82H76.44a2.88,2.88 0,0 1,2.88 2.88V96.43a2.87,2.87 0,0 1,-2.88 2.88H53.72a2.88,2.88 0,0 1,-2.88 -2.88V84.92A3,3 0,0 1,53.72 82" />
<path
android:fillColor="#ff008e"
android:pathData="M99.61,77.2h20.6a2.88,2.88 0,0 1,2.88 2.87v4.09A2.88,2.88 0,0 1,120.21 87H99.61a2.88,2.88 0,0 1,-2.88 -2.88V80.07a3,3 0,0 1,2.88 -2.87" />
<path
android:fillColor="#ff008e"
android:pathData="M99.61,39.18h20.6a2.88,2.88 0,0 1,2.88 2.88v6.06A2.89,2.89 0,0 1,120.21 51H99.61a2.89,2.89 0,0 1,-2.88 -2.88V42.06a2.89,2.89 0,0 1,2.88 -2.88" />
<path
android:fillColor="#ffed00"
android:pathData="M129.45,21h23a2.88,2.88 0,0 1,2.88 2.88v11.2A2.88,2.88 0,0 1,152.47 38h-23a2.87,2.87 0,0 1,-2.88 -2.88V23.89A2.78,2.78 0,0 1,129.45 21" />
<path
android:fillColor="#ffed00"
android:pathData="M23.43,77.65h21a2.87,2.87 0,0 1,2.88 2.88v15.9a2.87,2.87 0,0 1,-2.88 2.88h-21a2.88,2.88 0,0 1,-2.88 -2.88V80.53a3,3 0,0 1,2.88 -2.88" />
<path
android:fillColor="#00c2ff"
android:pathData="M99.61,21h20.6a2.88,2.88 0,0 1,2.88 2.88v8.93a2.88,2.88 0,0 1,-2.88 2.88H99.61a2.88,2.88 0,0 1,-2.88 -2.88V23.89A2.88,2.88 0,0 1,99.61 21" />
<path
android:fillColor="#00c2ff"
android:pathData="M129.45,53h23a2.89,2.89 0,0 1,2.88 2.88V67.05a2.89,2.89 0,0 1,-2.88 2.88h-23a2.87,2.87 0,0 1,-2.88 -2.88V55.84A2.79,2.79 0,0 1,129.45 53" />
<path
android:fillColor="#00c2ff"
android:pathData="M99.61,90.68h20.6a2.88,2.88 0,0 1,2.88 2.87v3a2.88,2.88 0,0 1,-2.88 2.88H99.61a2.88,2.88 0,0 1,-2.88 -2.88v-3a2.79,2.79 0,0 1,2.88 -2.87" />
<path
android:fillColor="#00c2ff"
android:pathData="M23.43,41.61h21a2.87,2.87 0,0 1,2.88 2.87v5.76a2.88,2.88 0,0 1,-2.88 2.88h-21a2.89,2.89 0,0 1,-2.88 -2.88V44.48a2.88,2.88 0,0 1,2.88 -2.87" />
<path
android:fillColor="#00c2ff"
android:pathData="M53.72,21H76.59a2.87,2.87 0,0 1,2.88 2.88v11.2A2.87,2.87 0,0 1,76.59 38H53.72a2.88,2.88 0,0 1,-2.88 -2.88V23.89A2.88,2.88 0,0 1,53.72 21" />
<path
android:fillColor="#ffed00"
android:pathData="M99.61,54.48h20.6a2.88,2.88 0,0 1,2.88 2.88V70.84a2.88,2.88 0,0 1,-2.88 2.87H99.61a2.88,2.88 0,0 1,-2.88 -2.87V57.36a2.79,2.79 0,0 1,2.88 -2.88" />
</vector>
Loading