widget layout tool minor improvements

This commit is contained in:
True Zhuanjia
2026-05-12 20:46:28 +08:00
parent c734030e87
commit 4195f97d56
2 changed files with 9 additions and 3 deletions
+7 -1
View File
@@ -557,7 +557,7 @@ import ObjectiveC.runtime
}
}
if self.widgetType == WidgetTypeEnum.touchPad {
if self.widgetType == .touchPad {
if self.isStickWheel {
self.widthFactor = 2
self.heightFactor = 2.6
@@ -587,6 +587,12 @@ import ObjectiveC.runtime
self.sensitivityFactorY = 0
}
}
if self.widgetType == .button {
if self.isFolder {
self.widthFactor = 1.17
self.heightFactor = 0.77
}
}
self.tweakBorderAlpha(alpha: self.borderAlpha) // fix default borderAlpha offset