File tree Expand file tree Collapse file tree 4 files changed +10
-1
lines changed
flipchatApp/src/main/kotlin/xyz/flipchat/app/theme
components/src/main/kotlin/com/getcode/ui
theme/src/main/kotlin/com/getcode/theme Expand file tree Collapse file tree 4 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ private val colors = ColorScheme(
3939 onSurface = White ,
4040 error = Error ,
4141 errorText = Alert ,
42+ success = FC_Accent ,
4243 textMain = TextMain ,
4344 textSecondary = FC_TextWithPrimary ,
4445 divider = FC_Secondary ,
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ import androidx.compose.ui.Alignment
5454import androidx.compose.ui.Modifier
5555import androidx.compose.ui.draw.alpha
5656import androidx.compose.ui.graphics.Color
57+ import androidx.compose.ui.graphics.ColorFilter
5758import androidx.compose.ui.graphics.Shape
5859import androidx.compose.ui.graphics.lerp
5960import androidx.compose.ui.hapticfeedback.HapticFeedbackType
@@ -224,6 +225,7 @@ fun SlideToConfirm(
224225 Image (
225226 painter = painterResource(id = R .drawable.ic_check),
226227 contentDescription = " " ,
228+ colorFilter = ColorFilter .tint(CodeTheme .colors.success),
227229 modifier = Modifier
228230 .size(CodeTheme .dimens.grid.x4)
229231 .align(Alignment .Center ),
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ fun CodeButton(
138138 Icon (
139139 modifier = Modifier .requiredSize(CodeTheme .dimens.grid.x3),
140140 painter = painterResource(id = R .drawable.ic_check),
141- tint = Color . Unspecified ,
141+ tint = CodeTheme .colors.success ,
142142 contentDescription = " " ,
143143 )
144144 }
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ internal val CodeDefaultColorScheme = ColorScheme(
3737 onSurface = White ,
3838 error = Error ,
3939 errorText = TextError ,
40+ success = Success ,
4041 textMain = TextMain ,
4142 textSecondary = TextSecondary ,
4243 divider = White10 ,
@@ -111,6 +112,7 @@ class ColorScheme(
111112 dividerVariant : Color ,
112113 error : Color ,
113114 errorText : Color ,
115+ success : Color ,
114116 textMain : Color ,
115117 textSecondary : Color ,
116118 trackColor : Color ,
@@ -143,6 +145,8 @@ class ColorScheme(
143145 private set
144146 var errorText by mutableStateOf(errorText)
145147 private set
148+ var success by mutableStateOf(success)
149+ private set
146150 var textMain by mutableStateOf(textMain)
147151 private set
148152 var textSecondary by mutableStateOf(textSecondary)
@@ -179,6 +183,7 @@ class ColorScheme(
179183 onSurface = other.onSurface
180184 error = other.error
181185 errorText = other.errorText
186+ success = other.success
182187 textMain = other.textMain
183188 textSecondary = other.textSecondary
184189 secondary = other.secondary
@@ -206,6 +211,7 @@ class ColorScheme(
206211 onSurface = onSurface,
207212 error = error,
208213 errorText = errorText,
214+ success = success,
209215 textMain = textMain,
210216 textSecondary = textSecondary,
211217 secondary = secondary,
You can’t perform that action at this time.
0 commit comments