Skip to content

Commit 33aa9f1

Browse files
committed
Fix rebase issues
1 parent 1c7d88b commit 33aa9f1

File tree

3 files changed

+19
-23
lines changed

3 files changed

+19
-23
lines changed

android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/compose/textfield/DaxSecureTextField.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ internal fun DaxSecureTextField(
260260
DaxText(
261261
text = error,
262262
style = DuckDuckGoTheme.typography.caption,
263-
color = DuckDuckGoTheme.colors.destructive,
263+
color = DuckDuckGoTheme.textColors.destructive,
264264
)
265265
}
266266
} else {
@@ -469,7 +469,7 @@ private fun DaxSecureTextFieldPreviewBox(
469469
content: @Composable () -> Unit,
470470
) {
471471
DuckDuckGoTheme {
472-
PreviewBox(backgroundColor = DuckDuckGoTheme.colors.background) {
472+
PreviewBox {
473473
content()
474474
}
475475
}

android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/compose/textfield/DaxTextField.kt

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ fun DaxTextField(
155155
DaxText(
156156
text = error,
157157
style = DuckDuckGoTheme.typography.caption,
158-
color = DuckDuckGoTheme.colors.destructive,
158+
color = DuckDuckGoTheme.textColors.destructive,
159159
)
160160
}
161161
} else {
@@ -250,10 +250,6 @@ object DaxTextFieldTrailingIconScope {
250250
)
251251
}
252252
}
253-
254-
@Composable
255-
fun SomeComposable() {
256-
}
257253
}
258254

259255
@Stable
@@ -313,32 +309,32 @@ internal fun daxTextFieldColors(): TextFieldColors = OutlinedTextFieldDefaults.c
313309
unfocusedContainerColor = Transparent,
314310
disabledContainerColor = Transparent,
315311
errorContainerColor = Transparent,
316-
focusedBorderColor = DuckDuckGoTheme.colors.accentBlue,
312+
focusedBorderColor = DuckDuckGoTheme.colors.brand.accentBlue,
317313
unfocusedBorderColor = DuckDuckGoTheme.colors.textField.borders,
318314
disabledBorderColor = DuckDuckGoTheme.colors.textField.borders,
319-
errorBorderColor = DuckDuckGoTheme.colors.destructive,
320-
focusedLabelColor = DuckDuckGoTheme.colors.accentBlue,
315+
errorBorderColor = DuckDuckGoTheme.textColors.destructive,
316+
focusedLabelColor = DuckDuckGoTheme.colors.brand.accentBlue,
321317
unfocusedLabelColor = DuckDuckGoTheme.textColors.secondary,
322318
disabledLabelColor = DuckDuckGoTheme.textColors.secondary,
323-
errorLabelColor = DuckDuckGoTheme.colors.destructive,
319+
errorLabelColor = DuckDuckGoTheme.textColors.destructive,
324320
focusedTrailingIconColor = DuckDuckGoTheme.iconColors.primary,
325321
unfocusedTrailingIconColor = DuckDuckGoTheme.iconColors.primary,
326322
disabledTrailingIconColor = DuckDuckGoTheme.iconColors.primary,
327-
errorTrailingIconColor = DuckDuckGoTheme.colors.destructive,
328-
focusedSupportingTextColor = DuckDuckGoTheme.colors.destructive,
329-
unfocusedSupportingTextColor = DuckDuckGoTheme.colors.destructive,
330-
disabledSupportingTextColor = DuckDuckGoTheme.colors.destructive,
331-
errorSupportingTextColor = DuckDuckGoTheme.colors.destructive,
332-
cursorColor = DuckDuckGoTheme.colors.accentBlue,
333-
errorCursorColor = DuckDuckGoTheme.colors.accentBlue,
323+
errorTrailingIconColor = DuckDuckGoTheme.textColors.destructive,
324+
focusedSupportingTextColor = DuckDuckGoTheme.textColors.destructive,
325+
unfocusedSupportingTextColor = DuckDuckGoTheme.textColors.destructive,
326+
disabledSupportingTextColor = DuckDuckGoTheme.textColors.destructive,
327+
errorSupportingTextColor = DuckDuckGoTheme.textColors.destructive,
328+
cursorColor = DuckDuckGoTheme.colors.brand.accentBlue,
329+
errorCursorColor = DuckDuckGoTheme.textColors.primary,
334330
selectionColors = TextSelectionColors(
335-
handleColor = DuckDuckGoTheme.colors.accentBlue,
336-
backgroundColor = DuckDuckGoTheme.colors.accentBlue.copy(alpha = DaxTextFieldDefaults.ALPHA_DISABLED),
331+
handleColor = DuckDuckGoTheme.colors.brand.accentBlue,
332+
backgroundColor = DuckDuckGoTheme.colors.brand.accentBlue.copy(alpha = DaxTextFieldDefaults.ALPHA_DISABLED),
337333
),
338334
focusedLeadingIconColor = DuckDuckGoTheme.iconColors.primary,
339335
unfocusedLeadingIconColor = DuckDuckGoTheme.iconColors.primary,
340336
disabledLeadingIconColor = DuckDuckGoTheme.iconColors.primary,
341-
errorLeadingIconColor = DuckDuckGoTheme.colors.destructive,
337+
errorLeadingIconColor = DuckDuckGoTheme.textColors.destructive,
342338
focusedPrefixColor = DuckDuckGoTheme.textColors.secondary,
343339
unfocusedPrefixColor = DuckDuckGoTheme.textColors.secondary,
344340
disabledPrefixColor = DuckDuckGoTheme.textColors.secondary,
@@ -539,7 +535,7 @@ private fun DaxTextFieldPreviewBox(
539535
content: @Composable () -> Unit,
540536
) {
541537
DuckDuckGoTheme {
542-
PreviewBox(backgroundColor = DuckDuckGoTheme.colors.background) {
538+
PreviewBox {
543539
content()
544540
}
545541
}

android-design-system/design-system/src/main/java/com/duckduckgo/common/ui/compose/theme/Theme.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object DuckDuckGoTheme {
4141
@ReadOnlyComposable
4242
get() = colors.text
4343

44-
val iconColors: DuckDuckGoIconColors
44+
val iconColors: DuckDuckGoIconsColors
4545
@Composable
4646
@ReadOnlyComposable
4747
get() = colors.icons

0 commit comments

Comments
 (0)