SakiKawasaki %!s(int64=5) %!d(string=hai) anos
pai
achega
e84bcba967
Modificáronse 4 ficheiros con 7 adicións e 6 borrados
  1. 2 1
      badgemaker/badgemaker.nim
  2. BIN=BIN
      tests/test7.exe
  3. 1 1
      tests/test7.nim
  4. 4 4
      tests/test7.svg

+ 2 - 1
badgemaker/badgemaker.nim

@@ -122,7 +122,8 @@ proc write*(badge: BadgeRef, filename: string) =
 
   text.add newXMLTree(
     "text", [], {
-      "x": $(image_width + 2), "y": $(badge.height/2 + 5), "fill": badge.label_text_color
+      "x": $(image_width + 2 + parseInt(radius)),
+      "y": $(badge.height/2 + 5), "fill": badge.label_text_color
     }.toXMLAttributes
   )
   text[0].add newText badge.label

BIN=BIN
tests/test7.exe


+ 1 - 1
tests/test7.nim

@@ -2,7 +2,7 @@
 import badgemaker
 
 var badge = newBadge(
-  label=" Programming language:", value="Nim",
+  label="Programming language:", value="Nim",
   label_color="#282A36", value_color="fuchsia",
   label_text_color="#e0e0e0", value_text_color="#333",
   width=220, style="plastic"

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 4 - 4
tests/test7.svg


Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio