Skip to content

Commit

Permalink
Colors adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikBucher12 committed Jan 18, 2024
1 parent 9db4afc commit 53ecbf4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Sources/RichTextKit/Context/RichTextContext+Colors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ public extension RichTextContext {
) {
guard self.color(for: val) != color else { return }
switch val {
case .foreground: userActionPublisher.send(.foregroundColor(color))
case .background: userActionPublisher.send(.backgroundColor(color))
case .strikethrough: userActionPublisher.send(.strikethroughColor(color))
case .stroke: userActionPublisher.send(.strokeColor(color))
case .underline: userActionPublisher.send(.underlineColor(color))
case .foreground: userActionPublisher.send(.foregroundColor(color)); foregroundColor = color
case .background: userActionPublisher.send(.backgroundColor(color)); backgroundColor = color
case .strikethrough: userActionPublisher.send(.strikethroughColor(color)); strikethroughColor = color
case .stroke: userActionPublisher.send(.strokeColor(color)); strokeColor = color
case .underline: userActionPublisher.send(.underlineColor(color)); underlineColor = color
case .undefined: return
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// File.swift
// RichTextCoordinator+ColorSubscriptions.swift
//
//
// Created by Dominik Bucher on 18.01.2024.
Expand Down

0 comments on commit 53ecbf4

Please sign in to comment.