From e7bc266578d01c05621a227f68cd86948184debe Mon Sep 17 00:00:00 2001 From: mcarare Date: Wed, 17 Jun 2020 14:25:27 +0300 Subject: [PATCH] For #11665: Adjust visual design for delete browsing data screens. --- .../res/layout/checkbox_left_preference.xml | 7 +-- .../delete_browsing_category_checkbox.xml | 52 ------------------- .../res/layout/delete_browsing_data_item.xml | 6 ++- .../res/layout/preference_category_empty.xml | 4 ++ app/src/main/res/values/strings.xml | 2 - .../delete_browsing_data_quit_preferences.xml | 15 +++--- 6 files changed, 20 insertions(+), 66 deletions(-) delete mode 100644 app/src/main/res/layout/delete_browsing_category_checkbox.xml create mode 100644 app/src/main/res/layout/preference_category_empty.xml diff --git a/app/src/main/res/layout/checkbox_left_preference.xml b/app/src/main/res/layout/checkbox_left_preference.xml index 6f9440679..3fc661557 100644 --- a/app/src/main/res/layout/checkbox_left_preference.xml +++ b/app/src/main/res/layout/checkbox_left_preference.xml @@ -1,5 +1,4 @@ - - - - - - - - - - - diff --git a/app/src/main/res/layout/delete_browsing_data_item.xml b/app/src/main/res/layout/delete_browsing_data_item.xml index 78dc94669..4567f295c 100644 --- a/app/src/main/res/layout/delete_browsing_data_item.xml +++ b/app/src/main/res/layout/delete_browsing_data_item.xml @@ -27,6 +27,8 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/library_item_icon_margin_horizontal" android:layout_marginEnd="@dimen/library_item_icon_margin_horizontal" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:clickable="false" android:textAppearance="@style/ListItemTextStyle" app:layout_constraintBottom_toTopOf="@id/subtitle" @@ -42,8 +44,10 @@ android:layout_height="wrap_content" android:layout_marginStart="@dimen/library_item_icon_margin_horizontal" android:layout_marginEnd="@dimen/library_item_icon_margin_horizontal" + android:paddingStart="8dp" + android:paddingEnd="8dp" android:clickable="false" - android:textAppearance="@style/SubtitleTextStyle" + android:textColor="@color/secondary_state_list_text_color" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toEndOf="@id/checkbox" diff --git a/app/src/main/res/layout/preference_category_empty.xml b/app/src/main/res/layout/preference_category_empty.xml new file mode 100644 index 000000000..f0b60c1d1 --- /dev/null +++ b/app/src/main/res/layout/preference_category_empty.xml @@ -0,0 +1,4 @@ + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9b72708d4..408eb6093 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -871,8 +871,6 @@ Automatically deletes browsing data when you select "Quit" from the main menu Automatically deletes browsing data when you select \"Quit\" from the main menu - - Browsing history Quit diff --git a/app/src/main/res/xml/delete_browsing_data_quit_preferences.xml b/app/src/main/res/xml/delete_browsing_data_quit_preferences.xml index 3e09f77b4..698061010 100644 --- a/app/src/main/res/xml/delete_browsing_data_quit_preferences.xml +++ b/app/src/main/res/xml/delete_browsing_data_quit_preferences.xml @@ -5,7 +5,6 @@ + android:layout="@layout/preference_category_empty"> + android:layout="@layout/checkbox_left_preference" + android:title="@string/preferences_delete_browsing_data_browsing_data_title" />