mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
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:
@@ -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>
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user