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="android:windowContentTransitions">true</item>
11 <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
12 <item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
13 <item name="android:statusBarColor">@android:color/transparent</item>
14 <item name="android:windowBackground">@color/foundation_normal_theme</item>
15 <item name="android:colorEdgeEffect">@color/accent_normal_theme</item>
16 <item name="android:colorAccent">@color/primary_text_normal_theme</item>
17 <item name="android:textColorPrimary">@color/state_list_text_color</item>
18 <item name="android:textColorSecondary">@color/secondary_state_list_text_color</item>
19 <item name="alertDialogStyle">@style/DialogStyleNormal</item>
20 <item name="alertDialogTheme">@style/DialogStyleNormal</item>
21 <item name="android:windowEnableSplitTouch">false</item>
22 <item name="android:splitMotionEvents">false</item>
23 <item name="mozacInputLayoutErrorTextColor"
24 tools:ignore="UnusedResources">@color/destructive_normal_theme</item>
25 <item name="mozacInputLayoutErrorIconColor"
26 tools:ignore="UnusedResources">@color/destructive_normal_theme</item>
28 <!-- Active thumb color & Active track color (30% transparency) -->
29 <item name="colorControlActivated">@color/accent_high_contrast_normal_theme</item>
30 <!-- Inactive thumb color -->
31 <item name="colorSwitchThumbNormal">@color/toggle_off_knob_normal_theme</item>
32 <!-- Inactive track color(30% transparency) -->
33 <item name="android:colorForeground">@color/toggle_off_track_normal_theme</item>
34 <!-- sets the toolbar back button color, radio buttons / unselected checkboxes -->
35 <item name="colorControlNormal">@color/primary_text_normal_theme</item>
37 <!-- Updated color attributes -->
38 <item name="primaryText">@color/primary_text_normal_theme</item>
39 <item name="secondaryText">@color/secondary_text_normal_theme</item>
40 <item name="contrastText">@color/contrast_text_normal_theme</item>
41 <item name="accent">@color/accent_normal_theme</item>
42 <item name="accentBright">@color/accent_bright_normal_theme</item>
43 <item name="aboutLink">@color/about_link_normal_theme</item>
44 <item name="accentHighContrast">@color/accent_high_contrast_normal_theme</item>
45 <item name="foundation">@color/foundation_normal_theme</item>
46 <item name="above">@color/above_normal_theme</item>
47 <item name="inset">@color/inset_normal_theme</item>
48 <item name="tabRing">@color/tab_ring_normal_theme</item>
49 <item name="neutral">@color/neutral_normal_theme</item>
50 <item name="neutralFaded">@color/neutral_faded_normal_theme</item>
51 <item name="shadow">@color/shadow_normal_theme</item>
52 <item name="destructive">@color/destructive_normal_theme</item>
53 <item name="disabled">@color/disabled_normal_theme</item>
54 <item name="scrimStart">@color/scrimStart_normal_theme</item>
55 <item name="scrimEnd">@color/scrimEnd_normal_theme</item>
56 <item name="snackbar">@color/snackbar_normal_theme</item>
57 <item name="accentUsedOnDarkBackground">@color/accent_on_dark_background_normal_theme</item>
58 <item name="toolbarStartGradient">@color/toolbar_start_gradient_normal_theme</item>
59 <item name="toolbarCenterGradient">@color/toolbar_center_gradient_normal_theme</item>
60 <item name="toolbarEndGradient">@color/toolbar_end_gradient_normal_theme</item>
61 <item name="toolbarDivider">@color/toolbar_divider_color_normal_theme</item>
62 <item name="fillLinkFromClipboard">@color/fill_link_from_clipboard_normal_theme</item>
63 <item name="menuCategoryText">@color/menu_category_normal_theme</item>
64 <item name="syncDisconnected">@color/sync_disconnected_icon_fill_normal_theme</item>
65 <item name="syncDisconnectedBackground">@color/sync_disconnected_background_normal_theme</item>
66 <item name="swipeDeleteBackground">@color/swipe_delete_background_normal_theme</item>
69 <item name="fenixLogo">@drawable/ic_logo_wordmark_normal</item>
70 <item name="homeBackground">@color/foundation_normal_theme</item>
71 <item name="bottomBarBackground">@drawable/home_bottom_bar_background</item>
72 <item name="bottomBarBackgroundTop">@drawable/home_bottom_bar_background_top</item>
73 <item name="privateBrowsingButtonBackground">@android:color/transparent</item>
74 <item name="privateBrowsingButtonAccent">@color/primary_text_normal_theme</item>
75 <item name="shieldLottieFile">@raw/shield_json</item>
78 <style name="NormalTheme" parent="NormalThemeBase" />
80 <style name="BaseDialogStyle" parent="Theme.MaterialComponents.Dialog.Alert">
81 <item name="dialogCornerRadius">@dimen/tab_corner_radius</item>
82 <item name="android:colorBackground">?above</item>
83 <item name="colorAccent">?accent</item>
84 <item name="android:textColorPrimary">?primaryText</item>
87 <style name="DialogStyleLight" parent="BaseDialogStyle">
88 <item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleLight</item>
89 <item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleLight</item>
92 <style name="DialogStyleDark" parent="BaseDialogStyle">
93 <item name="buttonBarNegativeButtonStyle">@style/DialogButtonStyleDark</item>
94 <item name="buttonBarPositiveButtonStyle">@style/DialogButtonStyleDark</item>
97 <style name="DialogButtonStyleLight" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
98 <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
99 <item name="android:textColor">?accentBright</item>
100 <item name="fontFamily">@font/metropolis_semibold</item>
103 <style name="DialogButtonStyleDark" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
104 <item name="android:background">?android:attr/selectableItemBackgroundBorderless</item>
105 <item name="android:textColor">?accentHighContrast</item>
106 <item name="fontFamily">@font/metropolis_semibold</item>
109 <style name="DialogStyleNormal" parent="DialogStyleLight"/>
111 <style name="PrivateThemeBase" parent="Theme.MaterialComponents.NoActionBar.Bridge">
112 <!-- Android system styling -->
113 <item name="searchViewStyle">@style/SearchViewStyle</item>
114 <item name="android:windowContentTransitions">true</item>
115 <item name="android:windowAnimationStyle">@style/WindowAnimationTransition</item>
116 <item name="android:progressBarStyleHorizontal">@style/progressBarStyleHorizontal</item>
117 <item name="android:statusBarColor">@android:color/transparent</item>
118 <item name="android:windowBackground">@color/foundation_private_theme</item>
119 <item name="android:colorEdgeEffect">@color/accent_private_theme</item>
120 <item name="android:colorAccent">@color/primary_text_private_theme</item>
121 <item name="colorControlActivated">@color/accent_high_contrast_private_theme</item>
122 <item name="android:textColorPrimary">@color/state_list_text_color</item>
123 <item name="android:textColorSecondary">@color/secondary_state_list_text_color</item>
124 <item name="alertDialogStyle">@style/DialogStyleDark</item>
125 <item name="alertDialogTheme">@style/DialogStyleDark</item>
126 <item name="android:windowEnableSplitTouch">false</item>
127 <item name="android:splitMotionEvents">false</item>
129 <!-- Inactive thumb color -->
130 <item name="colorSwitchThumbNormal">@color/toggle_off_knob_dark_theme</item>
131 <!-- Inactive track color(30% transparency) -->
132 <item name="android:colorForeground">@color/toggle_off_track_dark_theme</item>
133 <!-- sets the toolbar back button color, radio buttons/ unselected checkboxes -->
134 <item name="colorControlNormal">@color/primary_text_private_theme</item>
136 <!-- Updated color attributes -->
137 <item name="primaryText">@color/primary_text_private_theme</item>
138 <item name="secondaryText">@color/secondary_text_private_theme</item>
139 <item name="contrastText">@color/contrast_text_private_theme</item>
140 <item name="accent">@color/accent_private_theme</item>
141 <item name="accentBright">@color/accent_bright_private_theme</item>
142 <item name="aboutLink">@color/about_link_private_theme</item>
143 <item name="accentHighContrast">@color/accent_high_contrast_private_theme</item>
144 <item name="foundation">@color/foundation_private_theme</item>
145 <item name="above">@color/above_private_theme</item>
146 <item name="inset">@color/inset_private_theme</item>
147 <item name="tabRing">@color/tab_ring_private_theme</item>
148 <item name="neutral">@color/neutral_private_theme</item>
149 <item name="neutralFaded">@color/neutral_faded_private_theme</item>
150 <item name="shadow">@color/shadow_private_theme</item>
151 <item name="destructive">@color/destructive_private_theme</item>
152 <item name="disabled">@color/disabled_private_theme</item>
153 <item name="scrimStart">@color/scrimStart_private_theme</item>
154 <item name="scrimEnd">@color/scrimEnd_private_theme</item>
155 <item name="snackbar">@color/snackbar_private_theme</item>
156 <item name="accentUsedOnDarkBackground">@color/accent_on_dark_background_private_theme</item>
157 <item name="toolbarStartGradient">@color/toolbar_start_gradient_private_theme</item>
158 <item name="toolbarCenterGradient">@color/toolbar_center_gradient_private_theme</item>
159 <item name="toolbarEndGradient">@color/toolbar_end_gradient_private_theme</item>
160 <item name="toolbarDivider">@color/toolbar_divider_color_private_theme</item>
161 <item name="fillLinkFromClipboard">@color/fill_link_from_clipboard_private_theme</item>
162 <item name="menuCategoryText">@color/menu_category_private_theme</item>
163 <item name="syncDisconnected">@color/sync_disconnected_icon_fill_private_theme</item>
164 <item name="syncDisconnectedBackground">@color/sync_disconnected_background_private_theme</item>
165 <item name="swipeDeleteBackground">@color/swipe_delete_background_private_theme</item>
168 <item name="fenixLogo">@drawable/ic_logo_wordmark_private</item>
169 <item name="homeBackground">@drawable/private_home_background_gradient</item>
170 <item name="bottomBarBackground">@drawable/private_home_bottom_bar_background_gradient</item>
171 <item name="bottomBarBackgroundTop">@drawable/private_home_bottom_bar_background_gradient_top</item>
172 <item name="privateBrowsingButtonBackground">@color/primary_text_private_theme</item>
173 <item name="privateBrowsingButtonAccent">@color/above_private_theme</item>
174 <item name="shieldLottieFile">@raw/shield_json_dark</item>
177 <style name="Mozac.Browser.Menu" parent="" tools:ignore="UnusedResources">
178 <item name="cardBackgroundColor">?above</item>
181 <style name="PrivateTheme" parent="PrivateThemeBase" />
183 <!-- Fade animation for theme switching -->
184 <style name="WindowAnimationTransition">
185 <item name="android:windowEnterAnimation">@anim/fade_in</item>
186 <item name="android:windowExitAnimation">@anim/fade_out</item>
189 <!-- UI button styling -->
190 <style name="NeutralButton" parent="Widget.MaterialComponents.Button.TextButton">
191 <item name="iconTint">@color/button_text_color</item>
192 <item name="iconPadding">8dp</item>
193 <item name="iconGravity">textStart</item>
194 <item name="android:textAlignment">center</item>
195 <item name="android:background">@drawable/rounded_button_background</item>
196 <item name="android:layout_width">match_parent</item>
197 <item name="android:layout_height">48dp</item>
198 <item name="android:textStyle">bold</item>
199 <item name="android:textAllCaps">false</item>
200 <item name="backgroundTint">@color/grey_button_color</item>
201 <item name="android:textColor">@color/button_text_color</item>
202 <item name="rippleColor">?secondaryText</item>
203 <item name="android:letterSpacing">0</item>
204 <item name="fontFamily">@font/metropolis_semibold</item>
207 <!-- Ideally we should consolidate this with NeutralButton in the future -->
208 <style name="NeutralOnboardingButton" parent="NeutralButton">
209 <item name="backgroundTint">?neutralFaded</item>
210 <item name="android:textColor">?primaryText</item>
213 <style name="DestructiveButton" parent="NeutralButton">
214 <item name="iconTint">@color/destructive_button_text_color</item>
215 <item name="android:textColor">@color/destructive_button_text_color</item>
218 <style name="PositiveButton" parent="NeutralButton">
219 <item name="backgroundTint">?accent</item>
220 <item name="iconTint">?contrastText</item>
221 <item name="android:textColor">?contrastText</item>
224 <style name="search_pill" parent="Widget.AppCompat.Button.Borderless">
225 <item name="android:layout_width">wrap_content</item>
226 <item name="android:layout_height">32dp</item>
227 <item name="android:textAllCaps">false</item>
228 <item name="android:textSize">14sp</item>
229 <item name="android:textColor">@color/toggle_text_color</item>
230 <item name="drawableTint">@color/toggle_text_color</item>
231 <item name="android:layout_gravity">center_vertical</item>
232 <item name="android:gravity">center_vertical</item>
233 <item name="android:singleLine">true</item>
234 <item name="android:paddingStart">8dp</item>
235 <item name="android:paddingEnd">16dp</item>
236 <item name="android:drawablePadding">8dp</item>
237 <item name="android:minWidth">0dp</item>
238 <item name="android:minHeight">0dp</item>
239 <item name="android:background">@drawable/search_pill_drawable_button_background</item>
242 <style name="SitePermissionButton" parent="Widget.AppCompat.Button.Borderless">
243 <item name="android:layout_height">wrap_content</item>
244 <item name="android:layout_width">wrap_content</item>
245 <item name="android:foreground">?android:attr/selectableItemBackground</item>
246 <item name="android:textAllCaps">false</item>
247 <item name="android:textColor">?primaryText</item>
248 <item name="android:paddingStart">24dp</item>
249 <item name="android:paddingEnd">24dp</item>
250 <item name="android:elevation">0dp</item>
251 <item name="fontFamily">@font/metropolis_semibold</item>
254 <style name="SitePermissionCancelButton" parent="SitePermissionButton">
255 <item name="android:textColor">?accent</item>
256 <item name="android:backgroundTint">?foundation</item>
259 <style name="SitePermissionPrimaryButton" parent="SitePermissionButton">
260 <item name="android:background">@drawable/dialog_button_background</item>
261 <item name="android:textColor">?contrastText</item>
262 <item name="android:backgroundTint">?accent</item>
265 <style name="DialogStyleBase" parent="NormalTheme">
266 <item name="android:textAppearance">@style/TextAppearance.AppCompat</item>
267 <item name="android:colorControlNormal">?accentHighContrast</item>
268 <item name="android:colorControlActivated">?accentHighContrast</item>
269 <item name="android:colorControlHighlight">?accentBright</item>
271 <item name="android:windowBackground">@android:color/transparent</item>
272 <item name="android:windowAnimationStyle">@style/Animation.Design.BottomSheetDialog</item>
273 <item name="windowNoTitle">true</item>
274 <item name="android:windowIsFloating">false</item>
275 <item name="android:windowSoftInputMode">adjustResize</item>
276 <item name="windowActionBar">false</item>
277 <item name="android:windowFullscreen">false</item>
278 <item name="android:windowContentOverlay">@null</item>
279 <item name="android:navigationBarColor">@android:color/transparent</item>
280 <item name="android:windowTranslucentNavigation">true</item>
283 <style name="HeaderTextStyle" parent="TextAppearance.MaterialComponents.Subtitle1">
284 <item name="android:textSize">18sp</item>
285 <item name="android:textColor">?primaryText</item>
286 <item name="fontFamily">@font/metropolis_semibold</item>
289 <style name="Header16TextStyle" parent="TextAppearance.MaterialComponents.Body1">
290 <item name="android:textColor">?primaryText</item>
291 <item name="android:textSize">16sp</item>
292 <item name="fontFamily">@font/metropolis_semibold</item>
295 <style name="Header14TextStyle" parent="TextAppearance.MaterialComponents.Body2">
296 <item name="android:textColor">?primaryText</item>
297 <item name="android:textSize">14sp</item>
298 <item name="fontFamily">@font/metropolis_semibold</item>
301 <style name="Header12TextStyle" parent="TextAppearance.MaterialComponents.Body2">
302 <item name="android:textColor">?secondaryText</item>
303 <item name="android:textSize">12sp</item>
304 <item name="android:textStyle">bold</item>
305 <item name="fontFamily">@font/metropolis_semibold</item>
308 <style name="Body14TextStyle" parent="TextAppearance.MaterialComponents.Body2">
309 <item name="android:textColor">?primaryText</item>
310 <item name="android:textSize">14sp</item>
313 <style name="Body16TextStyle" parent="TextAppearance.MaterialComponents.Body1">
314 <item name="android:textColor">?primaryText</item>
317 <style name="SubtitleTextStyle" parent="TextAppearance.MaterialComponents.Body1">
318 <item name="android:textColor">?secondaryText</item>
319 <item name="android:textSize">14sp</item>
320 <item name="fontFamily">@font/metropolis_semibold</item>
323 <style name="Subtitle12TextStyle" parent="TextAppearance.MaterialComponents.Body1">
324 <item name="android:textColor">?secondaryText</item>
325 <item name="android:textSize">12sp</item>
326 <item name="fontFamily">@font/metropolis_semibold</item>
329 <style name="ToolbarTitleTextStyle" parent="HeaderTextStyle">
330 <item name="android:textSize">20sp</item>
331 <item name="fontFamily">@font/metropolis_semibold</item>
334 <style name="ListItemTextStyle" parent="TextAppearance.MaterialComponents.Subtitle1">
335 <item name="android:textColor">?primaryText</item>
338 <style name="progressBarStyleHorizontal" parent="@style/Widget.AppCompat.ProgressBar.Horizontal">
339 <item name="android:progressDrawable">@drawable/progress_gradient</item>
342 <style name="QuickSettingsText">
343 <item name="android:textColor">@color/state_list_text_color</item>
344 <item name="android:textSize">14sp</item>
345 <item name="android:paddingStart">16dp</item>
346 <item name="android:paddingEnd">16dp</item>
347 <item name="android:gravity">center_vertical</item>
348 <item name="android:layout_alignParentStart">true</item>
351 <style name="QuickSettingsSmallText">
352 <item name="android:textColor">?secondaryText</item>
353 <item name="android:textSize">12sp</item>
354 <item name="android:paddingEnd">16dp</item>
355 <item name="android:gravity">top</item>
356 <item name="android:layout_alignParentStart">true</item>
359 <style name="QuickSettingsLargeText">
360 <item name="android:textColor">@color/state_list_text_color</item>
361 <item name="android:textSize">16sp</item>
362 <item name="android:paddingStart">16dp</item>
363 <item name="android:paddingEnd">16dp</item>
364 <item name="android:gravity">center_vertical</item>
365 <item name="android:layout_alignParentStart">true</item>
368 <style name="QuickSettingsLargeText.Icon">
369 <item name="android:drawablePadding">8dp</item>
372 <style name="QuickSettingsText.Icon">
373 <item name="android:drawablePadding">8dp</item>
376 <style name="QuickSettingsText.PermissionItemEnd">
377 <item name="android:layout_alignParentEnd">true</item>
378 <item name="android:paddingEnd">24dp</item>
379 <item name="android:gravity">end|center_vertical</item>
380 <item name="android:background">?android:attr/selectableItemBackground</item>
381 <item name="android:textColor">?accentUsedOnDarkBackground</item>
384 <style name="OnboardingCardLight">
385 <item name="android:background">@drawable/onboarding_card_background_light</item>
386 <item name="android:padding">16dp</item>
387 <item name="android:layout_marginBottom">16dp</item>
390 <style name="OnboardingCardDark" parent="OnboardingCardLight">
391 <item name="android:background">@drawable/onboarding_card_background_dark</item>
394 <style name="SearchShortcutsLabelStyle">
395 <item name="android:fontFamily">Inter UI</item>
396 <item name="android:letterSpacing">0.15</item>
397 <item name="android:textAllCaps">true</item>
398 <item name="android:textColor">?secondaryText</item>
399 <item name="android:textSize">@dimen/search_fragment_shortcuts_label_text_size</item>
400 <item name="android:textStyle">bold</item>
403 <style name="SearchClipboardStyle">
404 <item name="android:ellipsize">end</item>
405 <item name="android:maxLines">1</item>
408 <style name="SearchClipboardTitleStyle" parent="SearchClipboardStyle">
409 <item name="android:textColor">?primaryText</item>
410 <item name="android:textSize">@dimen/search_fragment_clipboard_title_text_size</item>
413 <style name="MetropolisButton">
414 <item name="fontFamily">@font/metropolis_semibold</item>
417 <style name="SearchClipboardUrlStyle" parent="SearchClipboardStyle">
418 <item name="android:textAppearance">@style/Subtitle12TextStyle</item>
419 <item name="android:textColor">?fillLinkFromClipboard</item>
422 <style name="CreateCollectionDialogStyle" parent="DialogStyleBase"/>
423 <style name="CreateShortcutDialogStyle" parent="DialogStyleBase"/>
424 <style name="CreateShortcutDialogButton" parent="Widget.MaterialComponents.Button.TextButton.Dialog">
425 <item name="android:layout_width">wrap_content</item>
426 <item name="android:layout_height">wrap_content</item>
427 <item name="android:minHeight">40dp</item>
428 <item name="android:layout_marginTop">32dp</item>
429 <item name="android:textColor">?accentUsedOnDarkBackground</item>
432 <style name="ShareHeaderTextStyle">
433 <item name="android:singleLine">true</item>
434 <item name="android:textAllCaps">true</item>
435 <item name="android:textColor">?secondaryText</item>
436 <item name="android:textSize">@dimen/share_header_text_size</item>
437 <item name="android:textStyle">bold</item>
438 <item name="fontFamily">@font/metropolis_semibold</item>
441 <style name="FirefoxAccountsDialogStyle" parent="DialogStyleBase">
442 <item name="android:windowBackground">@drawable/scrim_background</item>
443 <item name="android:colorControlHighlight">@android:color/transparent</item>
446 <style name="ShareDialogStyle" parent="DialogStyleBase"/>
448 <style name="AboutItemText" parent="TextAppearance.MaterialComponents.Body2">
449 <item name="android:textColor">?aboutLink</item>
450 <item name="android:textSize">@dimen/about_items_text_size</item>
451 <item name="android:paddingStart">@dimen/about_list_item_text_padding</item>
452 <item name="android:paddingEnd">@dimen/about_list_item_text_padding</item>
453 <item name="android:ellipsize">end</item>
454 <item name="android:maxLines">1</item>
455 <item name="android:minLines">1</item>
456 <item name="fontFamily">sans-serif-medium</item>
459 <style name="AboutHeaderContentText" parent="TextAppearance.MaterialComponents.Subtitle1">
460 <item name="android:textColor">?primaryText</item>
461 <item name="android:lineSpacingExtra">@dimen/about_header_text_line_spacing_extra</item>
464 <style name="EngineTextField" parent="TextAppearance.AppCompat">
465 <item name="android:textSize">14sp</item>
468 <style name="Theme.Transparent" parent="android:Theme">
469 <item name="android:windowIsTranslucent">true</item>
470 <item name="android:windowBackground">@android:color/transparent</item>
471 <item name="android:windowContentOverlay">@null</item>
472 <item name="android:windowNoTitle">true</item>
473 <item name="android:windowIsFloating">true</item>
474 <item name="android:backgroundDimEnabled">false</item>
477 <style name="SearchViewStyle" parent="Widget.AppCompat.SearchView">
478 <item name="searchHintIcon">@null</item>