From 354698a389bd853e990f7a649b8e6e05c8a2f7c8 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Mon, 11 Nov 2024 16:35:24 +0100 Subject: [PATCH] feat: adjusted Stack widget static width to fit Wh a little bit better (#2172) --- Kit/Widgets/Stack.swift | 12 ++++-------- Stats/Supporting Files/Info.plist | 2 +- Widgets/Supporting Files/Info.plist | 2 +- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/Kit/Widgets/Stack.swift b/Kit/Widgets/Stack.swift index d4480f59..7ae28d07 100644 --- a/Kit/Widgets/Stack.swift +++ b/Kit/Widgets/Stack.swift @@ -16,12 +16,8 @@ public struct Stack_t: KeyValue_p { public var value: String var index: Int { - get { - Store.shared.int(key: "stack_\(self.key)_index", defaultValue: -1) - } - set { - Store.shared.set(key: "stack_\(self.key)_index", value: newValue) - } + get { Store.shared.int(key: "stack_\(self.key)_index", defaultValue: -1) } + set { Store.shared.set(key: "stack_\(self.key)_index", value: newValue) } } public init(key: String, value: String) { @@ -37,8 +33,8 @@ public class StackWidget: WidgetWrapper { private var values: [Stack_t] = [] - private var oneRowWidth: CGFloat = 38 - private var twoRowWidth: CGFloat = 28 + private var oneRowWidth: CGFloat = 45 + private var twoRowWidth: CGFloat = 32 private let orderTableView: OrderTableView diff --git a/Stats/Supporting Files/Info.plist b/Stats/Supporting Files/Info.plist index 08ddbae6..a0e07bc8 100755 --- a/Stats/Supporting Files/Info.plist +++ b/Stats/Supporting Files/Info.plist @@ -17,7 +17,7 @@ CFBundleShortVersionString $(MARKETING_VERSION) CFBundleVersion - 609 + 610 Description Simple macOS system monitor in your menu bar LSApplicationCategoryType diff --git a/Widgets/Supporting Files/Info.plist b/Widgets/Supporting Files/Info.plist index 6d10cbbc..a1cddd39 100644 --- a/Widgets/Supporting Files/Info.plist +++ b/Widgets/Supporting Files/Info.plist @@ -13,7 +13,7 @@ CFBundleShortVersionString 2.11.17 CFBundleVersion - 609 + 610 NSExtension NSExtensionPointIdentifier