aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-01-21 22:13:14 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-01-21 22:13:14 +0100
commitd7a88300f6ceef7f566147298626a65b7669e6ee (patch)
tree57b70088b4147801ee3eaa9f76c312d7841cb16d /WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift
parentAvoid using return in single-line closures (diff)
downloadwireguard-apple-d7a88300f6ceef7f566147298626a65b7669e6ee.tar.xz
wireguard-apple-d7a88300f6ceef7f566147298626a65b7669e6ee.zip
macOS: Make highlighter themes static
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift4
1 files changed, 2 insertions, 2 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift
index 481cbaa..bf0f822 100644
--- a/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift
+++ b/WireGuard/WireGuard/UI/macOS/View/ConfTextView.swift
@@ -46,9 +46,9 @@ class ConfTextView: NSTextView {
private func updateTheme() {
switch effectiveAppearance.bestMatch(from: [.aqua, .darkAqua]) ?? .aqua {
case .darkAqua:
- confTextStorage.updateAttributes(for: ConfTextDarkAquaColorTheme())
+ confTextStorage.updateAttributes(for: ConfTextDarkAquaColorTheme.self)
default:
- confTextStorage.updateAttributes(for: ConfTextAquaColorTheme())
+ confTextStorage.updateAttributes(for: ConfTextAquaColorTheme.self)
}
}