clean mini widget

- make Colorize works in Mini (text) widget

- now Colorize properly works (line chart/bar chart)
- main color is system color accent
- fix box visibility in dark mode

- fix colors in chart
This commit is contained in:
Serhiy Mytrovtsiy
2020-06-28 18:09:37 +02:00
parent ec8f7a5a73
commit 8669bb0c2b
7 changed files with 30 additions and 25 deletions

View File

@@ -31,6 +31,8 @@
<dict>
<key>Value</key>
<string>0.36,0.28,0.32,0.26</string>
<key>Color</key>
<true/>
</dict>
</dict>
</dict>

View File

@@ -131,7 +131,7 @@ internal class DiskView: NSView {
let width: CGFloat = (view.frame.width * percentage) / 1
self.usedBarSpace = NSView(frame: NSRect(x: 0, y: 0, width: width, height: view.frame.height))
self.usedBarSpace?.wantsLayer = true
self.usedBarSpace?.layer?.backgroundColor = NSColor(red: (26/255.0), green: (126/255.0), blue: (252/255.0), alpha: 1).cgColor
self.usedBarSpace?.layer?.backgroundColor = NSColor.controlAccentColor.cgColor
view.addSubview(self.usedBarSpace!)
self.mainView.addSubview(view)