Skip to content

Commit 74690b7

Browse files
committed
More styles to dimmed button.
1 parent 3097300 commit 74690b7

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

Example Apps/SparrowKit.xcodeproj/xcuserdata/ivanvorobei.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>watchOS Example.xcscheme_^#shared#^_</key>
1818
<dict>
1919
<key>orderHint</key>
20-
<integer>1</integer>
20+
<integer>2</integer>
2121
</dict>
2222
</dict>
2323
<key>SuppressBuildableAutocreation</key>

Sources/SparrowKit/UIKit/Classes/Buttons/Dimmed/SPDimmedButton+Colorise.swift

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,22 @@ extension SPDimmedButton {
9797

9898
#if os(iOS)
9999
@available(iOS 13.0, *)
100-
public static var tintedContentPlainBackground : Colorise {
100+
public static var tintedContentSecondaryBackground : Colorise {
101+
return .init(content: .tint, background: .custom(.secondarySystemBackground))
102+
}
103+
104+
@available(iOS 13.0, *)
105+
public static var tintedContentTertiaryBackground : Colorise {
101106
return .init(content: .tint, background: .custom(.tertiarySystemBackground))
102107
}
103-
#endif
104108

105-
#if os(iOS)
106109
@available(iOS 13.0, *)
107-
public static var tintedContentGroupBackground : Colorise {
110+
public static var tintedContentSecondaryGroupBackground : Colorise {
111+
return .init(content: .tint, background: .custom(.secondarySystemGroupedBackground))
112+
}
113+
114+
@available(iOS 13.0, *)
115+
public static var tintedContentTertiaryGroupBackground : Colorise {
108116
return .init(content: .tint, background: .custom(.tertiarySystemGroupedBackground))
109117
}
110118
#endif

0 commit comments

Comments
 (0)