Skip to content

Commit

Permalink
Update sample-mpp
Browse files Browse the repository at this point in the history
  • Loading branch information
serbelga committed Feb 4, 2024
1 parent b8e7898 commit 6e27ae1
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import dev.sergiobelda.compose.vectorize.sample.common.images.Images
import dev.sergiobelda.compose.vectorize.sample.common.images.icons.Add
import dev.sergiobelda.compose.vectorize.sample.common.images.icons.outlined.Home
import dev.sergiobelda.compose.vectorize.sample.common.images.icons.rounded.Home
import dev.sergiobelda.compose.vectorize.sample.common.images.illustrations.ComposeMultiplatform

@Composable
Expand All @@ -43,10 +44,18 @@ fun MainScreen() {
verticalArrangement = Arrangement.spacedBy(16.dp)
) {
SampleCard(
title = "Images.Icons.Add"
title = "Images.Icons.Outlined.Home"
) {
Icon(
imageVector = Images.Icons.Add,
imageVector = Images.Icons.Outlined.Home,
contentDescription = null
)
}
SampleCard(
title = "Images.Icons.Rounded.Home"
) {
Icon(
imageVector = Images.Icons.Rounded.Home,
contentDescription = null
)
}
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions sample-mpp/common/xml-images/icons/outlined/home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M240,760L360,760L360,520L600,520L600,760L720,760L720,400L480,220L240,400L240,760ZM160,840L160,360L480,120L800,360L800,840L520,840L520,600L440,600L440,840L160,840ZM480,490L480,490L480,490L480,490L480,490L480,490L480,490L480,490L480,490L480,490Z"/>
</vector>
10 changes: 10 additions & 0 deletions sample-mpp/common/xml-images/icons/rounded/home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M240,760L360,760L360,560Q360,543 371.5,531.5Q383,520 400,520L560,520Q577,520 588.5,531.5Q600,543 600,560L600,760L720,760L720,400Q720,400 720,400Q720,400 720,400L480,220Q480,220 480,220Q480,220 480,220L240,400Q240,400 240,400Q240,400 240,400L240,760ZM160,760L160,400Q160,381 168.5,364Q177,347 192,336L432,156Q453,140 480,140Q507,140 528,156L768,336Q783,347 791.5,364Q800,381 800,400L800,760Q800,793 776.5,816.5Q753,840 720,840L560,840Q543,840 531.5,828.5Q520,817 520,800L520,600Q520,600 520,600Q520,600 520,600L440,600Q440,600 440,600Q440,600 440,600L440,800Q440,817 428.5,828.5Q417,840 400,840L240,840Q207,840 183.5,816.5Q160,793 160,760ZM480,490L480,490L480,490Q480,490 480,490Q480,490 480,490L480,490L480,490L480,490L480,490Q480,490 480,490Q480,490 480,490L480,490Q480,490 480,490Q480,490 480,490L480,490L480,490Z"/>
</vector>

0 comments on commit 6e27ae1

Please sign in to comment.