Skip to content

Commit

Permalink
type=3 显示年月图标,年文字fontsize增加
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 authored Oct 27, 2024
1 parent 789f3e1 commit 9986cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/api/icon.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ func generateTypeThreeSVG(color string, lang string, dateInfo map[string]interfa
<circle cx="382.5" cy="93" r="14"/>
</g>
<text transform="translate(22 146.5)" style="fill: #fff;font-size: 120px; font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei'; ">%d</text>
<text x="50%%" y="410.5" style="fill: #66757f;font-size: 160px;text-anchor: middle;font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei'; ">%s</text>
<text x="50%%" y="410.5" style="fill: #66757f;font-size: 200px;text-anchor: middle;font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans', 'Noto Sans CJK SC', 'Microsoft YaHei'; ">%s</text>
</svg>
`, colorScheme.Primary, colorScheme.Secondary, dateInfo["year"], dateInfo["month"])
}
Expand Down

0 comments on commit 9986cf5

Please sign in to comment.