mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix network dots text visibility;
This commit is contained in:
@@ -19,6 +19,10 @@ class NetworkDotsTextView: NSView, Widget {
|
||||
var downloadValue: NSTextField = NSTextField()
|
||||
var uploadValue: NSTextField = NSTextField()
|
||||
|
||||
override var intrinsicContentSize: CGSize {
|
||||
return CGSize(width: self.frame.size.width, height: self.frame.size.height)
|
||||
}
|
||||
|
||||
override init(frame: NSRect) {
|
||||
self.download = 0
|
||||
self.upload = 0
|
||||
|
||||
@@ -11,6 +11,7 @@ import Cocoa
|
||||
protocol Widget {
|
||||
var name: String { get set } // module name
|
||||
var menus: [NSMenuItem] { get } // module settings
|
||||
var intrinsicContentSize: CGSize { get }
|
||||
|
||||
func start()
|
||||
func redraw()
|
||||
|
||||
Reference in New Issue
Block a user