Revision control

Copy as Markdown

<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<resources>
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowContentTransitions">true</item>
<item name="popupMenuStyle">@style/PopupMenu</item>
<item name="android:statusBarColor">@android:color/transparent</item>
</style>
<style name="AppTheme.Transparent" parent="Theme.AppCompat.NoActionBar">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
</style>
<style name="DialogTitleStyle" parent="TextAppearance.AppCompat.Title">
<item name="android:textColor">#FFFFFF</item>
<item name="android:textSize">20sp</item>
<item name="android:fontFamily">@string/font_ember_medium</item>
</style>
<!-- Setting this via alertDialogStyle in AppTheme results in crashes. You need to
explicitly select this via "new AlertDialog.Builder(activity, R.style.DialogStyle)"
We need this style because the accent colour for the MainActivity is purple,
but we want different accents in the dialog. -->
<style name="DialogStyle" parent="Theme.AppCompat.Dialog.Alert">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="colorAccent">#FF00A4DC</item>
<item name="android:windowTitleStyle">@style/DialogTitleStyle</item>
<item name="dialogPreferredPadding">24dp</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
</style>
<style name="OverlayDialogStyle" parent="AppTheme.Transparent">
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
<style name="PopupMenu" parent="@style/Widget.AppCompat.Light.PopupMenu">
<item name="overlapAnchor">true</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
</style>
<style name="NavigationButton" parent="Widget.AppCompat.ImageButton">
<item name="android:layout_width">@dimen/button_size</item>
<item name="android:layout_height">@dimen/button_size</item>
<item name="android:layout_marginEnd">24dp</item>
<item name="android:padding">12dp</item>
<item name="android:background">@drawable/navigation_button_background</item>
<item name="android:tint">@color/photonGrey10_a80p</item>
</style>
<!-- These images won't crop or change their aspect ratio so if you modify the dimensions,
they need to maintain a 16:9 aspect ratio or else there will be dead-space in the ImageView. -->
<style name="PocketVideoMegaTileThumbnail">
<item name="android:layout_width">150dp</item>
<item name="android:layout_height">84.375dp</item>
<item name="android:layout_marginStart">12dp</item>
<item name="android:layout_marginEnd">12dp</item>
<item name="android:src">@drawable/pocket_placeholder</item>
</style>
<style name="PocketVideoButton">
<item name="android:background">@drawable/confirm_button_background</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:minWidth">@dimen/pocket_video_mega_tile_button_width</item>
<item name="android:layout_height">@dimen/pocket_video_mega_tile_button_height</item>
<item name="android:layout_gravity">center</item>
<item name="android:textSize">14sp</item>
<item name="android:textAllCaps">false</item>
<item name="android:textColor">#FFF9F9FA</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="TVOnboardingButton">
<item name="android:background">@drawable/confirm_button_background</item>
<item name="android:layout_width">wrap_content</item>
<item name="android:layout_height">37dp</item>
<item name="android:layout_gravity">center</item>
<item name="android:textSize">14sp</item>
<item name="android:textAllCaps">false</item>
<item name="android:textColor">#FFF9F9FA</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="HintText">
<item name="android:textSize">18sp</item>
<item name="android:textColor">@color/photonGrey10_a80p</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
</style>
<style name="ConfirmButton">
<item name="android:background">@drawable/confirm_button_background</item>
<item name="android:textColor">@color/photonGrey10</item>
<item name="android:fontFamily">@string/font_roboto_regular</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="CancelButton">
<item name="android:background">@drawable/turbo_button_disable</item>
<item name="android:textColor">@color/photonGrey10</item>
<item name="android:fontFamily">@string/font_roboto_regular</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="BannerDismissButton">
<item name="android:background">@drawable/dismiss_button_background</item>
<item name="android:textColor">@color/photonGrey10</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="BannerConfirmButton">
<item name="android:background">@drawable/confirm_button_background</item>
<item name="android:textColor">@color/photonGrey10</item>
<item name="android:fontFamily">@string/font_ember_regular</item>
<item name="android:textAllCaps">false</item>
<item name="android:paddingStart">10dp</item>
<item name="android:paddingEnd">10dp</item>
</style>
<style name="SwitchCompatStyle">
<item name="thumbTint">@color/preferences_switch_selector</item>
<item name="trackTint">@color/preferences_switch_selector</item>
</style>
</resources>