Syntax highlighter color updates

Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
This commit is contained in:
Eric Kuck
2019-01-09 11:24:26 +02:00
committed by Roopesh Chander
parent 13e8c6b178
commit 70848c04de
2 changed files with 16 additions and 3 deletions
@@ -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