Skip to content

Commit

Permalink
Add new green color to WKSourceEditorColors
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed Dec 15, 2023
1 parent 65c4a76 commit 41eb9e2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
13 changes: 9 additions & 4 deletions Components/Sources/Components/Style/WKTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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(
Expand All @@ -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
)

}
1 change: 1 addition & 0 deletions Components/Sources/ComponentsObjC/WKSourceEditorColors.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 41eb9e2

Please sign in to comment.