diff options
author | Andrej Mihajlov <and@mullvad.net> | 2020-12-02 12:27:39 +0100 |
---|---|---|
committer | Andrej Mihajlov <and@mullvad.net> | 2020-12-03 13:32:24 +0100 |
commit | ec574085703ea1c8b2d4538596961beb910c4382 (patch) | |
tree | 73cf8bbdb74fe5575606664bccd0232ffa911803 /WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift | |
parent | WireGuardKit: Assert that resolutionResults must not contain failures (diff) | |
download | wireguard-apple-ec574085703ea1c8b2d4538596961beb910c4382.tar.xz wireguard-apple-ec574085703ea1c8b2d4538596961beb910c4382.zip |
Move all source files to `Sources/` and rename WireGuardKit targets
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Diffstat (limited to 'WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift')
-rw-r--r-- | WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift b/WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift deleted file mode 100644 index 5229d50..0000000 --- a/WireGuard/WireGuard/UI/macOS/View/ConfTextColorTheme.swift +++ /dev/null @@ -1,47 +0,0 @@ -// SPDX-License-Identifier: MIT -// Copyright © 2018-2019 WireGuard LLC. All Rights Reserved. - -import Cocoa - -protocol ConfTextColorTheme { - static var defaultColor: NSColor { get } - static var colorMap: [UInt32: NSColor] { get } -} - -struct ConfTextAquaColorTheme: ConfTextColorTheme { - static let defaultColor = NSColor(hex: "#000000") - static let colorMap: [UInt32: NSColor] = [ - HighlightSection.rawValue: NSColor(hex: "#326D74"), // Class name in Xcode - HighlightField.rawValue: NSColor(hex: "#9B2393"), // Keywords in Xcode - HighlightPublicKey.rawValue: NSColor(hex: "#643820"), // Preprocessor directives in Xcode - HighlightPrivateKey.rawValue: NSColor(hex: "#643820"), // Preprocessor directives in Xcode - HighlightPresharedKey.rawValue: NSColor(hex: "#643820"), // Preprocessor directives in Xcode - HighlightIP.rawValue: NSColor(hex: "#0E0EFF"), // URLs in Xcode - HighlightHost.rawValue: NSColor(hex: "#0E0EFF"), // URLs in Xcode - HighlightCidr.rawValue: NSColor(hex: "#815F03"), // Attributes in Xcode - HighlightPort.rawValue: NSColor(hex: "#815F03"), // Attributes in Xcode - HighlightMTU.rawValue: NSColor(hex: "#1C00CF"), // Numbers in Xcode - HighlightKeepalive.rawValue: NSColor(hex: "#1C00CF"), // Numbers in Xcode - HighlightComment.rawValue: NSColor(hex: "#536579"), // Comments in Xcode - HighlightError.rawValue: NSColor(hex: "#C41A16") // Strings in Xcode - ] -} - -struct ConfTextDarkAquaColorTheme: ConfTextColorTheme { - static let defaultColor = NSColor(hex: "#FFFFFF") // Plain text in Xcode - static let colorMap: [UInt32: NSColor] = [ - HighlightSection.rawValue: NSColor(hex: "#91D462"), // Class name in Xcode - HighlightField.rawValue: NSColor(hex: "#FC5FA3"), // Keywords in Xcode - HighlightPublicKey.rawValue: NSColor(hex: "#FD8F3F"), // Preprocessor directives in Xcode - HighlightPrivateKey.rawValue: NSColor(hex: "#FD8F3F"), // Preprocessor directives in Xcode - HighlightPresharedKey.rawValue: NSColor(hex: "#FD8F3F"), // Preprocessor directives in Xcode - HighlightIP.rawValue: NSColor(hex: "#53A5FB"), // URLs in Xcode - HighlightHost.rawValue: NSColor(hex: "#53A5FB"), // URLs in Xcode - HighlightCidr.rawValue: NSColor(hex: "#75B492"), // Attributes in Xcode - HighlightPort.rawValue: NSColor(hex: "#75B492"), // Attributes in Xcode - HighlightMTU.rawValue: NSColor(hex: "#9686F5"), // Numbers in Xcode - HighlightKeepalive.rawValue: NSColor(hex: "#9686F5"), // Numbers in Xcode - HighlightComment.rawValue: NSColor(hex: "#6C7986"), // Comments in Xcode - HighlightError.rawValue: NSColor(hex: "#FF4C4C") // Strings in Xcode - ] -} |