Skip to content

Commit 2e275a2

Browse files
committed
refactor: name of tokens (#521)
Signed-off-by: Pierre-Yves Lapersonne <[email protected]>
1 parent ac2a7fa commit 2e275a2

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

Gemfile.lock

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ GEM
55
base64
66
nkf
77
rexml
8+
abbrev (0.1.2)
89
activesupport (7.2.2.1)
910
base64
1011
benchmark (>= 0.3)
@@ -315,14 +316,14 @@ PLATFORMS
315316
arm-linux-gnu
316317
arm-linux-musl
317318
arm64-darwin
318-
ruby
319319
x86-linux-gnu
320320
x86-linux-musl
321321
x86_64-darwin
322322
x86_64-linux-gnu
323323
x86_64-linux-musl
324324

325325
DEPENDENCIES
326+
abbrev (= 0.1.2)
326327
cocoapods (= 1.16.2)
327328
fastlane (= 2.227.0)
328329
fastlane-plugin-changelog (= 0.16.0)

OUDS/Core/Components/Sources/ColoredSurface/OUDSColoredSurface.swift

-1
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,3 @@ public struct OUDSColoredSurface<Content>: View where Content: View {
5656
content().modifier(OUDSColoredSurfaceModifier(backgroundSurfaceColor: backgroundSurfaceColor))
5757
}
5858
}
59-

OUDS/Core/Components/Sources/ViewModifiers/ColoredSurfaceModifiers/ColoredSurfaceModifier.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,11 @@
1111
// Software description: A SwiftUI components library with code examples for Orange Unified Design System
1212
//
1313

14+
import OUDSTokensSemantic
15+
import SwiftUI
16+
1417
/// `ViewModifier` which helps to apply a predefined color mode on a view.
15-
/// This mode is based on ``OUDSColoredSurface.SurfaceColor`` and defines which tyê of color scheme
18+
/// This mode is based on `OUDSColoredSurface.SurfaceColor` and defines which tyê of color scheme
1619
/// and monochrome must be considered.
1720
public struct OUDSColoredSurfaceModifier: ViewModifier {
1821

OUDS/Core/Components/Sources/ViewModifiers/ColoredSurfaceModifiers/View+ColoredSurface.swift

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// Software description: A SwiftUI components library with code examples for Orange Unified Design System
1212
//
1313

14+
import OUDSTokensSemantic
1415
import SwiftUI
1516

1617
extension View {

OUDS/Core/Themes/Orange/Sources/Values/SemanticTokens/OrangeTheme+ColorModeMultipleSemanticTokens.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ extension OrangeThemeColorModeSemanticTokensProvider: ColorModeMultipleSemanticT
120120
if mode.isEqual(modeOnStatusAccentMuted) { return colors.colorSurfaceStatusAccentMuted }
121121
if mode.isEqual(modeOnStatusInfoEmphasized) { return colors.colorSurfaceStatusInfoEmphasized }
122122
if mode.isEqual(modeOnStatusInfoMuted) { return colors.colorSurfaceStatusInfoMuted }
123-
if mode.isEqual(modeOnStatusNeutralEmphasized) { return colors.colorSurfaceStatusNegativeEmphasized }
124-
if mode.isEqual(modeOnStatusNeutralMuted) { return colors.colorSurfaceStatusNegativeMuted }
125-
if mode.isEqual(modeOnStatusNegativeEmphasized) { return colors.colorSurfaceStatusNeutralEmphasized }
126-
if mode.isEqual(modeOnStatusNegativeMuted) { return colors.colorSurfaceStatusNeutralMuted }
123+
if mode.isEqual(modeOnStatusNeutralEmphasized) { return colors.colorSurfaceStatusNeutralEmphasized }
124+
if mode.isEqual(modeOnStatusNeutralMuted) { return colors.colorSurfaceStatusNeutralMuted }
125+
if mode.isEqual(modeOnStatusNegativeEmphasized) { return colors.colorSurfaceStatusNegativeEmphasized }
126+
if mode.isEqual(modeOnStatusNegativeMuted) { return colors.colorSurfaceStatusNegativeMuted }
127127
if mode.isEqual(modeOnStatusPositiveEmphasized) { return colors.colorSurfaceStatusPositiveEmphasized }
128128
if mode.isEqual(modeOnStatusPositiveMuted) { return colors.colorSurfaceStatusPositiveMuted }
129129
if mode.isEqual(modeOnStatusWarningEmphasized) { return colors.colorSurfaceStatusWarningEmphasized }

0 commit comments

Comments
 (0)