Skip to content

Commit

Permalink
- adjust processor row height to fix processor name
Browse files Browse the repository at this point in the history
v2.1.0
  • Loading branch information
exelban committed Jun 24, 2020
1 parent f463204 commit ec8f7a5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Modules/CPU/config.plist
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<key>Preview</key>
<dict>
<key>Value</key>
<string>0.36,0.28</string>
<string>0.36,0.28,0.32,0.26</string>
</dict>
</dict>
</dict>
Expand Down
4 changes: 2 additions & 2 deletions Stats.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1680,7 +1680,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.0.6;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -1712,7 +1712,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 10.14;
MARKETING_VERSION = 2.0.6;
MARKETING_VERSION = 2.1.0;
PRODUCT_BUNDLE_IDENTIFIER = eu.exelban.Stats;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
6 changes: 3 additions & 3 deletions Stats/Views/AppSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ApplicationSettings: NSView {
}
processorInfo += "\(systemKit.device.info?.cpu?.physicalCores ?? 0) cores (\(systemKit.device.info?.cpu?.logicalCores ?? 0) threads)"
leftPanel.addSubview(makeInfoRow(
frame: NSRect(x: rowHorizontalPadding, y: rowHeight*3, width: leftPanel.frame.width - (rowHorizontalPadding*1.5), height: rowHeight),
frame: NSRect(x: rowHorizontalPadding, y: rowHeight*3, width: leftPanel.frame.width - (rowHorizontalPadding*1.5), height: rowHeight+8),
title: "Processor",
value: processorInfo
))
Expand Down Expand Up @@ -175,13 +175,13 @@ class ApplicationSettings: NSView {

let deviceImageView: NSImageView = NSImageView(image: systemKit.device.model.icon)
deviceImageView.frame = NSRect(x: (leftPanel.frame.width - 160)/2, y: ((self.deviceInfoHeight - 120)/2) + 22, width: 160, height: 120)

let deviceNameField: NSTextField = TextView(frame: NSRect(x: 0, y: 72, width: leftPanel.frame.width, height: 20))
deviceNameField.alignment = .center
deviceNameField.font = NSFont.systemFont(ofSize: 14, weight: .regular)
deviceNameField.stringValue = systemKit.device.model.name
deviceNameField.isSelectable = true

let osField: NSTextField = TextView(frame: NSRect(x: 0, y: 52, width: leftPanel.frame.width, height: 18))
osField.alignment = .center
osField.font = NSFont.systemFont(ofSize: 12, weight: .regular)
Expand Down

0 comments on commit ec8f7a5

Please sign in to comment.