mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
feat: added placeholder for RAM and Disk macOS widgets
This commit is contained in:
@@ -16,7 +16,7 @@ import Kit
|
||||
|
||||
public struct Disk_entry: TimelineEntry {
|
||||
public static let kind = "DiskWidget"
|
||||
public static var snapshot: Disk_entry = Disk_entry()
|
||||
public static var snapshot: Disk_entry = Disk_entry(value: drive(size: 494384795648, free: 251460125440))
|
||||
|
||||
public var date: Date {
|
||||
Calendar.current.date(byAdding: .second, value: 5, to: Date())!
|
||||
@@ -103,7 +103,7 @@ public struct DiskWidget: Widget {
|
||||
}
|
||||
}
|
||||
.configurationDisplayName("Disk widget")
|
||||
.description("Displays Disk stats")
|
||||
.description("Displays disk stats")
|
||||
.supportedFamilies([.systemSmall])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user