- update widget templates

- minor fixes
This commit is contained in:
True Zhuanjia
2026-04-13 09:44:55 +08:00
parent 780a0e7ab8
commit 7e0d2af5b7
3 changed files with 4 additions and 1 deletions
+4 -1
View File
@@ -837,6 +837,10 @@ import ObjectiveC.runtime
@objc func setupAtrributedText(){
var text = self.widgetLabel.contains("#") ? "\(self.widgetLabel.split(separator: "#").first ?? "")" : SwiftLocalizationHelper.localizedString(forKey: self.widgetLabel)
if !OnScreenWidgetView.editMode, self.widgetType == .touchPad {
text = ""
}
if self.hasNonEditableLabel {
switch cmdString {
@@ -3302,7 +3306,6 @@ import ObjectiveC.runtime
let rightDistance = hostView.bounds.width - frame.maxX
let bottomDistance = hostView.bounds.height - frame.maxY
autoDockDistance = min(rightDistance, bottomDistance)
print("autoDockDistance \(autoDockDistance) ...")
autoDockDockedToBottomEdge = bottomDistance < rightDistance
let targetFrame = autoDockTargetFrame(in: hostView.bounds)
Binary file not shown.
Binary file not shown.