forked from jensstein/oandbackup
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ensure BackupItem and RestoreItem look similar
- Loading branch information
Showing
3 changed files
with
308 additions
and
204 deletions.
There are no files selected for viewing
90 changes: 90 additions & 0 deletions
90
src/main/java/com/machiav3lli/backup/ui/compose/icons/phosphor/NotePencil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
package com.machiav3lli.backup.ui.compose.icons.phosphor | ||
|
||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.runtime.Composable | ||
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.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.machiav3lli.backup.ui.compose.icons.Phosphor | ||
|
||
val Phosphor.NotePencil: ImageVector | ||
get() { | ||
if (_note_pencil != null) { | ||
return _note_pencil!! | ||
} | ||
_note_pencil = Builder( | ||
name = "Note-pencil", | ||
defaultWidth = 24.0.dp, | ||
defaultHeight = 24.0.dp, | ||
viewportWidth = 256.0f, | ||
viewportHeight = 256.0f, | ||
).apply { | ||
path( | ||
fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = 0.0f, | ||
strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f, | ||
pathFillType = NonZero | ||
) { | ||
moveTo(229.7f, 58.3f) | ||
lineToRelative(-32.0f, -32.0f) | ||
arcToRelative(8.1f, 8.1f, 0.0f, false, false, -11.4f, 0.0f) | ||
lineToRelative(-96.0f, 96.0f) | ||
arcTo(8.1f, 8.1f, 0.0f, false, false, 88.0f, 128.0f) | ||
verticalLineToRelative(32.0f) | ||
arcToRelative(8.0f, 8.0f, 0.0f, false, false, 8.0f, 8.0f) | ||
horizontalLineToRelative(32.0f) | ||
arcToRelative(8.1f, 8.1f, 0.0f, false, false, 5.7f, -2.3f) | ||
lineToRelative(96.0f, -96.0f) | ||
arcTo(8.1f, 8.1f, 0.0f, false, false, 229.7f, 58.3f) | ||
close() | ||
moveTo(124.7f, 152.0f) | ||
horizontalLineTo(104.0f) | ||
verticalLineTo(131.3f) | ||
lineToRelative(64.0f, -64.0f) | ||
lineTo(188.7f, 88.0f) | ||
close() | ||
moveTo(200.0f, 76.7f) | ||
lineTo(179.3f, 56.0f) | ||
lineTo(192.0f, 43.3f) | ||
lineTo(212.7f, 64.0f) | ||
close() | ||
moveTo(224.0f, 120.0f) | ||
verticalLineToRelative(88.0f) | ||
arcToRelative(16.0f, 16.0f, 0.0f, false, true, -16.0f, 16.0f) | ||
horizontalLineTo(48.0f) | ||
arcToRelative(16.0f, 16.0f, 0.0f, false, true, -16.0f, -16.0f) | ||
verticalLineTo(48.0f) | ||
arcTo(16.0f, 16.0f, 0.0f, false, true, 48.0f, 32.0f) | ||
horizontalLineToRelative(88.0f) | ||
arcToRelative(8.0f, 8.0f, 0.0f, false, true, 0.0f, 16.0f) | ||
horizontalLineTo(48.0f) | ||
verticalLineTo(208.0f) | ||
horizontalLineTo(208.0f) | ||
verticalLineTo(120.0f) | ||
arcToRelative(8.0f, 8.0f, 0.0f, false, true, 16.0f, 0.0f) | ||
close() | ||
} | ||
} | ||
.build() | ||
return _note_pencil!! | ||
} | ||
|
||
private var _note_pencil: ImageVector? = null | ||
|
||
|
||
|
||
@Preview | ||
@Composable | ||
fun NotePencilPreview() { | ||
Image( | ||
Phosphor.NotePencil, | ||
null | ||
) | ||
} |
83 changes: 83 additions & 0 deletions
83
src/main/java/com/machiav3lli/backup/ui/compose/icons/phosphor/Pencil.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
package com.machiav3lli.backup.ui.compose.icons.phosphor | ||
|
||
|
||
import androidx.compose.foundation.Image | ||
import androidx.compose.runtime.Composable | ||
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.tooling.preview.Preview | ||
import androidx.compose.ui.unit.dp | ||
import com.machiav3lli.backup.ui.compose.icons.Phosphor | ||
|
||
val Phosphor.Pencil: ImageVector | ||
get() { | ||
if (_pencil != null) { | ||
return _pencil!! | ||
} | ||
_pencil = Builder( | ||
name = "Pencil", | ||
defaultWidth = 24.0.dp, | ||
defaultHeight = 24.0.dp, | ||
viewportWidth = 256.0f, | ||
viewportHeight = 256.0f, | ||
).apply { | ||
path( | ||
fill = SolidColor(Color(0xFF000000)), stroke = null, strokeLineWidth = 0.0f, | ||
strokeLineCap = Butt, strokeLineJoin = Miter, strokeLineMiter = 4.0f, | ||
pathFillType = NonZero | ||
) { | ||
moveTo(224.0f, 76.7f) | ||
lineTo(179.3f, 32.0f) | ||
arcToRelative(15.9f, 15.9f, 0.0f, false, false, -22.6f, 0.0f) | ||
lineTo(36.7f, 152.0f) | ||
arcTo(15.9f, 15.9f, 0.0f, false, false, 32.0f, 163.3f) | ||
lineTo(32.0f, 208.0f) | ||
arcToRelative(16.0f, 16.0f, 0.0f, false, false, 16.0f, 16.0f) | ||
lineTo(92.7f, 224.0f) | ||
arcToRelative(15.9f, 15.9f, 0.0f, false, false, 11.3f, -4.7f) | ||
lineToRelative(120.0f, -120.0f) | ||
arcTo(16.1f, 16.1f, 0.0f, false, false, 224.0f, 76.7f) | ||
close() | ||
moveTo(51.3f, 160.0f) | ||
lineTo(136.0f, 75.3f) | ||
lineTo(152.7f, 92.0f) | ||
lineTo(68.0f, 176.7f) | ||
close() | ||
moveTo(48.0f, 179.3f) | ||
lineTo(76.7f, 208.0f) | ||
lineTo(48.0f, 208.0f) | ||
close() | ||
moveTo(96.0f, 204.7f) | ||
lineTo(79.3f, 188.0f) | ||
lineTo(164.0f, 103.3f) | ||
lineTo(180.7f, 120.0f) | ||
close() | ||
moveTo(192.0f, 108.7f) | ||
lineTo(147.3f, 64.0f) | ||
lineTo(168.0f, 43.3f) | ||
lineTo(212.7f, 88.0f) | ||
close() | ||
} | ||
} | ||
.build() | ||
return _pencil!! | ||
} | ||
|
||
private var _pencil: ImageVector? = null | ||
|
||
|
||
|
||
@Preview | ||
@Composable | ||
fun PencilPreview() { | ||
Image( | ||
Phosphor.Pencil, | ||
null | ||
) | ||
} |
Oops, something went wrong.