Skip to content

Commit bcc9a75

Browse files
authored
Merge #138 -> develop
[mod/#138] color 변경 내용 반영..
2 parents b635f02 + e092e6d commit bcc9a75

File tree

1 file changed

+53
-32
lines changed
  • app/src/main/java/com/paw/key/core/designsystem/theme

1 file changed

+53
-32
lines changed

app/src/main/java/com/paw/key/core/designsystem/theme/Color.kt

Lines changed: 53 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.paw.key.core.designsystem.theme
22

3+
import android.annotation.SuppressLint
34
import androidx.compose.runtime.Stable
45
import androidx.compose.runtime.getValue
56
import androidx.compose.runtime.mutableStateOf
@@ -46,7 +47,9 @@ val System_green = Color(0xFF40C927)
4647

4748
/*------------------------------------------------*/
4849
// Brand
49-
val OpacityPrimary = Color(0x4000D281)
50+
@SuppressLint("InvalidColorHexValue")
51+
val Opacity5Primary = Color(0x0D00D281)
52+
val Opacity25Primary = Color(0x4000D281)
5053

5154
val PrimaryGra1 = Color(0xFFE6FBF2)
5255
val PrimaryGra2 = Color(0xFFCFF8E5)
@@ -61,11 +64,13 @@ val PrimaryGra7 = Color(0xFF007A50)
6164
val Contents = Color(0xFF171717)
6265

6366
// background
64-
val Background1 = Color(0xFFEEEEEE)
65-
val Background2 = Color(0xFFFFFFFF)
67+
val Background = Color(0xFFFFFFFF)
6668

6769
// default
68-
val Default = Color(0xFF9C9C9C)
70+
val DefaultButton = Color(0xFFEEEEEE)
71+
val DefaultMiddle = Color(0xFF9C9C9C)
72+
val DefaultDark = Color(0xFF555555)
73+
6974

7075

7176
@Stable
@@ -104,7 +109,8 @@ class PawKeyColors(
104109
system_green: Color,
105110

106111
/*--------------------*/
107-
opacityPrimary: Color,
112+
opacity5Primary: Color,
113+
opacity25Primary: Color,
108114
primaryGra1: Color,
109115
primaryGra2: Color,
110116
primaryGra3: Color,
@@ -114,9 +120,10 @@ class PawKeyColors(
114120
primaryGra7: Color,
115121
primary: Color,
116122
contents: Color,
117-
background1: Color,
118-
background2: Color,
119-
default: Color,
123+
background: Color,
124+
defaultButton: Color,
125+
defaultMiddle: Color,
126+
defaultDark: Color,
120127
) {
121128
var green50: Color by mutableStateOf(green50)
122129
private set
@@ -180,7 +187,9 @@ class PawKeyColors(
180187
private set
181188

182189
/*----------------------------*/
183-
var opacityPrimary: Color by mutableStateOf(opacityPrimary)
190+
var opacity5Primary: Color by mutableStateOf(opacity5Primary)
191+
private set
192+
var opacity25Primary: Color by mutableStateOf(opacity25Primary)
184193
private set
185194
var primaryGra1: Color by mutableStateOf(primaryGra1)
186195
private set
@@ -200,11 +209,13 @@ class PawKeyColors(
200209
private set
201210
var contents: Color by mutableStateOf(contents)
202211
private set
203-
var background1: Color by mutableStateOf(background1)
212+
var background: Color by mutableStateOf(background)
213+
private set
214+
var defaultButton: Color by mutableStateOf(defaultButton)
204215
private set
205-
var background2: Color by mutableStateOf(background2)
216+
var defaultMiddle: Color by mutableStateOf(defaultMiddle)
206217
private set
207-
var default: Color by mutableStateOf(default)
218+
var defaultDark: Color by mutableStateOf(defaultDark)
208219
private set
209220

210221
fun copy(
@@ -230,7 +241,8 @@ class PawKeyColors(
230241
system_green: Color = this.system_green,
231242

232243
/*----------------------------------*/
233-
opacityPrimary: Color = this.opacityPrimary,
244+
opacity5Primary: Color = this.opacity5Primary,
245+
opacity25Primary: Color = this.opacity25Primary,
234246
primaryGra1: Color = this.primaryGra1,
235247
primaryGra2: Color = this.primaryGra2,
236248
primaryGra3: Color = this.primaryGra3,
@@ -240,9 +252,10 @@ class PawKeyColors(
240252
primaryGra7: Color = this.primaryGra7,
241253
primary: Color = this.primary,
242254
contents: Color = this.contents,
243-
background1: Color = this.background1,
244-
background2: Color = this.background2,
245-
default: Color = this.default,
255+
background: Color = this.background,
256+
defaultButton: Color = this.defaultButton,
257+
defaultMiddle: Color = this.defaultMiddle,
258+
defaultDark: Color = this.defaultDark,
246259

247260
): PawKeyColors = PawKeyColors(
248261

@@ -280,7 +293,8 @@ class PawKeyColors(
280293
system_green = system_green,
281294

282295
/*-------------------------------*/
283-
opacityPrimary = opacityPrimary,
296+
opacity5Primary = opacity5Primary,
297+
opacity25Primary = opacity25Primary,
284298
primaryGra1 = primaryGra1,
285299
primaryGra2 = primaryGra2,
286300
primaryGra3 = primaryGra3,
@@ -290,9 +304,10 @@ class PawKeyColors(
290304
primaryGra7 = primaryGra7,
291305
primary = primary,
292306
contents = contents,
293-
background1 = background1,
294-
background2 = background2,
295-
default = default,
307+
background = background,
308+
defaultButton = defaultButton,
309+
defaultMiddle = defaultMiddle,
310+
defaultDark = defaultDark,
296311
)
297312

298313
fun update(other: PawKeyColors) {
@@ -329,7 +344,8 @@ class PawKeyColors(
329344
system_green = other.system_green
330345

331346
/*-------------------------------*/
332-
opacityPrimary = other.opacityPrimary
347+
opacity5Primary = other.opacity5Primary
348+
opacity25Primary = other.opacity25Primary
333349
primaryGra1 = other.primaryGra1
334350
primaryGra2 = other.primaryGra2
335351
primaryGra3 = other.primaryGra3
@@ -339,9 +355,10 @@ class PawKeyColors(
339355
primaryGra7 = other.primaryGra7
340356
primary = other.primary
341357
contents = other.contents
342-
background1 = other.background1
343-
background2 = other.background2
344-
default = other.default
358+
background = other.background
359+
defaultButton = other.defaultButton
360+
defaultMiddle = other.defaultMiddle
361+
defaultDark = other.defaultDark
345362
}
346363
}
347364

@@ -380,7 +397,8 @@ fun pawKeyColors(
380397
system_green: Color = System_green,
381398

382399
/*---------------------------------*/
383-
opacityPrimary: Color = OpacityPrimary,
400+
opacity5Primary: Color = Opacity5Primary,
401+
opacity25Primary: Color = Opacity25Primary,
384402
primaryGra1: Color = PrimaryGra1,
385403
primaryGra2: Color = PrimaryGra2,
386404
primaryGra3: Color = PrimaryGra3,
@@ -390,9 +408,10 @@ fun pawKeyColors(
390408
primaryGra7: Color = PrimaryGra7,
391409
primary: Color = Primary,
392410
contents: Color = Contents,
393-
background1: Color = Background1,
394-
background2: Color = Background2,
395-
default: Color = Default,
411+
background: Color = Background,
412+
defaultButton: Color = DefaultButton,
413+
defaultMiddle: Color = DefaultMiddle,
414+
defaultDark: Color = DefaultDark,
396415
) = PawKeyColors(
397416
green50 = green50,
398417
green100 = green100,
@@ -428,7 +447,8 @@ fun pawKeyColors(
428447
system_green = system_green,
429448

430449
/*----------------------------*/
431-
opacityPrimary = opacityPrimary,
450+
opacity5Primary = opacity5Primary,
451+
opacity25Primary = opacity25Primary,
432452
primaryGra1 = primaryGra1,
433453
primaryGra2 = primaryGra2,
434454
primaryGra3 = primaryGra3,
@@ -438,7 +458,8 @@ fun pawKeyColors(
438458
primaryGra7 = primaryGra7,
439459
primary = primary,
440460
contents = contents,
441-
background1 = background1,
442-
background2 = background2,
443-
default = default,
461+
background = background,
462+
defaultButton = defaultButton,
463+
defaultMiddle = defaultMiddle,
464+
defaultDark = defaultDark,
444465
)

0 commit comments

Comments
 (0)