mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: renamed Color and Widget to SColor and SWidget to be compatible with SwiftUI
This commit is contained in:
@@ -105,7 +105,7 @@ public class Clock: Module {
|
||||
self.portalView.callback(clocks)
|
||||
})
|
||||
|
||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: Widget) in
|
||||
self.menuBar.widgets.filter{ $0.isActive }.forEach { (w: SWidget) in
|
||||
switch w.item {
|
||||
case let widget as StackWidget: widget.setValues(widgetList)
|
||||
default: break
|
||||
|
||||
@@ -165,7 +165,7 @@ private class ClockView: NSStackView {
|
||||
}
|
||||
|
||||
internal class ClockChart: NSView {
|
||||
private var color: NSColor = Color.systemAccent.additional as! NSColor
|
||||
private var color: NSColor = SColor.systemAccent.additional as! NSColor
|
||||
|
||||
private let calendar = Calendar.current
|
||||
private var hour: Int = 0
|
||||
|
||||
Reference in New Issue
Block a user