Skip to content

Commit d399348

Browse files
Set default color
1 parent 10fa5d1 commit d399348

File tree

7 files changed

+3
-364
lines changed

7 files changed

+3
-364
lines changed

Demo/iOS/EditorScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private extension EditorScreen {
5959
trailingButtons: {}
6060
) {
6161
var sheet = $0
62-
// sheet.colorPickers = .all
62+
sheet.colorPickers = .all
6363
return sheet
6464
}
6565
}

Sources/RichTextKit/Actions/RichTextAction+Button.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public extension RichTextAction {
4747
.labelStyle(.iconOnly)
4848
.frame(maxHeight: fillVertically ? .infinity : nil)
4949
.contentShape(Rectangle())
50-
.foregroundColor(.systemSpecificTextColor)
5150
}
5251
.keyboardShortcut(for: action)
5352
.disabled(!context.canHandle(action))

Sources/RichTextKit/Alignment/RichTextAlignment+Picker.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public extension RichTextAlignment {
1717
be styled and configured with plain SwiftUI.
1818
*/
1919
struct Picker: View {
20-
@Environment(\.colorScheme) var colorScheme
2120
/**
2221
Create a rich text alignment picker.
2322

Sources/RichTextKit/Styles/RichTextStyle+Button.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extension View {
8686
if cond {
8787
self.foregroundStyle(Color.accentColor)
8888
} else {
89-
self
89+
self.foregroundStyle(color)
9090
}
9191
}
9292
}

Sources/RichTextKit/Styles/RichTextStyle+Toggle.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public extension RichTextStyle {
7777
style.icon
7878
.frame(maxHeight: fillVertically ? .infinity : nil)
7979
}
80+
.foreground(Color(ColorRepresentable.textColor), if: isOn)
8081
.keyboardShortcut(for: style)
8182
.accessibilityLabel(style.title)
8283
}

Sources/RichTextKit/Styles/RichTextStyleButton.swift

Lines changed: 0 additions & 175 deletions
This file was deleted.

0 commit comments

Comments
 (0)