Skip to content

Commit

Permalink
refactor: use of multiple type for color semantic tokens (#279)
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
  • Loading branch information
pylapp committed Nov 20, 2024
1 parent b0d8224 commit 282f96d
Show file tree
Hide file tree
Showing 29 changed files with 7,318 additions and 2,159 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- [Library] Improve Multiple-based objects for tokenator values integration ([#279](https://github.com/Orange-OpenSource/ouds-ios/issues/279))
- [Tool] Use `macos-15` runner for GitHub Actions builds ([#296](https://github.com/Orange-OpenSource/ouds-ios/issues/296))

### Fixed
Expand Down
72 changes: 0 additions & 72 deletions OUDS/Core/Components/Sources/Buttons/OUDSButton.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct BorderModifier: ViewModifier {
private let radius: BorderRadiusSemanticToken

/// The color token used for the border
private let color: ColorSemanticToken
private let color: MultipleColorTokens

/// Color to apply depending to the `colorScheme`
private var colorToApply: Color {
Expand All @@ -45,7 +45,7 @@ struct BorderModifier: ViewModifier {
init(_ style: BorderStyleSemanticToken,
_ width: BorderWidthSemanticToken,
_ radius: BorderRadiusSemanticToken,
_ color: ColorSemanticToken) {
_ color: MultipleColorTokens) {
self.style = style
self.width = width
self.radius = radius
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ extension View {
style: BorderStyleSemanticToken,
width: BorderWidthSemanticToken,
radius: BorderRadiusSemanticToken,
color: ColorSemanticToken) -> some View {
color: MultipleColorTokens) -> some View {
self.modifier(BorderModifier(style, width, radius, color))
}
}

This file was deleted.

Loading

0 comments on commit 282f96d

Please sign in to comment.