diff --git a/Components/Sources/Components/Components/Editors/Source Editor/WKSourceEditorTextFrameworkMediator.swift b/Components/Sources/Components/Components/Editors/Source Editor/WKSourceEditorTextFrameworkMediator.swift index c414a31bee6..2f856b8e3e6 100644 --- a/Components/Sources/Components/Components/Editors/Source Editor/WKSourceEditorTextFrameworkMediator.swift +++ b/Components/Sources/Components/Components/Editors/Source Editor/WKSourceEditorTextFrameworkMediator.swift @@ -201,6 +201,7 @@ extension WKSourceEditorTextFrameworkMediator: WKSourceEditorStorageDelegate { colors.baseForegroundColor = WKAppEnvironment.current.theme.text colors.orangeForegroundColor = isSyntaxHighlightingEnabled ? WKAppEnvironment.current.theme.editorOrange : WKAppEnvironment.current.theme.text colors.purpleForegroundColor = isSyntaxHighlightingEnabled ? WKAppEnvironment.current.theme.editorPurple : WKAppEnvironment.current.theme.text + colors.greenForegroundColor = isSyntaxHighlightingEnabled ? WKAppEnvironment.current.theme.editorGreen : WKAppEnvironment.current.theme.text return colors } diff --git a/Components/Sources/Components/Style/WKTheme.swift b/Components/Sources/Components/Style/WKTheme.swift index 5be44a40c79..e5751d2af00 100644 --- a/Components/Sources/Components/Style/WKTheme.swift +++ b/Components/Sources/Components/Style/WKTheme.swift @@ -26,6 +26,7 @@ public struct WKTheme: Equatable { public let diffCompareAccent: UIColor public let editorOrange: UIColor public let editorPurple: UIColor + public let editorGreen: UIColor public static let light = WKTheme( name: "Light", @@ -50,7 +51,8 @@ public struct WKTheme: Equatable { keyboardBarSearchFieldBackground: WKColor.gray200, diffCompareAccent: WKColor.orange600, editorOrange: WKColor.orange600, - editorPurple: WKColor.purple600 + editorPurple: WKColor.purple600, + editorGreen: WKColor.green600 ) public static let sepia = WKTheme( @@ -76,7 +78,8 @@ public struct WKTheme: Equatable { keyboardBarSearchFieldBackground: WKColor.gray200, diffCompareAccent: WKColor.orange600, editorOrange: WKColor.orange600, - editorPurple: WKColor.purple600 + editorPurple: WKColor.purple600, + editorGreen: WKColor.green600 ) public static let dark = WKTheme( @@ -102,7 +105,8 @@ public struct WKTheme: Equatable { keyboardBarSearchFieldBackground: WKColor.gray650, diffCompareAccent: WKColor.orange600, editorOrange: WKColor.yellow600, - editorPurple: WKColor.red100 + editorPurple: WKColor.red100, + editorGreen: WKColor.green600 ) public static let black = WKTheme( @@ -128,7 +132,8 @@ public struct WKTheme: Equatable { keyboardBarSearchFieldBackground: WKColor.gray650, diffCompareAccent: WKColor.orange600, editorOrange: WKColor.yellow600, - editorPurple: WKColor.red100 + editorPurple: WKColor.red100, + editorGreen: WKColor.green600 ) } diff --git a/Components/Sources/ComponentsObjC/WKSourceEditorColors.h b/Components/Sources/ComponentsObjC/WKSourceEditorColors.h index b9df307bd49..9b3bf77a05f 100644 --- a/Components/Sources/ComponentsObjC/WKSourceEditorColors.h +++ b/Components/Sources/ComponentsObjC/WKSourceEditorColors.h @@ -6,6 +6,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, strong) UIColor *baseForegroundColor; @property (nonatomic, strong) UIColor *orangeForegroundColor; @property (nonatomic, strong) UIColor *purpleForegroundColor; +@property (nonatomic, strong) UIColor *greenForegroundColor; @end NS_ASSUME_NONNULL_END