Skip to content

Commit

Permalink
More styles to dimmed button.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Mar 20, 2022
1 parent 3097300 commit 74690b7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>watchOS Example.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>2</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,22 @@ extension SPDimmedButton {

#if os(iOS)
@available(iOS 13.0, *)
public static var tintedContentPlainBackground : Colorise {
public static var tintedContentSecondaryBackground : Colorise {
return .init(content: .tint, background: .custom(.secondarySystemBackground))
}

@available(iOS 13.0, *)
public static var tintedContentTertiaryBackground : Colorise {
return .init(content: .tint, background: .custom(.tertiarySystemBackground))
}
#endif

#if os(iOS)
@available(iOS 13.0, *)
public static var tintedContentGroupBackground : Colorise {
public static var tintedContentSecondaryGroupBackground : Colorise {
return .init(content: .tint, background: .custom(.secondarySystemGroupedBackground))
}

@available(iOS 13.0, *)
public static var tintedContentTertiaryGroupBackground : Colorise {
return .init(content: .tint, background: .custom(.tertiarySystemGroupedBackground))
}
#endif
Expand Down

0 comments on commit 74690b7

Please sign in to comment.