From ef3fca754feb4863c180f95efa88db394a4487e9 Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Wed, 13 May 2026 17:25:35 +0800 Subject: [PATCH] minor fixes --- VoidLink/Input/OnScreenWidgetView.swift | 6 ++--- VoidLink/Localization/Localizable.xcstrings | 26 ++++++++++++++----- ...LayoutOnScreenControlsViewController.swift | 2 +- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/VoidLink/Input/OnScreenWidgetView.swift b/VoidLink/Input/OnScreenWidgetView.swift index 28fa6627..47594380 100644 --- a/VoidLink/Input/OnScreenWidgetView.swift +++ b/VoidLink/Input/OnScreenWidgetView.swift @@ -588,9 +588,9 @@ import ObjectiveC.runtime } } if self.widgetType == .button { - if self.isFolder { - self.widthFactor = 1.17 - self.heightFactor = 0.77 + if self.isFolder || self.isFunctionalButton { + self.widthFactor = GenericUtils.isIPhone() ? 0.88 : 1.17 + self.heightFactor = GenericUtils.isIPhone() ? 0.56 : 0.77 } } diff --git a/VoidLink/Localization/Localizable.xcstrings b/VoidLink/Localization/Localizable.xcstrings index 8e0f7ded..f4257490 100644 --- a/VoidLink/Localization/Localizable.xcstrings +++ b/VoidLink/Localization/Localizable.xcstrings @@ -811,21 +811,27 @@ "=Folder" : { "extractionState" : "manual", "localizations" : { - "zh-Hans" : { + "en" : { "stringUnit" : { "state" : "translated", + "value" : "Folder" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "needs_review", "value" : "控件夹" } }, "zh-Hant" : { "stringUnit" : { - "state" : "translated", + "state" : "needs_review", "value" : "控制項夾" } }, "zh-HK" : { "stringUnit" : { - "state" : "translated", + "state" : "needs_review", "value" : "控制項夾" } } @@ -1704,21 +1710,27 @@ "=squat" : { "extractionState" : "manual", "localizations" : { - "zh-Hans" : { + "en" : { "stringUnit" : { "state" : "translated", + "value" : "Squat" + } + }, + "zh-Hans" : { + "stringUnit" : { + "state" : "needs_review", "value" : "蹲下" } }, "zh-Hant" : { "stringUnit" : { - "state" : "translated", + "state" : "needs_review", "value" : "蹲下" } }, "zh-HK" : { "stringUnit" : { - "state" : "translated", + "state" : "needs_review", "value" : "蹲下" } } @@ -2738,7 +2750,7 @@ }, "zh-Hans" : { "stringUnit" : { - "state" : "needs_review", + "state" : "translated", "value" : "边界透明度: %.2f" } }, diff --git a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift index 62f6491d..3f6bc11c 100644 --- a/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift +++ b/VoidLink/ViewControllers/CustomOSCViewControl/LayoutOnScreenControlsViewController.swift @@ -2226,7 +2226,7 @@ final class LayoutOnScreenControlsViewController: UIViewController, OnScreenWidg AlertControllerUtil.showAlert( in: self, title: LocalizationHelper.localizedString(forKey: "Tips"), - message: "\n\(LocalizationHelper.localizedString(forKey: "bulkEditTip"))", + message: LocalizationHelper.localizedString(forKey: "bulkEditTip"), withCancel: false, buttonTitle: LocalizationHelper.localizedString(forKey: "Got it!"), countdown: 0,