- update widget templates
- minor fixes
This commit is contained in:
1 parent
780a0e7ab8
commit
7e0d2af5b7
3 files changed
+4
-1
No files matched your search
@@ -837,6 +837,10 @@ import ObjectiveC.runtime
|
|||||||
@objc func setupAtrributedText(){
|
@objc func setupAtrributedText(){
|
||||||
var text = self.widgetLabel.contains("#") ? "\(self.widgetLabel.split(separator: "#").first ?? "")" : SwiftLocalizationHelper.localizedString(forKey: self.widgetLabel)
|
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 {
|
if self.hasNonEditableLabel {
|
||||||
|
|
||||||
switch cmdString {
|
switch cmdString {
|
||||||
@@ -3302,7 +3306,6 @@ import ObjectiveC.runtime
|
|||||||
let rightDistance = hostView.bounds.width - frame.maxX
|
let rightDistance = hostView.bounds.width - frame.maxX
|
||||||
let bottomDistance = hostView.bounds.height - frame.maxY
|
let bottomDistance = hostView.bounds.height - frame.maxY
|
||||||
autoDockDistance = min(rightDistance, bottomDistance)
|
autoDockDistance = min(rightDistance, bottomDistance)
|
||||||
print("autoDockDistance \(autoDockDistance) ...")
|
|
||||||
autoDockDockedToBottomEdge = bottomDistance < rightDistance
|
autoDockDockedToBottomEdge = bottomDistance < rightDistance
|
||||||
|
|
||||||
let targetFrame = autoDockTargetFrame(in: hostView.bounds)
|
let targetFrame = autoDockTargetFrame(in: hostView.bounds)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in new issue
Block a user