diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-09-22 22:09:21 +0530 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-09-22 23:54:04 +0200 |
commit | 8b596697b72370ff86995cc2e957badf5c7261f0 (patch) | |
tree | 71f817655ca75a23e52dab3b2891b618e489a793 /ui/src/main/res/values | |
parent | c536bbb7e9105045349af5fc597bae9d5b1001de (diff) |
tv: do theming
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/res/values')
-rw-r--r-- | ui/src/main/res/values/tv_colors.xml | 5 | ||||
-rw-r--r-- | ui/src/main/res/values/tv_styles.xml | 31 |
2 files changed, 36 insertions, 0 deletions
diff --git a/ui/src/main/res/values/tv_colors.xml b/ui/src/main/res/values/tv_colors.xml new file mode 100644 index 00000000..b202d2a2 --- /dev/null +++ b/ui/src/main/res/values/tv_colors.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="tv_primary_color">#ff212121</color> + <color name="tv_card_background">@color/tv_primary_color</color> +</resources> diff --git a/ui/src/main/res/values/tv_styles.xml b/ui/src/main/res/values/tv_styles.xml new file mode 100644 index 00000000..c5477f6a --- /dev/null +++ b/ui/src/main/res/values/tv_styles.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + + <style name="TvTheme" parent="Theme.MaterialComponents.NoActionBar"> + <item name="colorPrimary">@color/tv_primary_color</item> + <item name="colorOnPrimary">#fffafafa</item> + <item name="colorPrimaryDark">@color/tv_primary_color</item> + <item name="colorPrimaryVariant">#ff484848</item> + <item name="colorSecondary">#ff4285f4</item> + <item name="colorOnSecondary">#ff0059c1</item> + <item name="colorSurface">@color/tv_primary_color</item> + <item name="colorOnSurface">#fffafafa</item> + <item name="colorBackground">@color/tv_primary_color</item> + <item name="colorMultiselectActiveBackground">@color/list_multiselect_background</item> + <item name="colorControlNormal">#fffafafa</item> + <item name="elevationOverlayEnabled">false</item> + <item name="android:statusBarColor">@color/tv_primary_color</item> + <item name="android:windowBackground">@color/tv_primary_color</item> + <item name="alertDialogTheme">@style/AppTheme.Dialog</item> + <item name="materialAlertDialogTheme">@style/AppTheme.Dialog</item> + <item name="textInputStyle">@style/TextInputLayoutBase</item> + <item name="materialCardViewStyle">@style/TvTheme.MaterialCardView</item> + </style> + + <style name="TvTheme.MaterialCardView" parent="Widget.MaterialComponents.CardView"> + <item name="cornerRadius">4dp</item> + <item name="cardElevation">8dp</item> + <item name="contentPadding">8dp</item> + <item name="cardBackgroundColor">?attr/elevationOverlayColor</item> + </style> +</resources> |