-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56fac87
commit d4dcc89
Showing
9 changed files
with
128 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// DisabledButtonStyle.swift | ||
// DeltaClient | ||
// | ||
// Created by Rohan van Klinken on 11/7/21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct DisabledButtonStyle: ButtonStyle { | ||
func makeBody(configuration: Configuration) -> some View { | ||
HStack { | ||
Spacer() | ||
configuration.label.foregroundColor(.gray) | ||
Spacer() | ||
} | ||
.padding(6) | ||
.background(Color.secondary.brightness(-0.4).cornerRadius(4)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// PrimaryButtonStyle.swift | ||
// DeltaClient | ||
// | ||
// Created by Rohan van Klinken on 11/7/21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct PrimaryButtonStyle: ButtonStyle { | ||
func makeBody(configuration: Configuration) -> some View { | ||
HStack { | ||
Spacer() | ||
configuration.label.foregroundColor(.white) | ||
Spacer() | ||
} | ||
.padding(6) | ||
.background(Color.accentColor.brightness(configuration.isPressed ? 0.15 : 0).cornerRadius(4)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// | ||
// SecondaryButtonStyle.swift | ||
// DeltaClient | ||
// | ||
// Created by Rohan van Klinken on 11/7/21. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct SecondaryButtonStyle: ButtonStyle { | ||
func makeBody(configuration: Configuration) -> some View { | ||
HStack { | ||
Spacer() | ||
configuration.label.foregroundColor(.white) | ||
Spacer() | ||
} | ||
.padding(6) | ||
.background(Color.secondary.brightness(configuration.isPressed ? 0 : -0.15).cornerRadius(4)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters