From 320d4c4a24846a551ac545581e387b92c9e42855 Mon Sep 17 00:00:00 2001
From: Anoyi <545544032@qq.com>
Date: Tue, 18 Oct 2022 19:17:37 +0800
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Add=20default=20scale?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 25 +++++++++----------------
main.py | 3 +++
2 files changed, 12 insertions(+), 16 deletions(-)
diff --git a/README.md b/README.md
index d272c6d..31ced48 100644
--- a/README.md
+++ b/README.md
@@ -1,25 +1,18 @@
+# โจ Features
-
Icons for Developer, Powered by DETA โก
-
-
-
-# Features
-
-- [Features](#features)
-- [Design](#design)
-- [Customization](#customization)
+- [โจ Features](#-features)
+- [๐จ Design](#-design)
+- [๐งช Customization](#-customization)
- [icons](#icons)
- [cols](#cols)
- [iconBgColor](#iconbgcolor)
-- [Icons List](#icons-list)
-
-# Design
+- [๐ Icons List](#-icons-list)
-I use Figma to design all icons. Each icon size is `256 x 256`, radius is `56`, inline verctor max width or height is `200`, recomended value is `180`.
+# ๐จ Design
-> ๐จ Figma Resource [https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons](https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons)
+See all icons in [Figma](https://www.figma.com/file/9MzhQygAIiTlJj79UbpBHK/DevIcons).
-# Customization
+# ๐งช Customization
## icons
@@ -56,7 +49,7 @@ Change the `&iconBgColor=F3F4F6` to fill a rect to each icon.
[![](https://icons.anoyi.com/?iconBgColor=F3F4F6&icons=python,java,docker,kubernetes,html5,css3)](https://anoyi.com/dev-icons)
-# Icons List
+# ๐ Icons List
Please visite [https://anoyi.com/dev-icons](https://anoyi.com/dev-icons) to see all icons with names.
diff --git a/main.py b/main.py
index 25c0fc1..a25c08b 100644
--- a/main.py
+++ b/main.py
@@ -8,6 +8,7 @@
GAP = 48
ICON_SIZE = 256 + GAP
PADDING = 0
+SCALE = 48 / 256
# svg files
FILES = os.listdir('./icons')
@@ -22,7 +23,9 @@ def generate_svg(icon_names, cols, iconBgColor):
icon_bg_rect = f'' if iconBgColor else ''
return f"""
""".strip()