From 35cde49e8ae1c342fd7b5c5eec61b1deda384fea Mon Sep 17 00:00:00 2001
From: samartnik <30602739+samartnik@users.noreply.github.com>
Date: Thu, 7 May 2026 17:49:33 -0400
Subject: [PATCH] [Android][Custom Search Engines] Design improvements (#36248)
* [Android][Custom Search Engines] Design improvements
* Applied review suggestions
---
.../custom_search_engines/android/BUILD.gn | 5 ++-
.../add_search_engine_button_bg_tint.xml | 2 +-
.../res/color/brave_button_text_color.xml | 2 +-
.../res/drawable/brave_action_button_bg.xml | 12 +++----
.../add_custom_search_engine_footer_item.xml | 4 +--
...custom_search_engine_preference_layout.xml | 33 ++++++++++---------
.../res/layout/custom_search_engine_item.xml | 4 +--
7 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/browser/custom_search_engines/android/BUILD.gn b/browser/custom_search_engines/android/BUILD.gn
index c233319beef..e703ec3f1a7 100644
--- a/browser/custom_search_engines/android/BUILD.gn
+++ b/browser/custom_search_engines/android/BUILD.gn
@@ -64,5 +64,8 @@ android_resources("java_resources") {
"java/res/values/dimens.xml",
"java/res/values/styles.xml",
]
- deps = [ "//brave/build/android:android_brave_strings_grd" ]
+ deps = [
+ "//brave/android/nala:java_resources",
+ "//brave/build/android:android_brave_strings_grd",
+ ]
}
diff --git a/browser/custom_search_engines/android/java/res/color/add_search_engine_button_bg_tint.xml b/browser/custom_search_engines/android/java/res/color/add_search_engine_button_bg_tint.xml
index 96c6773a24d..ecb9a95970e 100644
--- a/browser/custom_search_engines/android/java/res/color/add_search_engine_button_bg_tint.xml
+++ b/browser/custom_search_engines/android/java/res/color/add_search_engine_button_bg_tint.xml
@@ -4,6 +4,6 @@
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at https://mozilla.org/MPL/2.0/. -->
-
+
diff --git a/browser/custom_search_engines/android/java/res/color/brave_button_text_color.xml b/browser/custom_search_engines/android/java/res/color/brave_button_text_color.xml
index bc2cad4b14d..fba2a15890b 100644
--- a/browser/custom_search_engines/android/java/res/color/brave_button_text_color.xml
+++ b/browser/custom_search_engines/android/java/res/color/brave_button_text_color.xml
@@ -5,6 +5,6 @@
You can obtain one at https://mozilla.org/MPL/2.0/.
-->
-
+
diff --git a/browser/custom_search_engines/android/java/res/drawable/brave_action_button_bg.xml b/browser/custom_search_engines/android/java/res/drawable/brave_action_button_bg.xml
index ef34f3284ac..808609c4e71 100644
--- a/browser/custom_search_engines/android/java/res/drawable/brave_action_button_bg.xml
+++ b/browser/custom_search_engines/android/java/res/drawable/brave_action_button_bg.xml
@@ -8,14 +8,10 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
diff --git a/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_footer_item.xml b/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_footer_item.xml
index 8b4a2222110..97f59b9537e 100644
--- a/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_footer_item.xml
+++ b/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_footer_item.xml
@@ -8,8 +8,9 @@
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
- android:minHeight="48dp"
+ android:minHeight="?android:attr/listPreferredItemHeightSmall"
android:paddingHorizontal="16dp"
+ android:paddingVertical="16dp"
android:gravity="center_vertical"
android:background="?attr/selectableItemBackground">
@@ -17,7 +18,6 @@
android:id="@+id/add_custom_search_engine_footer_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:paddingVertical="14dp"
android:text="@string/add_custom_search_engine"
style="@style/AddCustomSearchEngineItemTitle"/>
diff --git a/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_preference_layout.xml b/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_preference_layout.xml
index 1d10135ed4d..9f942a34c20 100644
--- a/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_preference_layout.xml
+++ b/browser/custom_search_engines/android/java/res/layout/add_custom_search_engine_preference_layout.xml
@@ -96,26 +96,15 @@
android:layout_weight="1" />
-
-
+ android:layout_marginHorizontal="24dp"
+ android:layout_marginBottom="24dp"
+ android:orientation="vertical">
+
+
diff --git a/browser/custom_search_engines/android/java/res/layout/custom_search_engine_item.xml b/browser/custom_search_engines/android/java/res/layout/custom_search_engine_item.xml
index d4c34398156..827f94f7617 100644
--- a/browser/custom_search_engines/android/java/res/layout/custom_search_engine_item.xml
+++ b/browser/custom_search_engines/android/java/res/layout/custom_search_engine_item.xml
@@ -15,6 +15,8 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingHorizontal="16dp"
+ android:paddingVertical="16dp"
+ android:gravity="center_vertical"
android:orientation="horizontal">