mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed BatteryWidget misspelling
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
import Cocoa
|
||||
|
||||
public class BatterykWidget: WidgetWrapper {
|
||||
public class BatteryWidget: WidgetWrapper {
|
||||
private var additional: String = "none"
|
||||
private var timeFormat: String = "short"
|
||||
private var iconState: Bool = true
|
||||
|
||||
@@ -55,8 +55,8 @@ public enum widget_t: String {
|
||||
preview = SpeedWidget(title: module, config: widgetConfig, preview: true)
|
||||
item = SpeedWidget(title: module, config: widgetConfig, preview: false)
|
||||
case .battery:
|
||||
preview = BatterykWidget(title: module, config: widgetConfig, preview: true)
|
||||
item = BatterykWidget(title: module, config: widgetConfig, preview: false)
|
||||
preview = BatteryWidget(title: module, config: widgetConfig, preview: true)
|
||||
item = BatteryWidget(title: module, config: widgetConfig, preview: false)
|
||||
case .sensors:
|
||||
preview = SensorsWidget(title: module, config: widgetConfig, preview: true)
|
||||
item = SensorsWidget(title: module, config: widgetConfig, preview: false)
|
||||
@@ -97,7 +97,7 @@ public enum widget_t: String {
|
||||
}
|
||||
case is MemoryWidget:
|
||||
width = view.bounds.width + 8 + Constants.Widget.spacing*2
|
||||
case is BatterykWidget:
|
||||
case is BatteryWidget:
|
||||
width = view.bounds.width - 3
|
||||
default: width = view.bounds.width
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class Battery: Module {
|
||||
case let widget as BarChart:
|
||||
widget.setValue([[ColorValue(value.level)]])
|
||||
widget.setColorZones((0.15, 0.3))
|
||||
case let widget as BatterykWidget:
|
||||
case let widget as BatteryWidget:
|
||||
widget.setValue(
|
||||
percentage: value.level,
|
||||
ACStatus: value.powerSource != "Battery Power",
|
||||
|
||||
Reference in New Issue
Block a user