Skip to content

Commit

Permalink
feat: adjusted Stack widget static width to fit Wh a little bit better (
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Nov 11, 2024
1 parent 4a03d68 commit 354698a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
12 changes: 4 additions & 8 deletions Kit/Widgets/Stack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Stats/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>609</string>
<string>610</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>
Expand Down
2 changes: 1 addition & 1 deletion Widgets/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleShortVersionString</key>
<string>2.11.17</string>
<key>CFBundleVersion</key>
<string>609</string>
<string>610</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
Expand Down

0 comments on commit 354698a

Please sign in to comment.