From ff9d5df0e0c8ea710dc5bcbe01520566f7d4f43f Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Thu, 15 Nov 2018 11:43:38 -0800 Subject: [PATCH] Dark theme support for emoji variation selector. --- .../emoji_variation_selector_background_dark.xml | 9 +++++++++ res/layout/emoji_variation_selector.xml | 2 +- res/values/attrs.xml | 1 + res/values/themes.xml | 2 ++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 res/drawable/emoji_variation_selector_background_dark.xml diff --git a/res/drawable/emoji_variation_selector_background_dark.xml b/res/drawable/emoji_variation_selector_background_dark.xml new file mode 100644 index 0000000000..b6139e6b5e --- /dev/null +++ b/res/drawable/emoji_variation_selector_background_dark.xml @@ -0,0 +1,9 @@ + + + + + + + \ No newline at end of file diff --git a/res/layout/emoji_variation_selector.xml b/res/layout/emoji_variation_selector.xml index bf5bea46cb..249ed5de65 100644 --- a/res/layout/emoji_variation_selector.xml +++ b/res/layout/emoji_variation_selector.xml @@ -4,6 +4,6 @@ android:orientation="horizontal" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:background="@drawable/emoji_variation_selector_background_light"> + android:background="?attr/emoji_variation_selector_background"> \ No newline at end of file diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 5a2aad97d9..882491504e 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -64,6 +64,7 @@ + diff --git a/res/values/themes.xml b/res/values/themes.xml index 7a118297a2..a625d8cf2a 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -185,6 +185,7 @@ @drawable/emoji_category_symbol_light @drawable/emoji_category_flags_light @drawable/emoji_category_emoticons_light + @drawable/emoji_variation_selector_background_light @color/core_grey_05 @@ -362,6 +363,7 @@ @drawable/emoji_category_symbol_dark @drawable/emoji_category_flags_dark @drawable/emoji_category_emoticons_dark + @drawable/emoji_variation_selector_background_dark @drawable/quick_camera_dark @drawable/ic_mic_white_24dp