We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6490e12 commit 39b0112Copy full SHA for 39b0112
Pinwheel/Sources/Pinwheel/Components/Button.swift
@@ -196,8 +196,10 @@ public class Button: UIButton {
196
switch style {
197
case .primary:
198
if isEnabled {
199
+ let lightModeTraitCollection = UITraitCollection(userInterfaceStyle: .light)
200
+ let lightModeColor = UIColor.primaryBackground.resolvedColor(with: lightModeTraitCollection)
201
configureButtonColors(
- titleColor: UIColor.dynamicColor(defaultColor: .white, darkModeColor: .white),
202
+ titleColor: lightModeColor,
203
backgroundColor: .actionText
204
)
205
} else {
0 commit comments