fixed update and about window in dark mode

This commit is contained in:
Serhiy Mytrovtsiy
2019-07-04 11:30:16 +02:00
parent fa943d69e0
commit 826f1bde09
3 changed files with 5 additions and 7 deletions

View File

@@ -50,6 +50,7 @@ You can download latest version [here](https://github.com/exelban/stats/releases
## What's new
### v1.2.2
- 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

@@ -102,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)"
}
@@ -161,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"/>