improve on-screen touchPad stroke

This commit is contained in:
TrueZhuanjia
2025-12-28 22:09:15 +08:00
parent 16bd288e70
commit 22e270c4df
+1 -1
View File
@@ -740,7 +740,7 @@ import SVGKit
attributes: [
.foregroundColor: UIColor(white:labelAlpha>0 ? 1.0 : 0, alpha: abs(labelAlpha)), // 填充色
.strokeColor: (labelAlpha>0 ? UIColor.black : UIColor.white).withAlphaComponent(abs(labelAlpha)*0.43), // 描边色
.strokeWidth: containsNonLatin(text) ? -1 : -4 // 负值 = 同时填充
.strokeWidth: widgetType == .touchPad ? 7 : (containsNonLatin(text) ? -1 : -4) // 负值 = 同时填充
]
)
label.attributedText = attr