mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 11:47:04 +05:30
common: remove unnecessary SVG resources
Compose Desktop can actually parse Android Vector Drawables just fine, provided they do not reference external resources like theme attributes or colors which our drawables do not.
This commit is contained in:
parent
0cb1124640
commit
584c1e5e5c
6 changed files with 8 additions and 13 deletions
|
@ -37,7 +37,10 @@ kotlin {
|
|||
dependsOn(sourceSets["androidTestFixturesDebug"])
|
||||
dependsOn(sourceSets["androidTestFixturesRelease"])
|
||||
}
|
||||
sourceSets["desktopMain"].apply { dependencies { implementation(libs.kamel.image) } }
|
||||
sourceSets["desktopMain"].apply {
|
||||
resources.srcDir("src/androidMain/res/drawable/")
|
||||
dependencies { implementation(libs.kamel.image) }
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
|
|
|
@ -4,10 +4,10 @@ import androidx.compose.runtime.Composable
|
|||
import androidx.compose.ui.res.painterResource
|
||||
|
||||
actual val commentIcon
|
||||
@Composable get() = painterResource("comment_black_24dp.svg")
|
||||
@Composable get() = painterResource("ic_insert_comment_24dp.xml")
|
||||
actual val heartIcon
|
||||
@Composable get() = painterResource("favorite_black_24dp.svg")
|
||||
@Composable get() = painterResource("ic_favorite_24dp.xml")
|
||||
actual val heartBorderIcon
|
||||
@Composable get() = painterResource("favorite_border_black_24dp.svg")
|
||||
@Composable get() = painterResource("ic_favorite_border_24dp.xml")
|
||||
actual val webIcon
|
||||
@Composable get() = painterResource("web_black_24dp.svg")
|
||||
@Composable get() = painterResource("ic_web_24dp.xml")
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>
|
Before Width: | Height: | Size: 279 B |
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z"/></svg>
|
Before Width: | Height: | Size: 331 B |
|
@ -1 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0z" fill="none"/><path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z"/></svg>
|
Before Width: | Height: | Size: 500 B |
|
@ -1,5 +0,0 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000">
|
||||
<path d="M0 0h24v24H0V0z" fill="none" />
|
||||
<path
|
||||
d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-.61.08-1.21.21-1.78L8.99 15v1c0 1.1.9 2 2 2v1.93C7.06 19.43 4 16.07 4 12zm13.89 5.4c-.26-.81-1-1.4-1.9-1.4h-1v-3c0-.55-.45-1-1-1h-6v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41C17.92 5.77 20 8.65 20 12c0 2.08-.81 3.98-2.11 5.4z" />
|
||||
</svg>
|
Before Width: | Height: | Size: 474 B |
Loading…
Add table
Add a link
Reference in a new issue