Skip to content

Commit a5e092c

Browse files
authored
Update force web search icon color correctly in light mode (#6438)
Task/Issue URL: https://app.asana.com/1/137249556945/project/1200204095367872/task/1210861357423900?focus=true ### Description - Sets the force web search icon to `daxColorWhite` when toggled. ### Steps to test this PR - [x] Enable light mode - [x] Toggle the force web search button - [x] Verify that the icon color updates correctly
1 parent 52ee9b0 commit a5e092c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

duckchat/duckchat-impl/src/main/java/com/duckduckgo/duckchat/impl/inputscreen/ui/InputScreenFragment.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,13 @@ class InputScreenFragment : DuckDuckGoFragment(R.layout.fragment_input_screen) {
253253
if (it.forceWebSearchEnabled) {
254254
binding.actionForceWebSearch.backgroundTintList =
255255
ColorStateList.valueOf(requireContext().getColorFromAttr(com.duckduckgo.mobile.android.R.attr.daxColorButtonPrimaryContainer))
256+
binding.actionForceWebSearch.imageTintList =
257+
ColorStateList.valueOf(requireContext().getColorFromAttr(com.duckduckgo.mobile.android.R.attr.daxColorWhite))
256258
} else {
257259
binding.actionForceWebSearch.backgroundTintList =
258260
ColorStateList.valueOf(requireContext().getColorFromAttr(com.duckduckgo.mobile.android.R.attr.daxColorWindow))
261+
binding.actionForceWebSearch.imageTintList =
262+
ColorStateList.valueOf(requireContext().getColorFromAttr(com.duckduckgo.mobile.android.R.attr.daxColorPrimaryIcon))
259263
}
260264
}.launchIn(lifecycleScope)
261265

0 commit comments

Comments
 (0)