updated README

This commit is contained in:
Serhiy Mytrovtsiy
2019-07-04 19:30:47 +02:00
3 changed files with 11 additions and 8 deletions

View File

@@ -51,6 +51,7 @@ You can download latest version [here](https://github.com/exelban/stats/releases
### v1.2.2
- fully automated build and sign app process
- fixed update and about visibility window in dark mode
- added name of the indicators in the Chart/Chart with value
- added check for new version on start
- removed charts and charts with value to Disk module

View File

@@ -15,7 +15,7 @@ extension Notification.Name {
let modules: Observable<[Module]> = Observable([CPU(), Memory(), Disk(), Battery(), Network()])
let colors: Observable<Bool> = Observable(true)
let labelForChart: Observable<Bool> = Observable(false)
let labelForChart: Observable<Bool> = Observable(true)
let updater = macAppUpdater(user: "exelban", repo: "stats")
@@ -65,6 +65,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
self.defaults.set(true, forKey: "runAtLogin")
}
if defaults.object(forKey: "labelForChart") == nil {
self.defaults.set(true, forKey: "labelForChart")
labelForChart << true
}
if isRunning {
DistributedNotificationCenter.default().post(name: .killLauncher, object: Bundle.main.bundleIdentifier!)
}
@@ -97,9 +102,7 @@ class AboutVC: NSViewController {
override func awakeFromNib() {
if self.view.layer != nil {
self.view.window?.backgroundColor = .white
self.view.layer?.backgroundColor = .white
self.view.window?.backgroundColor = .windowBackgroundColor
let versionNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
versionLabel.stringValue = "Version \(versionNumber)"
}
@@ -156,8 +159,7 @@ class UpdatesVC: NSViewController {
override func awakeFromNib() {
if self.view.layer != nil {
self.view.window?.backgroundColor = .white
self.view.layer?.backgroundColor = .white
self.view.window?.backgroundColor = .windowBackgroundColor
}
}

View File

@@ -59,8 +59,8 @@
<rect key="frame" x="0.0" y="95" width="252" height="61"/>
<subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="I2K-b4-4R0">
<rect key="frame" x="-2" y="17" width="78" height="44"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="Stats" id="4dC-76-a7n">
<rect key="frame" x="-2" y="17" width="142" height="44"/>
<textFieldCell key="cell" lineBreakMode="clipping" title="macStats" id="4dC-76-a7n">
<font key="font" metaFont="systemThin" size="36"/>
<color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>