mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
v2.11.47
This commit is contained in:
@@ -839,9 +839,14 @@ public class BarChartView: NSView {
|
||||
values = self.values
|
||||
}
|
||||
|
||||
guard !values.isEmpty else { return }
|
||||
|
||||
let blocks: Int = 16
|
||||
let spacing: CGFloat = 2
|
||||
let count: CGFloat = CGFloat(values.count)
|
||||
// swiftlint:disable:next empty_count
|
||||
guard count > 0, self.frame.width > 0, self.frame.height > 0 else { return }
|
||||
|
||||
let partitionSize: CGSize = CGSize(width: (self.frame.width - (count*spacing)) / count, height: self.frame.height)
|
||||
let blockSize = CGSize(width: partitionSize.width-(spacing*2), height: ((partitionSize.height - spacing - 1)/CGFloat(blocks))-1)
|
||||
|
||||
@@ -892,7 +897,9 @@ public class BarChartView: NSView {
|
||||
if let block = matchingBlock {
|
||||
let value = "\(Int(block.value.rounded(toPlaces: 2) * 100))%"
|
||||
let width: CGFloat = block.value == 1 ? 38 : block.value > 0.1 ? 32 : 24
|
||||
drawToolTip(self.frame, CGPoint(x: p.x+4, y: p.y+4), CGSize(width: width, height: partitionSize.height), value: value)
|
||||
let tooltipX = min(p.x+4, self.frame.width - width)
|
||||
let tooltipY = min(p.y+4, self.frame.height - partitionSize.height)
|
||||
drawToolTip(self.frame, CGPoint(x: tooltipX, y: tooltipY), CGSize(width: width, height: min(partitionSize.height, self.frame.height)), value: value)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1717,7 +1717,7 @@
|
||||
New,
|
||||
);
|
||||
LastSwiftUpdateCheck = 1540;
|
||||
LastUpgradeCheck = 1620;
|
||||
LastUpgradeCheck = 1640;
|
||||
ORGANIZATIONNAME = "Serhiy Mytrovtsiy";
|
||||
TargetAttributes = {
|
||||
5C22299C29CCB3C400F00E69 = {
|
||||
@@ -2867,7 +2867,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MARKETING_VERSION = 2.11.46;
|
||||
MARKETING_VERSION = 2.11.47;
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
@@ -2904,7 +2904,7 @@
|
||||
"@executable_path/../Frameworks",
|
||||
);
|
||||
MACOSX_DEPLOYMENT_TARGET = 10.15;
|
||||
MARKETING_VERSION = 2.11.46;
|
||||
MARKETING_VERSION = 2.11.47;
|
||||
OTHER_LDFLAGS = "";
|
||||
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1620"
|
||||
LastUpgradeVersion = "1640"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1620"
|
||||
LastUpgradeVersion = "1640"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1620"
|
||||
LastUpgradeVersion = "1640"
|
||||
wasCreatedForAppExtension = "YES"
|
||||
version = "2.0">
|
||||
<BuildAction
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>704</string>
|
||||
<string>706</string>
|
||||
<key>Description</key>
|
||||
<string>Simple macOS system monitor in your menu bar</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
||||
@@ -11,9 +11,9 @@
|
||||
<key>CFBundleInfoDictionaryVersion</key>
|
||||
<string>6.0</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>2.11.46</string>
|
||||
<string>2.11.47</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>704</string>
|
||||
<string>706</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionPointIdentifier</key>
|
||||
|
||||
Reference in New Issue
Block a user