This commit is contained in:
Serhiy Mytrovtsiy
2026-04-05 16:44:00 +02:00
parent 7fb5764f7d
commit 53db845506
5 changed files with 6 additions and 21 deletions

View File

@@ -103,21 +103,6 @@ extension String: @retroactive LocalizedError {
}
}
public extension DispatchSource.MemoryPressureEvent {
func pressureColor() -> NSColor {
switch self {
case .normal:
return NSColor.systemGreen
case .warning:
return NSColor.systemYellow
case .critical:
return NSColor.systemRed
default:
return .controlAccentColor
}
}
}
public extension Double {
func roundTo(decimalPlaces: Int) -> String {
return NSString(format: "%.\(decimalPlaces)f" as NSString, self) as String

View File

@@ -405,7 +405,7 @@ public enum RAMPressure: String, Codable {
case warning
case critical
func pressureColor() -> NSColor {
public func pressureColor() -> NSColor {
switch self {
case .normal:
return NSColor.systemGreen

View File

@@ -2875,7 +2875,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.5;
MARKETING_VERSION = 2.12.7;
MARKETING_VERSION = 2.12.8;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -2912,7 +2912,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.5;
MARKETING_VERSION = 2.12.7;
MARKETING_VERSION = 2.12.8;
OTHER_LDFLAGS = "";
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
PRODUCT_NAME = "$(TARGET_NAME)";

View File

@@ -17,7 +17,7 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key>
<string>781</string>
<string>782</string>
<key>Description</key>
<string>Simple macOS system monitor in your menu bar</string>
<key>LSApplicationCategoryType</key>

View File

@@ -11,9 +11,9 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>2.12.7</string>
<string>2.12.8</string>
<key>CFBundleVersion</key>
<string>781</string>
<string>782</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>