We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1159ed0 commit 1149834Copy full SHA for 1149834
2 files changed
app/src/main/kotlin/com/simplemobiletools/draw/PaintOptions.kt
@@ -3,5 +3,5 @@ package com.simplemobiletools.draw
3
import android.graphics.Color
4
5
data class PaintOptions(var color: Int = Color.BLACK, var strokeWidth: Float = 5f, var isEraser: Boolean = false) {
6
- fun getColorToExport() = if (isEraser) "none" else Integer.toHexString(color).substring(2)
+ fun getColorToExport() = if (isEraser) "none" else "#${Integer.toHexString(color).substring(2)}"
7
}
app/src/main/kotlin/com/simplemobiletools/draw/Svg.kt
@@ -43,7 +43,7 @@ object Svg {
43
write(" ")
44
45
46
- write("\" fill=\"none\" stroke=\"#")
+ write("\" fill=\"none\" stroke=\"")
47
write(options.getColorToExport())
48
write("\" stroke-width=\"")
49
write(options.strokeWidth.toString())
0 commit comments