mirror of
https://github.com/xushier/HD-Icons.git
synced 2025-12-06 12:27:29 +08:00
Add Fail2Ban、MediaSaber
This commit is contained in:
parent
983a364a21
commit
b6b04e202e
@ -75,12 +75,12 @@
|
|||||||
|
|
||||||
## 圆角矩形图标
|
## 圆角矩形图标
|
||||||
<!-- START BORDER-RADIUS ICONS -->
|
<!-- START BORDER-RADIUS ICONS -->
|
||||||
|
<img src="https://github.com/xushier/HD-Icons/blob/main/_icons-radius.png?raw=true" alt="radius">
|
||||||
<!-- END BORDER-RADIUS ICONS -->
|
<!-- END BORDER-RADIUS ICONS -->
|
||||||
|
|
||||||
## 圆形图标
|
## 圆形图标
|
||||||
<!-- START CIRCLE ICONS -->
|
<!-- START CIRCLE ICONS -->
|
||||||
|
<img src="https://github.com/xushier/HD-Icons/blob/main/_icons-circle.png?raw=true" alt="circle">
|
||||||
<!-- END CIRCLE ICONS -->
|
<!-- END CIRCLE ICONS -->
|
||||||
|
|
||||||
## SVG 图标
|
## SVG 图标
|
||||||
|
|||||||
20
_generate.py
20
_generate.py
@ -25,22 +25,22 @@ with open(template_path, "r", encoding="UTF-8") as f:
|
|||||||
lines = f.readlines()
|
lines = f.readlines()
|
||||||
|
|
||||||
# Find the line that starts with "<!-- ICONS -->"
|
# Find the line that starts with "<!-- ICONS -->"
|
||||||
for line in lines:
|
# for line in lines:
|
||||||
if line.startswith("<!-- START BORDER-RADIUS ICONS -->"):
|
# if line.startswith("<!-- START BORDER-RADIUS ICONS -->"):
|
||||||
line_number = lines.index(line)
|
# line_number = lines.index(line)
|
||||||
break
|
# break
|
||||||
for line in lines:
|
# for line in lines:
|
||||||
if line.startswith("<!-- START CIRCLE ICONS -->"):
|
# if line.startswith("<!-- START CIRCLE ICONS -->"):
|
||||||
circle_line_number = lines.index(line)
|
# circle_line_number = lines.index(line)
|
||||||
break
|
# break
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if line.startswith("<!-- START SVG ICONS -->"):
|
if line.startswith("<!-- START SVG ICONS -->"):
|
||||||
svg_line_number = lines.index(line)
|
svg_line_number = lines.index(line)
|
||||||
break
|
break
|
||||||
|
|
||||||
# Insert the icons after the line
|
# Insert the icons after the line
|
||||||
lines.insert(line_number + 1, " ".join(img_tags))
|
# lines.insert(line_number + 1, " ".join(img_tags))
|
||||||
lines.insert(circle_line_number + 2, " ".join(circle_img_tags))
|
# lines.insert(circle_line_number + 2, " ".join(circle_img_tags))
|
||||||
lines.insert(svg_line_number + 3, " ".join(svg_img_tags))
|
lines.insert(svg_line_number + 3, " ".join(svg_img_tags))
|
||||||
|
|
||||||
lines = ["# 图标预览(当前共计 " + str(all_nums) + " 个)" if '# 图标预览(当前共计 0 个)' in i else i for i in lines]
|
lines = ["# 图标预览(当前共计 " + str(all_nums) + " 个)" if '# 图标预览(当前共计 0 个)' in i else i for i in lines]
|
||||||
|
|||||||
BIN
_icons-circle.png
Normal file
BIN
_icons-circle.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 264 KiB |
BIN
_icons-radius.png
Normal file
BIN
_icons-radius.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
BIN
border-radius/Fail2ban_A.png
Normal file
BIN
border-radius/Fail2ban_A.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 166 KiB |
BIN
border-radius/Mediasaber_A.png
Normal file
BIN
border-radius/Mediasaber_A.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Loading…
Reference in New Issue
Block a user