mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed network label color (#1753)
This commit is contained in:
@@ -108,11 +108,11 @@ public class NetworkChart: WidgetWrapper {
|
||||
style.alignment = .center
|
||||
let stringAttributes = [
|
||||
NSAttributedString.Key.font: NSFont.systemFont(ofSize: 7, weight: .regular),
|
||||
NSAttributedString.Key.foregroundColor: isDarkMode ? NSColor.white : NSColor.textColor,
|
||||
NSAttributedString.Key.foregroundColor: NSColor.textColor,
|
||||
NSAttributedString.Key.paragraphStyle: style
|
||||
]
|
||||
|
||||
for char in String(title.prefix(3)).uppercased().reversed() {
|
||||
for char in String(self.title.prefix(3)).uppercased().reversed() {
|
||||
let str = NSAttributedString.init(string: "\(char)", attributes: stringAttributes)
|
||||
self.NSLabelCharts.append(str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user