Skip to content

Commit

Permalink
Merge pull request #102 from adevinta/feature/colors
Browse files Browse the repository at this point in the history
[Colors] Removed Colors.States.backgroundPressed
  • Loading branch information
LouisBorleeAdevinta authored Apr 26, 2023
2 parents a575d7c + a3a59b5 commit c7bff61
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ public protocol ColorsStates {

// MARK: - Base

var backgroundPressed: ColorToken { get }
var surfacePressed: ColorToken { get }
var surfaceInversePressed: ColorToken { get }
var outlinePressed: ColorToken { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public struct ColorsStatesDefault: ColorsStates {
public let secondaryPressed: ColorToken
public let secondaryVariantPressed: ColorToken
public let secondaryContainerPressed: ColorToken
public let backgroundPressed: ColorToken
public let surfacePressed: ColorToken
public let surfaceInversePressed: ColorToken
public let outlinePressed: ColorToken
Expand All @@ -39,7 +38,6 @@ public struct ColorsStatesDefault: ColorsStates {
secondaryPressed: ColorToken,
secondaryVariantPressed: ColorToken,
secondaryContainerPressed: ColorToken,
backgroundPressed: ColorToken,
surfacePressed: ColorToken,
surfaceInversePressed: ColorToken,
outlinePressed: ColorToken,
Expand All @@ -59,7 +57,6 @@ public struct ColorsStatesDefault: ColorsStates {
self.secondaryPressed = secondaryPressed
self.secondaryVariantPressed = secondaryVariantPressed
self.secondaryContainerPressed = secondaryContainerPressed
self.backgroundPressed = backgroundPressed
self.surfacePressed = surfacePressed
self.surfaceInversePressed = surfaceInversePressed
self.outlinePressed = outlinePressed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extension ColorsStatesGeneratedMock {
mock.underlyingSecondaryVariantPressed = ColorTokenGeneratedMock()
mock.underlyingSecondaryContainerPressed = ColorTokenGeneratedMock()

mock.underlyingBackgroundPressed = ColorTokenGeneratedMock()
mock.underlyingSurfacePressed = ColorTokenGeneratedMock()
mock.underlyingSurfaceInversePressed = ColorTokenGeneratedMock()
mock.underlyingOutlinePressed = ColorTokenGeneratedMock()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ struct ColorSectionStatesViewModel: ColorSectionViewModelable {
.init(name: "secondaryPressed", colorToken: color.secondaryPressed),
.init(name: "secondaryVariantPressed", colorToken: color.secondaryVariantPressed),
.init(name: "secondaryContainerPressed", colorToken: color.secondaryContainerPressed),
.init(name: "backgroundPressed", colorToken: color.backgroundPressed),
.init(name: "surfacePressed", colorToken: color.surfacePressed),
.init(name: "surfaceInversePressed", colorToken: color.surfaceInversePressed),
.init(name: "outlinePressed", colorToken: color.outlinePressed),
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion spark/Sources/Theming/Content/SparkColors.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ struct SparkColors: Colors {
secondaryPressed: ColorTokenDefault(named: "secondary-pressed", in: Bundle(for: ClassForBundle.self)),
secondaryVariantPressed: ColorTokenDefault(named: "secondary-variant-pressed", in: Bundle(for: ClassForBundle.self)),
secondaryContainerPressed: ColorTokenDefault(named: "secondary-container-pressed", in: Bundle(for: ClassForBundle.self)),
backgroundPressed: ColorTokenDefault(named: "background-pressed", in: Bundle(for: ClassForBundle.self)),
surfacePressed: ColorTokenDefault(named: "surface-pressed", in: Bundle(for: ClassForBundle.self)),
surfaceInversePressed: ColorTokenDefault(named: "surface-inverse-pressed", in: Bundle(for: ClassForBundle.self)),
outlinePressed: ColorTokenDefault(named: "outline-pressed", in: Bundle(for: ClassForBundle.self)),
Expand Down

0 comments on commit c7bff61

Please sign in to comment.