diff options
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift index 75c1829..223d1a5 100644 --- a/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift +++ b/WireGuard/WireGuard/UI/macOS/View/ConfTextStorage.swift @@ -10,6 +10,7 @@ class ConfTextStorage: NSTextStorage { struct TextColorTheme { let plainText: NSColor let sections: NSColor + let keyType: NSColor let key: NSColor let url: NSColor let urlAttribute: NSColor @@ -54,9 +55,21 @@ class ConfTextStorage: NSTextStorage { .font: boldFont ], HighlightKeytype.rawValue: [ - .foregroundColor: theme.key, + .foregroundColor: theme.keyType, .font: boldFont ], + HighlightPublicKey.rawValue: [ + .foregroundColor: theme.key, + .font: defaultFont + ], + HighlightPrivateKey.rawValue: [ + .foregroundColor: theme.key, + .font: defaultFont + ], + HighlightPresharedKey.rawValue: [ + .foregroundColor: theme.key, + .font: defaultFont + ], HighlightIP.rawValue: [ .foregroundColor: theme.url, .font: defaultFont |