fix: fixed network label color (#1753)

This commit is contained in:
Serhiy Mytrovtsiy
2024-01-01 14:28:46 +01:00
parent f4b442032d
commit a62151f3ee

View File

@@ -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)
}