We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6eb4c commit 1884f21Copy full SHA for 1884f21
Sources/RichTextKit/Actions/RichTextAction+Button.swift
@@ -18,6 +18,12 @@ public extension RichTextAction {
18
*/
19
struct Button: View {
20
21
+ #if macOS
22
+ private let systemSpecificTextColor: Color? = Color(NSColor.textColor)
23
+ #else
24
+ private let systemSpecificTextColor: Color? = nil
25
+ #endif
26
+
27
/**
28
Create a rich text action button.
29
@@ -48,6 +54,7 @@ public extension RichTextAction {
48
54
.labelStyle(.iconOnly)
49
55
.frame(maxHeight: fillVertically ? .infinity : nil)
50
56
.contentShape(Rectangle())
57
+ .foregroundColor(systemSpecificTextColor)
51
58
}
52
59
.keyboardShortcut(for: action)
53
60
.disabled(!context.canHandle(action))
0 commit comments