commit 9d5fff237fdc4a01e46b8477e37d306db2a10d47 parent 4f2744cc6d769ccf42a660a36961af8b5cd5b1fd Author: Gabriel Luong <gabriel.luong@gmail.com> Date: Fri, 21 Nov 2025 07:46:05 +0000 Bug 1998092 - Part 2: Update the preference section header to align with the M3 Acorn Specs r=android-reviewers,007 Figma: https://www.figma.com/design/ctk1Pw1TBxUwVgTTOvjHb4/2025-Android-Fundamentals?node-id=979-26828&m=dev Differential Revision: https://phabricator.services.mozilla.com/D271307 Diffstat:
3 files changed, 12 insertions(+), 9 deletions(-)
diff --git a/mobile/android/fenix/app/src/main/res/layout/studies_section_item.xml b/mobile/android/fenix/app/src/main/res/layout/studies_section_item.xml @@ -5,7 +5,6 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> @@ -24,7 +23,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:gravity="start|center_vertical" - android:textColor="?preferenceSectionHeader" + android:textColor="?colorOnSurfaceVariant" android:background="?android:attr/selectableItemBackground" android:orientation="horizontal" android:layout_marginTop="8dp" diff --git a/mobile/android/fenix/app/src/main/res/values/attrs.xml b/mobile/android/fenix/app/src/main/res/values/attrs.xml @@ -65,7 +65,6 @@ <attr name="accentUsedOnDarkBackground" format="reference" /> <attr name="neutral" format="reference" /> <attr name="neutralFaded" format="reference" /> - <attr name="preferenceSectionHeader" format="reference"/> <!-- Color used in DefaultToolbarMenu for buttons placed at the end of menu items --> <attr name="menuItemButtonTintColor" format="reference"/> diff --git a/mobile/android/fenix/app/src/main/res/values/styles.xml b/mobile/android/fenix/app/src/main/res/values/styles.xml @@ -174,7 +174,6 @@ <item name="mozacPromptLoginEditTextCursorColor">@color/prompt_login_edit_text_cursor_color_normal_theme</item> <item name="awesomeBarIndicatorColor">@color/search_suggestion_indicator_icon_color_normal_theme</item> <item name="awesomeBarIndicatorBookmarkColor">@color/search_suggestion_indicator_icon_bookmark_color_normal_theme</item> - <item name="preferenceSectionHeader">@color/fx_mobile_text_color_accent</item> <item name="selectPromptHeaderTextColor">@color/fx_mobile_text_color_accent</item> <item name="menuItemButtonTintColor">@color/fx_mobile_text_color_accent</item> @@ -474,7 +473,6 @@ <item name="awesomeBarIndicatorColor">@color/photonGreen60</item> <item name="awesomeBarIndicatorBookmarkColor">@color/photonBlue40</item> <item name="selectPromptHeaderTextColor">@color/accent_high_contrast_private_theme</item> - <item name="preferenceSectionHeader">@color/photonViolet40</item> <item name="menuItemButtonTintColor">@color/accent_high_contrast_private_theme</item> <!-- Shared widget colors --> @@ -657,6 +655,15 @@ <item name="android:progressDrawable">@drawable/progress_gradient</item> </style> + <style name="AcornHeadline8"> + <item name="android:textSize">14sp</item> + <item name="fontFamily">sans-serif-medium</item> + <item name="android:letterSpacing">0.02857</item> <!-- 0.4sp / 14sp --> + <item name="android:textFontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item> + <item name="android:fontWeight">@integer/font_weight_medium</item> + <item name="android:lineHeight" tools:targetApi="28">20sp</item> + </style> + <style name="QuickSettingsText"> <item name="android:textColor">@color/state_list_text_color</item> <item name="android:textSize">14sp</item> @@ -771,10 +778,8 @@ <item name="android:lineSpacingExtra">@dimen/about_header_text_line_spacing_extra</item> </style> - <style name="PreferenceSectionHeader" parent="@android:style/Widget.ListView"> - <item name="android:textColor">?preferenceSectionHeader</item> - <item name="android:textFontWeight" tools:ignore="NewApi">@integer/font_weight_medium</item> - <item name="android:fontWeight">@integer/font_weight_medium</item> + <style name="PreferenceSectionHeader" parent="AcornHeadline8"> + <item name="android:textColor">?colorOnSurfaceVariant</item> </style> <style name="EngineTextField" parent="TextAppearance.AppCompat">