Skip to content

Commit

Permalink
fix(Button): change colors for disabled style
Browse files Browse the repository at this point in the history
  • Loading branch information
jaranaz committed Oct 11, 2023
1 parent 7054e3d commit 1c53613
Show file tree
Hide file tree
Showing 19 changed files with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Sources/MisticaSwiftUI/Components/Button/MisticaButtonStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonPrimary,
backgroundColor: .buttonPrimaryBackground,
borderColor: .buttonPrimaryBackground
backgroundColor: .buttonPrimaryBackground.opacity(0.5),
borderColor: .buttonPrimaryBackground.opacity(0.1)
),
.loading: MisticaButton.StateStyle(
textColor: .textButtonPrimary,
Expand Down Expand Up @@ -78,8 +78,8 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonPrimaryInverse,
backgroundColor: .buttonPrimaryBackgroundInverse,
borderColor: .buttonPrimaryBackgroundInverse
backgroundColor: .buttonPrimaryBackgroundInverse.opacity(0.5),
borderColor: .buttonPrimaryBackgroundInverse.opacity(0.1)
),
.loading: MisticaButton.StateStyle(
textColor: .textButtonPrimaryInverse,
Expand Down Expand Up @@ -112,9 +112,9 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
borderColor: .buttonSecondaryBackgroundSelected
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonSecondary,
textColor: .textButtonSecondary.opacity(0.5),
backgroundColor: .clear,
borderColor: .buttonSecondaryBorder
borderColor: .buttonSecondaryBorder.opacity(0.5)
),
.loading: MisticaButton.StateStyle(
textColor: .textButtonSecondary,
Expand Down Expand Up @@ -147,9 +147,9 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
borderColor: .buttonSecondaryBorderInverseSelected
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonSecondaryInverse,
textColor: .textButtonSecondaryInverse.opacity(0.5),
backgroundColor: .clear,
borderColor: .buttonSecondaryBorderInverse
borderColor: .buttonSecondaryBorderInverse.opacity(0.5)
),
.loading: MisticaButton.StateStyle(
textColor: .textButtonSecondaryInverse,
Expand Down Expand Up @@ -183,8 +183,8 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonPrimary,
backgroundColor: .buttonDangerBackground,
borderColor: .buttonDangerBackground
backgroundColor: .buttonDangerBackground.opacity(0.5),
borderColor: .buttonDangerBackground.opacity(0.1)
),
.loading: MisticaButton.StateStyle(
textColor: .textButtonPrimary,
Expand Down Expand Up @@ -219,7 +219,7 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
borderColor: .clear
),
.disabled: MisticaButton.StateStyle(
textColor: .textLink,
textColor: .textLink.opacity(0.5),
backgroundColor: .clear,
borderColor: .clear
),
Expand Down Expand Up @@ -256,7 +256,7 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
borderColor: .clear
),
.disabled: MisticaButton.StateStyle(
textColor: .textButtonSecondaryInverse,
textColor: .textButtonSecondaryInverse.opacity(0.5),
backgroundColor: .clear,
borderColor: .clear
),
Expand Down Expand Up @@ -292,7 +292,7 @@ public extension ButtonStyle where Self == MisticaButtonStyle {
borderColor: .clear
),
.disabled: MisticaButton.StateStyle(
textColor: .textLinkSnackbar,
textColor: .textLinkSnackbar.opacity(0.5),
backgroundColor: .clear,
borderColor: .clear
),
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1c53613

Please sign in to comment.