mirror of
				https://github.com/SimpleMobileTools/Simple-Draw.git
				synced 2025-06-05 21:59:17 +02:00 
			
		
		
		
	do not prepend stroke "none" with a hashtag
This commit is contained in:
		| @@ -3,5 +3,5 @@ package com.simplemobiletools.draw | ||||
| import android.graphics.Color | ||||
|  | ||||
| data class PaintOptions(var color: Int = Color.BLACK, var strokeWidth: Float = 5f, var isEraser: Boolean = false) { | ||||
|     fun getColorToExport() = if (isEraser) "none" else Integer.toHexString(color).substring(2) | ||||
|     fun getColorToExport() = if (isEraser) "none" else "#${Integer.toHexString(color).substring(2)}" | ||||
| } | ||||
|   | ||||
| @@ -43,7 +43,7 @@ object Svg { | ||||
|                 write(" ") | ||||
|             } | ||||
|  | ||||
|             write("\" fill=\"none\" stroke=\"#") | ||||
|             write("\" fill=\"none\" stroke=\"") | ||||
|             write(options.getColorToExport()) | ||||
|             write("\" stroke-width=\"") | ||||
|             write(options.strokeWidth.toString()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user