Skip to content

Commit 762b45b

Browse files
committed
feat: Change Semantic.theme from SecondLevel to ThreeLevel
1 parent 1f99886 commit 762b45b

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Sources/Config/Model/ColorConfig.swift

+9-6
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public struct ColorConfig {
7474
public struct Semantic {
7575
/// Theme color
7676
///
77-
/// Provides two levels of theme colors,
77+
/// Provides three levels of theme colors,
7878
/// you can use different levels of theme colors according to the situation.
79-
public let theme: SecondLevel
79+
public let theme: ThreeLevel
8080

8181
/// Text color
8282
public let text: ThreeLevel
@@ -109,7 +109,7 @@ public struct ColorConfig {
109109
public let unavailableText: Color
110110

111111
public init(
112-
theme: SecondLevel,
112+
theme: ThreeLevel,
113113
text: ThreeLevel,
114114
separator: ConvertibleToColor,
115115
emphasis: ThreeLevel,
@@ -175,7 +175,8 @@ extension ColorConfig {
175175
let semanticConfig = Semantic(
176176
theme: .init(
177177
main: UIColor.systemIndigo,
178-
secondary: UIColor.systemIndigo.withAlphaComponent(0.8)
178+
secondary: UIColor.systemIndigo.withAlphaComponent(0.8),
179+
tertiary: UIColor.systemIndigo.withAlphaComponent(0.6)
179180
),
180181
text: .init(
181182
main: UIColor.label,
@@ -217,7 +218,8 @@ extension ColorConfig {
217218
let semanticConfig = Semantic(
218219
theme: .init(
219220
main: UIColor.blue,
220-
secondary: UIColor.blue.withAlphaComponent(0.8)
221+
secondary: UIColor.blue.withAlphaComponent(0.8),
222+
tertiary: UIColor.blue.withAlphaComponent(0.6)
221223
),
222224
text: .init(
223225
main: UIColor.black,
@@ -259,7 +261,8 @@ extension ColorConfig {
259261
let semanticConfig = Semantic(
260262
theme: .init(
261263
main: UIColor.blue,
262-
secondary: UIColor.blue.withAlphaComponent(0.8)
264+
secondary: UIColor.blue.withAlphaComponent(0.8),
265+
tertiary: UIColor.blue.withAlphaComponent(0.6)
263266
),
264267
text: .init(
265268
main: UIColor.black,

0 commit comments

Comments
 (0)