[fenix] For https://github.com/mozilla-mobile/fenix/issues/23049 - Consolidate @color...
[gecko.git] / mobile / android / fenix / app / src / main / res / values / styles.xml
blobb36963b0176c43e59676f0cb3f7d2897bac5a2e3
1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3    - License, v. 2.0. If a copy of the MPL was not distributed with this
4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5 <resources xmlns:tools="http://schemas.android.com/tools">
7     <style name="NormalThemeBase" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
8         <!-- Android system styling -->
9         <item name="searchViewStyle">@style/SearchViewStyle</item>
10         <item name="autoCompleteTextViewStyle">@style/AutoCompleteTextViewStyle</item>
11         <item name="android:windowContentTransitions">true</item>
12         <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
13         <item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
14         <item name="android:statusBarColor">@android:color/transparent</item>
15         <item name="android:windowBackground">@color/foundation_normal_theme</item>
16         <item name="android:colorEdgeEffect">@color/accent_normal_theme</item>
17         <item name="android:colorAccent">@color/primary_text_normal_theme</item>
18         <item name="android:textColorPrimary">@color/state_list_text_color</item>
19         <item name="android:textColorSecondary">@color/secondary_state_list_text_color</item>
20         <item name="alertDialogStyle">@style/DialogStyleNormal</item>
21         <item name="alertDialogTheme">@style/DialogStyleNormal</item>
22         <item name="android:windowEnableSplitTouch">false</item>
23         <item name="android:splitMotionEvents">false</item>
24         <item name="bottomSheetDialogTheme">@style/BottomSheet</item>
25         <item name="android:textColorLink">@color/fx_mobile_text_color_accent</item>
27         <item name="mozacInputLayoutErrorTextColor"
28             tools:ignore="UnusedResources">@color/destructive_normal_theme</item>
29         <item name="mozacInputLayoutErrorIconColor"
30             tools:ignore="UnusedResources">@color/destructive_normal_theme</item>
31         <item name="mozacLoginSelectHeaderTextStyle" tools:ignore="UnusedResources">@style/SelectLoginHeaderTextStyle</item>
32         <item name="mozacSelectCreditCardHeaderTextStyle" tools:ignore="UnusedResources">@style/SelectCreditCardHeaderTextStyle</item>
34         <!-- Active thumb color & Active track color (30% transparency) -->
35         <item name="colorControlActivated">@color/accent_high_contrast_normal_theme</item>
36         <!-- Inactive thumb color -->
37         <item name="colorSwitchThumbNormal">@color/toggle_off_knob_normal_theme</item>
38         <!-- Inactive track color(30% transparency) -->
39         <item name="android:colorForeground">@color/toggle_off_track_normal_theme</item>
40         <!-- sets the toolbar back button color, radio buttons / unselected checkboxes -->
41         <item name="colorControlNormal">@color/primary_text_normal_theme</item>
43         <!-- Updated color attributes -->
44         <item name="primaryText">@color/primary_text_normal_theme</item>
45         <item name="secondaryText">@color/secondary_text_normal_theme</item>
46         <item name="contrastText">@color/contrast_text_normal_theme</item>
47         <item name="accent">@color/accent_normal_theme</item>
48         <item name="accentBright">@color/accent_bright_normal_theme</item>
49         <item name="aboutLink">@color/about_link_normal_theme</item>
50         <item name="accentHighContrast">@color/accent_high_contrast_normal_theme</item>
51         <item name="foundation">@color/foundation_normal_theme</item>
52         <item name="above">@color/above_normal_theme</item>
53         <item name="inset">@color/inset_normal_theme</item>
54         <item name="tabRing">@color/tab_ring_normal_theme</item>
55         <item name="neutral">@color/neutral_normal_theme</item>
56         <item name="neutralFaded">@color/neutral_faded_normal_theme</item>
57         <item name="destructive">@color/destructive_normal_theme</item>
58         <item name="disabled">@color/disabled_normal_theme</item>
59         <item name="scrimStart">@color/fx_mobile_layer_color_scrim_start</item>
60         <item name="scrimEnd">@color/fx_mobile_layer_color_scrim_end</item>
61         <item name="snackbar">@color/snackbar_normal_theme</item>
62         <item name="accentUsedOnDarkBackground">@color/accent_on_dark_background_normal_theme</item>
63         <item name="toolbarStartGradient">@color/toolbar_start_gradient_normal_theme</item>
64         <item name="toolbarCenterGradient">@color/toolbar_center_gradient_normal_theme</item>
65         <item name="toolbarEndGradient">@color/toolbar_end_gradient_normal_theme</item>
66         <item name="toolbarDivider">@color/toolbar_divider_color_normal_theme</item>
67         <item name="fillLinkFromClipboard">@color/fill_link_from_clipboard_normal_theme</item>
68         <item name="syncDisconnected">@color/sync_disconnected_icon_fill_normal_theme</item>
69         <item name="syncDisconnectedBackground">@color/sync_disconnected_background_normal_theme</item>
70         <item name="swipeDeleteBackground">@color/swipe_delete_background_normal_theme</item>
71         <item name="onboardingDarkGradientStartBackground">@color/onboarding_card_background_start_gradient_normal_theme</item>
72         <item name="onboardingDarkGradientEndBackground">@color/onboarding_card_background_end_gradient_normal_theme</item>
73         <item name="onboardingSelected">@color/onboarding_illustration_selected_normal_theme</item>
74         <item name="onboardingDeselected">@color/onboarding_illustration_deselected_normal_theme</item>
75         <item name="addOnPrivateBrowsingExteriorCircleBackground">@color/add_on_private_browsing_exterior_circle_background_normal_theme</item>
76         <item name="addOnPrivateBrowsingInteriorIconBackground">@color/add_on_private_browsing_interior_icon_background_normal_theme</item>
77         <item name="mozacPromptLoginEditTextCursorColor">@color/prompt_login_edit_text_cursor_color_normal_theme</item>
78         <item name="awesomeBarIndicatorColor">@color/search_suggestion_indicator_icon_color_normal_theme</item>
79         <item name="awesomeBarIndicatorBookmarkColor">@color/search_suggestion_indicator_icon_bookmark_color_normal_theme</item>
80         <item name="selectLoginHeaderTextColor">@color/select_login_header_normal_theme</item>
81         <item name="selectCreditCardHeaderTextColor">@color/select_credit_card_header_normal_theme</item>
82         <item name="preferenceSectionHeader">@color/preference_section_header_normal_theme</item>
83         <item name="menuItemButtonTintColor">@color/menu_item_button_normal_theme</item>
84         <item name="recentlyUsedShareMenu">@color/recently_used_share_theme</item>
86         <!-- Shared widget colors -->
87         <item name="mozac_primary_text_color">@color/primary_text_normal_theme</item>
88         <item name="mozac_caption_text_color">@color/caption_text_normal_theme</item>
89         <item name="mozac_widget_favicon_background_color">@color/mozac_widget_favicon_background_normal_theme</item>
90         <item name="mozac_widget_favicon_border_color">@color/mozac_widget_favicon_border_normal_theme</item>
92         <item name="tabTrayItemMediaBackground">@color/tab_tray_item_media_background_normal_theme</item>
93         <item name="tabTrayThumbnailItemBackground">@color/tab_tray_item_thumbnail_background_normal_theme</item>
94         <item name="tabTrayThumbnailIcon">@color/tab_tray_item_thumbnail_icon_normal_theme</item>
96         <!-- Tab History -->
97         <item name="tabHistoryItemSelectedBackground">@color/tab_history_item_selected_background_normal_theme</item>
99         <!-- Drawables -->
100         <item name="fenixLogo">@drawable/ic_logo_wordmark_normal</item>
101         <item name="homeBackground">@color/foundation_normal_theme</item>
102         <item name="bottomBarBackground">@drawable/home_bottom_bar_background</item>
103         <item name="bottomBarBackgroundTop">@drawable/home_bottom_bar_background_top</item>
104         <item name="privateBrowsingButtonBackground">@android:color/transparent</item>
105         <item name="privateBrowsingButtonAccent">@color/primary_text_normal_theme</item>
107         <item name="tabCounterTintColor">?primaryText</item>
108     </style>
110     <!-- A theme derived from the normal activity theme, but to look and behave like a dialog -->
111     <style name="DialogActivityTheme" parent="NormalTheme">
112         <item name="android:windowElevation">16dp</item>
113         <item name="android:colorBackground">?attr/colorBackgroundFloating</item>
114         <item name="android:colorBackgroundCacheHint">@null</item>
115         <item name="android:windowFrame">@null</item>
116         <item name="android:windowTitleStyle">@style/RtlOverlay.DialogWindowTitle.AppCompat</item>
117         <item name="android:windowTitleBackgroundStyle">@style/Base.DialogWindowTitleBackground.AppCompat</item>
118         <item name="android:windowIsFloating">true</item>
119         <item name="android:backgroundDimEnabled">true</item>
120         <item name="android:windowContentOverlay">@null</item>
121         <item name="android:windowAnimationStyle">@style/Animation.AppCompat.Dialog</item>
122         <item name="android:windowSoftInputMode">stateUnspecified|adjustPan</item>
124         <item name="windowActionBar">false</item>
125         <item name="windowActionModeOverlay">true</item>
127         <item name="listPreferredItemPaddingLeft">24dip</item>
128         <item name="listPreferredItemPaddingRight">24dip</item>
130         <item name="android:listDivider">@null</item>
132         <item name="android:buttonBarStyle">@style/Widget.AppCompat.ButtonBar.AlertDialog</item>
133         <item name="android:borderlessButtonStyle">@style/Widget.AppCompat.Button.Borderless</item>
134         <item name="android:windowCloseOnTouchOutside">true</item>
135     </style>
137     <style name="NormalTheme" parent="NormalThemeBase" />
139     <style name="BaseDialogStyle" parent="Theme.MaterialComponents.Dialog.Alert">
140         <item name="colorControlNormal">?primaryText</item>
141         <item name="textColorAlertDialogListItem">?primaryText</item>
142         <item name="android:titleTextStyle">@style/HeaderTextStyle</item>
143         <item name="android:windowTitleStyle">@style/HeaderTextStyle</item>
144         <item name="dialogCornerRadius">@dimen/tab_corner_radius</item>
145         <item name="android:colorBackground">?above</item>
146         <item name="colorAccent">?accent</item>
147         <item name="android:textColorPrimary">?primaryText</item>
148     </style>
150     <style name="DialogStyleLight" parent="BaseDialogStyle">
151         <item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleLight</item>
152         <item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleLight</item>
153     </style>
155     <style name="SelectLoginHeaderTextStyle" parent="Header16TextStyle">
156         <item name="android:textColor">?selectLoginHeaderTextColor</item>
157         <item name="drawableTint">?accentHighContrast</item>
158     </style>
160     <style name="SelectCreditCardHeaderTextStyle" parent="Header16TextStyle">
161         <item name="android:textColor">?selectCreditCardHeaderTextColor</item>
162         <item name="drawableTint">?accentHighContrast</item>
163     </style>
165     <style name="Checkable.Colored" parent="Theme.AppCompat">
166         <item name="colorControlActivated">?attr/onboardingSelected</item>
167         <item name="colorControlNormal">?attr/onboardingDeselected</item>
168     </style>
170     <style name="DialogStyleDark" parent="BaseDialogStyle">
171         <item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleDark</item>
172         <item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleDark</item>
173     </style>
175     <style name="DialogButtonStyleLight" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
176         <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
177         <item name="android:textColor">?accentBright</item>
178         <item name="fontFamily">@font/metropolis_semibold</item>
179     </style>
181     <style name="DialogButtonStyleDark" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
182         <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
183         <item name="android:textColor">?accentHighContrast</item>
184         <item name="fontFamily">@font/metropolis_semibold</item>
185     </style>
187     <style name="DialogStyleNormal" parent="DialogStyleLight"/>
189     <style name="PrivateThemeBase" parent="Theme.MaterialComponents.NoActionBar.Bridge">
190         <!-- Android system styling -->
191         <item name="searchViewStyle">@style/SearchViewStyle</item>
192         <item name="autoCompleteTextViewStyle">@style/AutoCompleteTextViewStyle</item>
193         <item name="android:windowContentTransitions">true</item>
194         <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
195         <item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
196         <item name="android:statusBarColor">@android:color/transparent</item>
197         <item name="android:windowBackground">@color/foundation_private_theme</item>
198         <item name="android:colorEdgeEffect">@color/accent_private_theme</item>
199         <item name="android:colorAccent">@color/fx_mobile_private_text_color_primary</item>
200         <item name="colorControlActivated">@color/accent_high_contrast_private_theme</item>
201         <item name="android:textColorPrimary">@color/state_list_text_color</item>
202         <item name="android:textColorSecondary">@color/secondary_state_list_text_color</item>
203         <item name="alertDialogStyle">@style/DialogStyleDark</item>
204         <item name="alertDialogTheme">@style/DialogStyleDark</item>
205         <item name="android:windowEnableSplitTouch">false</item>
206         <item name="android:splitMotionEvents">false</item>
207         <item name="bottomSheetDialogTheme">@style/BottomSheetPrivate</item>
209         <item name="mozacInputLayoutErrorTextColor"
210             tools:ignore="UnusedResources">@color/destructive_private_theme</item>
211         <item name="mozacInputLayoutErrorIconColor"
212             tools:ignore="UnusedResources">@color/destructive_private_theme</item>
213         <item name="mozacLoginSelectHeaderTextStyle" tools:ignore="UnusedResources">@style/SelectLoginHeaderTextStyle</item>
214         <item name="mozacSelectCreditCardHeaderTextStyle" tools:ignore="UnusedResources">@style/SelectCreditCardHeaderTextStyle</item>
216         <!-- Inactive thumb color -->
217         <item name="colorSwitchThumbNormal">@color/toggle_off_knob_dark_theme</item>
218         <!-- Inactive track color(30% transparency) -->
219         <item name="android:colorForeground">@color/toggle_off_track_dark_theme</item>
220         <!-- sets the toolbar back button color, radio buttons/ unselected checkboxes -->
221         <item name="colorControlNormal">@color/fx_mobile_private_text_color_primary</item>
223         <!-- Updated color attributes -->
224         <item name="primaryText">@color/fx_mobile_private_text_color_primary</item>
225         <item name="secondaryText">@color/secondary_text_private_theme</item>
226         <item name="contrastText">@color/contrast_text_private_theme</item>
227         <item name="accent">@color/accent_private_theme</item>
228         <item name="accentBright">@color/accent_bright_private_theme</item>
229         <item name="aboutLink">@color/about_link_private_theme</item>
230         <item name="accentHighContrast">@color/accent_high_contrast_private_theme</item>
231         <item name="foundation">@color/foundation_private_theme</item>
232         <item name="above">@color/above_private_theme</item>
233         <item name="inset">@color/inset_private_theme</item>
234         <item name="tabRing">@color/tab_ring_private_theme</item>
235         <item name="neutral">@color/neutral_private_theme</item>
236         <item name="neutralFaded">@color/neutral_faded_private_theme</item>
237         <item name="destructive">@color/destructive_private_theme</item>
238         <item name="disabled">@color/disabled_private_theme</item>
239         <item name="scrimStart">@color/scrimStart_private_theme</item>
240         <item name="scrimEnd">@color/scrimEnd_private_theme</item>
241         <item name="snackbar">@color/snackbar_private_theme</item>
242         <item name="accentUsedOnDarkBackground">@color/accent_on_dark_background_private_theme</item>
243         <item name="toolbarStartGradient">@color/toolbar_start_gradient_private_theme</item>
244         <item name="toolbarCenterGradient">@color/toolbar_center_gradient_private_theme</item>
245         <item name="toolbarEndGradient">@color/toolbar_end_gradient_private_theme</item>
246         <item name="toolbarDivider">@color/toolbar_divider_color_private_theme</item>
247         <item name="fillLinkFromClipboard">@color/fill_link_from_clipboard_private_theme</item>
248         <item name="syncDisconnected">@color/sync_disconnected_icon_fill_private_theme</item>
249         <item name="syncDisconnectedBackground">@color/sync_disconnected_background_private_theme</item>
250         <item name="swipeDeleteBackground">@color/swipe_delete_background_private_theme</item>
251         <item name="onboardingDarkGradientStartBackground">@color/onboarding_card_background_start_gradient_private_theme</item>
252         <item name="onboardingDarkGradientEndBackground">@color/onboarding_card_background_end_gradient_private_theme</item>
253         <item name="onboardingSelected">@color/onboarding_illustration_selected_private_theme</item>
254         <item name="onboardingDeselected">@color/onboarding_illustration_deselected_private_theme</item>
255         <item name="addOnPrivateBrowsingExteriorCircleBackground">@color/add_on_private_browsing_exterior_circle_background_private_theme</item>
256         <item name="addOnPrivateBrowsingInteriorIconBackground">@color/add_on_private_browsing_interior_icon_background_private_theme</item>
257         <item name="mozacPromptLoginEditTextCursorColor">@color/prompt_login_edit_text_cursor_color_private_theme</item>
258         <item name="awesomeBarIndicatorColor">@color/photonGreen60</item>
259         <item name="awesomeBarIndicatorBookmarkColor">@color/photonBlue40</item>
260         <item name="selectLoginHeaderTextColor">@color/accent_high_contrast_private_theme</item>
261         <item name="selectCreditCardHeaderTextColor">@color/accent_high_contrast_private_theme</item>
262         <item name="preferenceSectionHeader">@color/accent_high_contrast_dark_theme</item>
263         <item name="menuItemButtonTintColor">@color/accent_high_contrast_private_theme</item>
265         <!-- Shared widget colors -->
266         <item name="mozac_primary_text_color">@color/fx_mobile_private_text_color_primary</item>
267         <item name="mozac_caption_text_color">@color/caption_text_private_theme</item>
268         <item name="mozac_widget_favicon_background_color">@color/mozac_widget_favicon_background_private_theme</item>
269         <item name="mozac_widget_favicon_border_color">@color/mozac_widget_favicon_border_private_theme</item>
271         <!-- Tab Tray -->
272         <item name="tabTrayItemMediaBackground">@color/tab_tray_item_media_background_private_theme</item>
273         <item name="tabTrayThumbnailItemBackground">@color/tab_tray_item_thumbnail_background_normal_theme</item>
274         <item name="tabTrayThumbnailIcon">@color/tab_tray_item_thumbnail_icon_normal_theme</item>
276         <!-- Tab History -->
277         <item name="tabHistoryItemSelectedBackground">@color/tab_history_item_selected_background_private_theme</item>
279         <!-- Drawables -->
280         <item name="fenixLogo">@drawable/ic_logo_wordmark_private</item>
281         <item name="homeBackground">@drawable/private_home_background_gradient</item>
282         <item name="bottomBarBackground">@drawable/private_home_bottom_bar_background_gradient</item>
283         <item name="bottomBarBackgroundTop">@drawable/private_home_bottom_bar_background_gradient_top</item>
284         <item name="privateBrowsingButtonBackground">@color/fx_mobile_private_text_color_primary</item>
285         <item name="privateBrowsingButtonAccent">@color/above_private_theme</item>
286     </style>
288     <style name="Mozac.Browser.Menu" parent="" tools:ignore="UnusedResources">
289         <item name="cardBackgroundColor">?above</item>
290     </style>
291     <style name="Mozac.Browser.Menu2" parent="" tools:ignore="UnusedResources">
292         <item name="cardBackgroundColor">?above</item>
293     </style>
295     <style name="PrivateTheme" parent="PrivateThemeBase" />
297     <!-- Fade animation for theme switching -->
298     <style name="WindowAnimationTransition">
299         <item name="android:windowEnterAnimation">@anim/fade_in</item>
300         <item name="android:windowExitAnimation">@anim/fade_out</item>
301     </style>
303     <!-- UI button styling -->
304     <style name="NeutralButton" parent="Widget.MaterialComponents.Button.TextButton">
305         <item name="iconTint">@color/button_text_color</item>
306         <item name="iconPadding">8dp</item>
307         <item name="iconGravity">textStart</item>
308         <item name="android:textAlignment">center</item>
309         <item name="android:layout_width">match_parent</item>
310         <item name="android:radius">4dp</item>
311         <item name="android:layout_height">48dp</item>
312         <item name="android:textStyle">bold</item>
313         <item name="android:textAllCaps">false</item>
314         <item name="backgroundTint">@color/grey_button_color</item>
315         <item name="android:textColor">@color/button_text_color</item>
316         <item name="rippleColor">?secondaryText</item>
317         <item name="android:letterSpacing">0</item>
318         <item name="fontFamily">@font/metropolis_semibold</item>
319     </style>
321     <!-- Ideally we should consolidate this with NeutralButton in the future -->
322     <style name="NeutralOnboardingButton" parent="NeutralButton">
323         <item name="android:background">@drawable/onboarding_padded_background</item>
324         <item name="backgroundTint">?neutralFaded</item>
325         <item name="android:textColor">?primaryText</item>
326     </style>
328     <style name="DestructiveButton" parent="NeutralButton">
329         <item name="iconTint">@color/destructive_normal_theme</item>
330         <item name="android:textColor">@color/destructive_normal_theme</item>
331     </style>
333     <style name="PositiveButton" parent="NeutralButton">
334         <item name="backgroundTint">?accent</item>
335         <item name="iconTint">?contrastText</item>
336         <item name="android:textColor">?contrastText</item>
337     </style>
339     <style name="search_pill" parent="Widget.AppCompat.Button.Borderless">
340         <item name="android:layout_width">wrap_content</item>
341         <item name="android:layout_height">40dp</item>
342         <item name="android:paddingTop">4dp</item>
343         <item name="android:paddingBottom">4dp</item>
344         <item name="android:textAllCaps">false</item>
345         <item name="android:textSize">14sp</item>
346         <item name="android:textColor">@color/toggle_text_color</item>
347         <item name="drawableTint">@color/toggle_text_color</item>
348         <item name="android:layout_gravity">center_vertical</item>
349         <item name="android:gravity">center_vertical</item>
350         <item name="android:singleLine">true</item>
351         <item name="android:paddingStart">8dp</item>
352         <item name="android:paddingEnd">16dp</item>
353         <item name="android:drawablePadding">8dp</item>
354         <item name="android:minWidth">0dp</item>
355         <item name="android:minHeight">0dp</item>
356         <item name="android:background">@drawable/search_pill_drawable_button_background</item>
357     </style>
359     <style name="DialogStyleBase" parent="NormalTheme">
360         <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
361         <item name="android:colorControlNormal">?accentHighContrast</item>
362         <item name="android:colorControlActivated">?accentHighContrast</item>
363         <item name="android:colorControlHighlight">?accentBright</item>
365         <item name="android:windowBackground">@android:color/transparent</item>
366         <item name="android:windowAnimationStyle">@style/Animation.Design.BottomSheetDialog</item>
367         <item name="windowNoTitle">true</item>
368         <item name="android:windowIsFloating">false</item>
369         <item name="android:windowSoftInputMode">adjustResize</item>
370         <item name="windowActionBar">false</item>
371         <item name="android:windowFullscreen">false</item>
372         <item name="android:windowContentOverlay">@null</item>
373         <item name="android:navigationBarColor">@android:color/transparent</item>
374         <item name="android:windowTranslucentNavigation">true</item>
375     </style>
377     <style name="HeaderTextStyle" parent="TextAppearance.MaterialComponents.Subtitle1">
378         <item name="android:textSize">18sp</item>
379         <item name="android:textColor">?primaryText</item>
380         <item name="fontFamily">@font/metropolis_semibold</item>
381     </style>
383     <style name="Header20TextStyle" parent="TextAppearance.MaterialComponents.Body1">
384         <item name="android:textColor">?primaryText</item>
385         <item name="android:textSize">20sp</item>
386         <item name="fontFamily">@font/metropolis_semibold</item>
387     </style>
389     <style name="Header16TextStyle" parent="TextAppearance.MaterialComponents.Body1">
390         <item name="android:textColor">?primaryText</item>
391         <item name="android:textSize">16sp</item>
392         <item name="fontFamily">@font/metropolis_semibold</item>
393     </style>
395     <style name="Header14TextStyle" parent="TextAppearance.MaterialComponents.Body2">
396         <item name="android:textColor">?primaryText</item>
397         <item name="android:textSize">14sp</item>
398         <item name="fontFamily">@font/metropolis_semibold</item>
399     </style>
401     <style name="Body14TextStyle" parent="TextAppearance.MaterialComponents.Body2">
402         <item name="android:textColor">?primaryText</item>
403         <item name="android:textSize">14sp</item>
404     </style>
406     <style name="Body16TextStyle" parent="TextAppearance.MaterialComponents.Body1">
407         <item name="android:textColor">?primaryText</item>
408     </style>
410     <style name="Body12TextStyle" parent="TextAppearance.MaterialComponents.Body1">
411         <item name="android:textColor">?primaryText</item>
412         <item name="android:textSize">12sp</item>
413         <item name="android:textAllCaps">false</item>
414     </style>
416     <style name="Button14TextStyle" parent="TextAppearance.MaterialComponents.Button">
417         <item name="android:textSize">14sp</item>
418         <item name="fontFamily">@font/metropolis</item>
419         <item name="android:textAllCaps">false</item>
420     </style>
422     <style name="Subtitle12TextStyle" parent="TextAppearance.MaterialComponents.Body1">
423         <item name="android:textColor">?secondaryText</item>
424         <item name="android:textSize">12sp</item>
425         <item name="fontFamily">@font/metropolis_semibold</item>
426     </style>
428     <style name="ToolbarTitleTextStyle" parent="HeaderTextStyle">
429         <item name="android:textSize">20sp</item>
430         <item name="fontFamily">@font/metropolis_semibold</item>
431     </style>
433     <style name="ListItemTextStyle" parent="TextAppearance.MaterialComponents.Subtitle1">
434         <item name="android:textColor">?primaryText</item>
435     </style>
437     <style name="progressBarStyleHorizontal" parent="@style/Widget.AppCompat.ProgressBar.Horizontal">
438         <item name="android:progressDrawable">@drawable/progress_gradient</item>
439     </style>
441     <style name="QuickSettingsText">
442         <item name="android:textColor">@color/state_list_text_color</item>
443         <item name="android:textSize">14sp</item>
444         <item name="android:paddingStart">16dp</item>
445         <item name="android:paddingEnd">16dp</item>
446         <item name="android:gravity">center_vertical</item>
447         <item name="android:layout_alignParentStart">true</item>
448     </style>
450     <style name="QuickSettingsSmallText">
451         <item name="android:textColor">?secondaryText</item>
452         <item name="android:textSize">12sp</item>
453         <item name="android:paddingEnd">16dp</item>
454         <item name="android:gravity">top</item>
455         <item name="android:layout_alignParentStart">true</item>
456     </style>
458     <style name="QuickSettingsLargeText">
459         <item name="android:textColor">@color/state_list_text_color</item>
460         <item name="android:textSize">16sp</item>
461         <item name="android:paddingStart">16dp</item>
462         <item name="android:paddingEnd">16dp</item>
463         <item name="android:gravity">center_vertical</item>
464         <item name="android:layout_alignParentStart">true</item>
465     </style>
467     <style name="QuickSettingsLargeText.Icon">
468         <item name="android:drawablePadding">8dp</item>
469         <item name="drawableEndCompat">@drawable/ic_arrowhead_right</item>
470     </style>
472     <style name="QuickSettingsText.Icon">
473         <item name="android:drawablePadding">8dp</item>
474     </style>
476     <style name="QuickSettingsText.PermissionItemEnd">
477         <item name="android:layout_alignParentEnd">true</item>
478         <item name="android:paddingEnd">24dp</item>
479         <item name="android:gravity">end|center_vertical</item>
480         <item name="android:background">?android:attr/selectableItemBackground</item>
481         <item name="android:textColor">?accentUsedOnDarkBackground</item>
482     </style>
484     <style name="OnboardingCardLight">
485         <item name="android:background">@drawable/onboarding_card_background_light</item>
486         <item name="android:layout_marginBottom">16dp</item>
487         <item name="android:elevation">5dp</item>
488     </style>
490     <style name="OnboardingCardLightWithPadding" parent="OnboardingCardLight">
491         <item name="android:padding">16dp</item>
492     </style>
494     <style name="OnboardingCardDark" parent="OnboardingCardLightWithPadding" tools:ignore="UnusedResources">
495         <item name="android:background">@drawable/onboarding_card_background_dark</item>
496         <item name="android:elevation">0dp</item>
497     </style>
499     <style name="SearchClipboardStyle">
500         <item name="android:ellipsize">end</item>
501         <item name="android:maxLines">1</item>
502     </style>
504     <style name="SearchClipboardTitleStyle" parent="SearchClipboardStyle">
505         <item name="android:textColor">?primaryText</item>
506         <item name="android:textSize">@dimen/search_fragment_clipboard_title_text_size</item>
507     </style>
509     <style name="MetropolisButton">
510         <item name="fontFamily">@font/metropolis_semibold</item>
511     </style>
513     <style name="SearchClipboardUrlStyle" parent="SearchClipboardStyle">
514         <item name="android:textAppearance">@style/Subtitle12TextStyle</item>
515         <item name="android:textColor">?fillLinkFromClipboard</item>
516     </style>
518     <style name="CreateCollectionDialogStyle" parent="DialogStyleBase"/>
519     <style name="CreateShortcutDialogStyle" parent="DialogStyleBase"/>
520     <style name="HomeOnboardingDialogStyle" parent="DialogStyleBase"/>
521     <style name="CreateShortcutDialogButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
522         <item name="android:layout_width">wrap_content</item>
523         <item name="android:layout_height">wrap_content</item>
524         <item name="android:minHeight">40dp</item>
525         <item name="android:layout_marginTop">32dp</item>
526         <item name="android:textColor">?accentUsedOnDarkBackground</item>
527         <item name="android:fontFamily">@font/metropolis_semibold</item>
528     </style>
530     <style name="ShareHeaderTextStyle">
531         <item name="android:singleLine">true</item>
532         <item name="android:textAllCaps">true</item>
533         <item name="android:textColor">@color/photonDarkGrey10</item>
534         <item name="android:textSize">@dimen/share_header_text_size</item>
535         <item name="android:textStyle">bold</item>
536         <item name="fontFamily">@font/metropolis_semibold</item>
537     </style>
539     <style name="ShareDialogStyle" parent="DialogStyleBase"/>
541     <style name="AboutItemText" parent="TextAppearance.MaterialComponents.Body2">
542         <item name="android:textColor">?aboutLink</item>
543         <item name="android:textSize">@dimen/about_items_text_size</item>
544         <item name="android:paddingStart">@dimen/about_list_item_text_padding</item>
545         <item name="android:paddingEnd">@dimen/about_list_item_text_padding</item>
546         <item name="android:ellipsize">end</item>
547         <item name="android:maxLines">1</item>
548         <item name="android:minLines">1</item>
549         <item name="fontFamily">sans-serif-medium</item>
550     </style>
552     <style name="AboutHeaderContentText" parent="TextAppearance.MaterialComponents.Subtitle1">
553         <item name="android:textColor">?primaryText</item>
554         <item name="android:lineSpacingExtra">@dimen/about_header_text_line_spacing_extra</item>
555     </style>
557     <style name="PreferenceSectionHeader" parent="@android:style/Widget.ListView">
558         <item name="android:textColor">?preferenceSectionHeader</item>
559         <item name="fontFamily">@font/metropolis_semibold</item>
560     </style>
562     <style name="EngineTextField" parent="TextAppearance.AppCompat">
563         <item name="android:textSize">14sp</item>
564     </style>
566     <style name="Theme.Transparent" parent="android:Theme">
567         <item name="android:windowIsTranslucent">true</item>
568         <item name="android:windowBackground">@android:color/transparent</item>
569         <item name="android:windowContentOverlay">@null</item>
570         <item name="android:windowNoTitle">true</item>
571         <item name="android:windowIsFloating">true</item>
572         <item name="android:backgroundDimEnabled">false</item>
573     </style>
575     <style name="SearchViewStyle" parent="Widget.AppCompat.SearchView">
576         <item name="searchHintIcon">@null</item>
577     </style>
579     <style name="AutoCompleteTextViewStyle" parent="Widget.AppCompat.AutoCompleteTextView">
580         <item name="android:textColorHint">@color/search_view_hint_color</item>
581     </style>
583     <style name="BottomSheetPrivate" parent="@style/BottomSheetBasePrivate" />
585     <style name="BottomSheet" parent="@style/BottomSheetBase" />
587     <style name="BottomSheetBasePrivate" parent="ThemeOverlay.MaterialComponents.BottomSheetDialog">
588         <item name="android:windowIsFloating">false</item>
589     </style>
591     <style name="BottomSheetBase" parent="ThemeOverlay.MaterialComponents.Light.BottomSheetDialog">
592         <item name="android:windowIsFloating">false</item>
593     </style>
595     <!-- Tab Tray does not present a private theme, so it needs to be separate from other bottom sheet styles -->
596     <style name="TabTrayDialogStyleBase" parent="BottomSheetBase">
597         <item name="bottomSheetStyle">@style/BottomSheetModal</item>
598         <item name="android:colorBackground">@color/foundation_normal_theme</item>
599     </style>
601     <style name="TabTrayDialogStyle" parent="TabTrayDialogStyleBase" />
603     <!-- Stuff to make the bottom sheet with round top borders -->
604     <style name="BottomSheetShapeAppearance" parent="ShapeAppearance.MaterialComponents.LargeComponent">
605         <item name="cornerFamily">rounded</item>
606         <item name="cornerSizeTopLeft">16dp</item>
607         <item name="cornerSizeTopRight">16dp</item>
608         <item name="colorSurface">@color/photonPurple50</item>
609         <item name="android:backgroundTint">@color/photonPurple50</item>
610         <item name="android:colorBackground">@color/photonPurple50</item>
611     </style>
613     <style name="BottomSheetModal" parent="Widget.Design.BottomSheet.Modal">
614         <item name="shapeAppearance">@style/BottomSheetShapeAppearance</item>
615         <item name="behavior_fitToContents">false</item>
616         <item name="behavior_skipCollapsed">false</item>
617         <!-- Effectively disable STATE_HALF_EXPANDED by having the tray have a minuscule height in this state -->
618         <item name="behavior_halfExpandedRatio">0.001</item>
619     </style>
621     <style name="TopSite.FaviconCard" parent="Mozac.Widgets.Favicon">
622         <item name="android:layout_width">@dimen/top_sites_card_size</item>
623         <item name="android:layout_height">@dimen/top_sites_card_size</item>
624         <item name="android:padding">@dimen/top_sites_card_padding</item>
625         <item name="cardBackgroundColor">?mozac_widget_favicon_background_color</item>
626         <item name="cardCornerRadius">@dimen/top_sites_card_radius</item>
627         <item name="cardElevation">@dimen/top_sites_card_elevation</item>
628         <item name="strokeColor">@color/top_sites_border_color</item>
629         <item name="strokeWidth">@dimen/top_sites_card_stroke_width</item>
630     </style>
632     <style name="topSiteFavicon">
633         <item name="android:layout_width">@dimen/top_sites_favicon_size</item>
634         <item name="android:layout_height">@dimen/top_sites_favicon_size</item>
635         <item name="android:scaleType">fitCenter</item>
636         <item name="android:layout_gravity">center</item>
637         <item name="shapeAppearanceOverlay">@style/topSiteFaviconShape</item>
638     </style>
640     <style name="topSiteFaviconShape">
641         <item name="cornerFamily">rounded</item>
642         <item name="elevation">@dimen/top_sites_favicon_elevation</item>
643         <item name="cornerSize">@dimen/top_sites_favicon_corner_size</item>
644     </style>
646     <style name="TabTrayFab" parent="Widget.MaterialComponents.ExtendedFloatingActionButton">
647         <item name="elevation">90dp</item>
648         <item name="android:stateListAnimator">@null</item>
649     </style>
651     <style name="SearchDialogStyle">
652         <item name="android:windowAnimationStyle">@null</item>
653         <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
654         <item name="android:colorControlNormal">?accentHighContrast</item>
655         <item name="android:colorControlActivated">?accentHighContrast</item>
656         <item name="android:colorControlHighlight">?accentBright</item>
657         <item name="android:windowBackground">@android:color/transparent</item>
658         <item name="windowNoTitle">true</item>
659         <item name="android:windowIsFloating">false</item>
660         <item name="android:windowSoftInputMode">adjustResize</item>
661         <item name="windowActionBar">false</item>
662         <item name="android:windowFullscreen">false</item>
663         <item name="android:windowContentOverlay">@null</item>
664         <item name="android:navigationBarColor">@android:color/transparent</item>
665         <item name="android:windowTranslucentNavigation">true</item>
666     </style>
667 </resources>