tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit d8967aaa23762fe8f261c71cecdef029237e0e04
parent 9b4c500df2996d949619182a72212ba9238b5844
Author: iorgamgabriel <iorgamgabriel@yahoo.com>
Date:   Thu,  9 Oct 2025 16:12:23 +0000

Bug 1987629 - The "+" icon from "Add search engine" should be visible with light theme. r=android-reviewers,007

Differential Revision: https://phabricator.services.mozilla.com/D267564

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/autofill/AutofillSettingFragment.kt | 13+++++++++++++
Mmobile/android/fenix/app/src/main/res/layout/preference_search_add_engine.xml | 3++-
2 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/autofill/AutofillSettingFragment.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/autofill/AutofillSettingFragment.kt @@ -14,6 +14,7 @@ import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.VisibleForTesting +import androidx.core.content.ContextCompat import androidx.lifecycle.lifecycleScope import androidx.navigation.NavController import androidx.navigation.fragment.findNavController @@ -232,6 +233,12 @@ class AutofillSettingFragment : BiometricPromptPreferenceFragment() { getString(R.string.preferences_addresses_manage_addresses) } else { manageAddressesPreference.setIcon(iconsR.drawable.mozac_ic_plus_24) + manageAddressesPreference.icon?.setTint( + ContextCompat.getColor( + requireContext(), + R.color.fx_mobile_icon_color_primary, + ), + ) manageAddressesPreference.title = getString(R.string.preferences_addresses_add_address) } @@ -268,6 +275,12 @@ class AutofillSettingFragment : BiometricPromptPreferenceFragment() { getString(R.string.preferences_credit_cards_manage_saved_cards_2) } else { manageSavedCardsPreference.setIcon(iconsR.drawable.mozac_ic_plus_24) + manageSavedCardsPreference.icon?.setTint( + ContextCompat.getColor( + requireContext(), + R.color.fx_mobile_icon_color_primary, + ), + ) manageSavedCardsPreference.title = getString(R.string.preferences_credit_cards_add_credit_card_2) } diff --git a/mobile/android/fenix/app/src/main/res/layout/preference_search_add_engine.xml b/mobile/android/fenix/app/src/main/res/layout/preference_search_add_engine.xml @@ -22,7 +22,8 @@ app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" - app:srcCompat="@drawable/mozac_ic_plus_24" /> + app:srcCompat="@drawable/mozac_ic_plus_24" + app:tint="@color/fx_mobile_icon_color_primary" /> <TextView android:id="@+id/add_engine_text"