From 0992ad4e5b2248b0979e2e266d4a0af852a8e766 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Tue, 1 Sep 2020 19:22:30 +1000 Subject: [PATCH] Outlined icons for conversation input panel. --- res/drawable/ic_emoji_outline_keyboard.xml | 3 ++- res/drawable/ic_outline_keyboard_24.xml | 10 ++++++++++ res/drawable/ic_outline_photo_camera_24.xml | 10 ++++++++++ res/drawable/ic_sticker_outline_keyboard.xml | 3 ++- res/values-notnight-v21/themes.xml | 12 +++++++++++- res/values-notnight-v23/themes.xml | 11 +---------- res/values/themes.xml | 4 +++- .../securesms/components/emoji/EmojiToggle.java | 8 ++++---- 8 files changed, 43 insertions(+), 18 deletions(-) create mode 100644 res/drawable/ic_outline_keyboard_24.xml create mode 100644 res/drawable/ic_outline_photo_camera_24.xml diff --git a/res/drawable/ic_emoji_outline_keyboard.xml b/res/drawable/ic_emoji_outline_keyboard.xml index 943277e7a3..ee61f62a88 100644 --- a/res/drawable/ic_emoji_outline_keyboard.xml +++ b/res/drawable/ic_emoji_outline_keyboard.xml @@ -2,7 +2,8 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24"> + android:viewportHeight="24" + android:tint="?colorControlNormal"> diff --git a/res/drawable/ic_outline_keyboard_24.xml b/res/drawable/ic_outline_keyboard_24.xml new file mode 100644 index 0000000000..4a2b3a78f1 --- /dev/null +++ b/res/drawable/ic_outline_keyboard_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/drawable/ic_outline_photo_camera_24.xml b/res/drawable/ic_outline_photo_camera_24.xml new file mode 100644 index 0000000000..4e8623f3fa --- /dev/null +++ b/res/drawable/ic_outline_photo_camera_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/drawable/ic_sticker_outline_keyboard.xml b/res/drawable/ic_sticker_outline_keyboard.xml index d2f6e5bb03..b334a9cff3 100644 --- a/res/drawable/ic_sticker_outline_keyboard.xml +++ b/res/drawable/ic_sticker_outline_keyboard.xml @@ -2,7 +2,8 @@ android:width="24dp" android:height="24dp" android:viewportWidth="24" - android:viewportHeight="24"> + android:viewportHeight="24" + android:tint="?colorControlNormal"> diff --git a/res/values-notnight-v21/themes.xml b/res/values-notnight-v21/themes.xml index 4e77f8226d..5805b9cb88 100644 --- a/res/values-notnight-v21/themes.xml +++ b/res/values-notnight-v21/themes.xml @@ -1,7 +1,7 @@ - + + diff --git a/res/values/themes.xml b/res/values/themes.xml index ad8e36edb3..74ea16fb8b 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -83,6 +83,8 @@ @drawable/ic_sticker_filled_keyboard_24 @drawable/ic_baseline_keyboard_24 @drawable/compose_background_dark + + @drawable/ic_baseline_photo_camera_24 @@ -545,7 +547,7 @@ @color/text @color/transparent - @drawable/ic_baseline_photo_camera_24 + @drawable/ic_mic_white_24dp @color/core_grey_25 diff --git a/src/org/thoughtcrime/securesms/components/emoji/EmojiToggle.java b/src/org/thoughtcrime/securesms/components/emoji/EmojiToggle.java index 11199196d6..4d5b85d637 100644 --- a/src/org/thoughtcrime/securesms/components/emoji/EmojiToggle.java +++ b/src/org/thoughtcrime/securesms/components/emoji/EmojiToggle.java @@ -46,11 +46,11 @@ public class EmojiToggle extends AppCompatImageButton implements MediaKeyboard.M } private void initialize() { - int attributes[] = new int[] {R.attr.conversation_emoji_toggle, - R.attr.conversation_sticker_toggle, - R.attr.conversation_keyboard_toggle}; + TypedArray drawables = getContext().obtainStyledAttributes(new int[] { + R.attr.conversation_emoji_toggle, + R.attr.conversation_sticker_toggle, + R.attr.conversation_keyboard_toggle}); - TypedArray drawables = getContext().obtainStyledAttributes(attributes); this.emojiToggle = drawables.getDrawable(0); this.stickerToggle = drawables.getDrawable(1); this.imeToggle = drawables.getDrawable(2);