mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 12:57:04 +05:30
common: add icon for new posts
This commit is contained in:
parent
ea2ebf0393
commit
132898e3ca
2 changed files with 72 additions and 0 deletions
|
@ -4,6 +4,7 @@ import dev.msfjarvis.claw.common.res.clawicons.commentIcon
|
|||
import dev.msfjarvis.claw.common.res.clawicons.flameIcon
|
||||
import dev.msfjarvis.claw.common.res.clawicons.heartBorderIcon
|
||||
import dev.msfjarvis.claw.common.res.clawicons.heartIcon
|
||||
import dev.msfjarvis.claw.common.res.clawicons.newIcon
|
||||
import dev.msfjarvis.claw.common.res.clawicons.webIcon
|
||||
|
||||
object ClawIcons {
|
||||
|
@ -15,5 +16,7 @@ object ClawIcons {
|
|||
|
||||
val HeartBorder = heartBorderIcon
|
||||
|
||||
val New = newIcon
|
||||
|
||||
val Web = webIcon
|
||||
}
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
package dev.msfjarvis.claw.common.res.clawicons
|
||||
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
|
||||
import androidx.compose.ui.graphics.SolidColor
|
||||
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
|
||||
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.graphics.vector.ImageVector.Builder
|
||||
import androidx.compose.ui.graphics.vector.path
|
||||
import androidx.compose.ui.unit.dp
|
||||
import dev.msfjarvis.claw.common.unsafeLazy
|
||||
|
||||
val newIcon: ImageVector by unsafeLazy {
|
||||
Builder(
|
||||
name = "NewIcon",
|
||||
defaultWidth = 24.0.dp,
|
||||
defaultHeight = 24.0.dp,
|
||||
viewportWidth = 24.0f,
|
||||
viewportHeight = 24.0f
|
||||
)
|
||||
.apply {
|
||||
path(
|
||||
fill = SolidColor(Color(0xFF000000)),
|
||||
stroke = null,
|
||||
strokeLineWidth = 0.0f,
|
||||
strokeLineCap = Butt,
|
||||
strokeLineJoin = Miter,
|
||||
strokeLineMiter = 4.0f,
|
||||
pathFillType = NonZero
|
||||
) {
|
||||
moveTo(23.0f, 12.0f)
|
||||
lineToRelative(-2.44f, -2.78f)
|
||||
lineToRelative(0.34f, -3.68f)
|
||||
lineToRelative(-3.61f, -0.82f)
|
||||
lineToRelative(-1.89f, -3.18f)
|
||||
lineTo(12.0f, 3.0f)
|
||||
lineTo(8.6f, 1.54f)
|
||||
lineTo(6.71f, 4.72f)
|
||||
lineToRelative(-3.61f, 0.81f)
|
||||
lineToRelative(0.34f, 3.68f)
|
||||
lineTo(1.0f, 12.0f)
|
||||
lineToRelative(2.44f, 2.78f)
|
||||
lineToRelative(-0.34f, 3.69f)
|
||||
lineToRelative(3.61f, 0.82f)
|
||||
lineToRelative(1.89f, 3.18f)
|
||||
lineTo(12.0f, 21.0f)
|
||||
lineToRelative(3.4f, 1.46f)
|
||||
lineToRelative(1.89f, -3.18f)
|
||||
lineToRelative(3.61f, -0.82f)
|
||||
lineToRelative(-0.34f, -3.68f)
|
||||
lineTo(23.0f, 12.0f)
|
||||
close()
|
||||
moveTo(13.0f, 17.0f)
|
||||
horizontalLineToRelative(-2.0f)
|
||||
verticalLineToRelative(-2.0f)
|
||||
horizontalLineToRelative(2.0f)
|
||||
verticalLineToRelative(2.0f)
|
||||
close()
|
||||
moveTo(13.0f, 13.0f)
|
||||
horizontalLineToRelative(-2.0f)
|
||||
lineTo(11.0f, 7.0f)
|
||||
horizontalLineToRelative(2.0f)
|
||||
verticalLineToRelative(6.0f)
|
||||
close()
|
||||
}
|
||||
}
|
||||
.build()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue