fix some things

This commit is contained in:
2026-07-19 22:16:37 +02:00
parent dbca41640f
commit 8df5c2a8f9
7 changed files with 404 additions and 28 deletions

View File

@@ -53,14 +53,14 @@ class Icon:
if not self.elements:
self.elements = [{
"type": "ellipse" if self.shape == "ellipse" else "rectangle",
"x": 1.0, "y": 1.0, "width": self.width - 2.0, "height": self.height - 2.0,
"x": 32.0, "y": 32.0, "width": 64.0, "height": 64.0,
"fill": self.fill, "stroke": self.border, "lineWidth": 1.5,
"lineStyle": "solid", "cornerRadius": 5.0,
}]
if self.text:
self.elements.append({
"type": "text", "x": 8.0, "y": 8.0,
"width": self.width - 16.0, "height": self.height - 16.0,
"type": "text", "x": 40.0, "y": 40.0,
"width": 48.0, "height": 48.0,
"text": self.text, "color": "#202020", "fontSize": 12.0,
})