From 4f97989154eaa1882cebb1ff9ae31595836808e1 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Thu, 27 Aug 2020 12:30:27 +1000 Subject: [PATCH] Fixed status bar styling for lollipop devices. Simplified ic_circle_plus drawable. --- res/drawable/ic_circle_plus.xml | 53 +++++++------------ res/layout/conversation_input_panel.xml | 2 + .../colors.xml | 0 .../styles.xml | 0 .../themes.xml | 7 ++- res/values-notnight-v23/themes.xml | 18 +++++++ res/values/themes.xml | 2 +- .../loki/activities/SettingsActivity.kt | 6 +-- 8 files changed, 46 insertions(+), 42 deletions(-) rename res/{values-notnight-v28 => values-notnight-v21}/colors.xml (100%) rename res/{values-notnight-v28 => values-notnight-v21}/styles.xml (100%) rename res/{values-notnight-v28 => values-notnight-v21}/themes.xml (98%) create mode 100644 res/values-notnight-v23/themes.xml diff --git a/res/drawable/ic_circle_plus.xml b/res/drawable/ic_circle_plus.xml index e9db1a80a8..5e243e5296 100644 --- a/res/drawable/ic_circle_plus.xml +++ b/res/drawable/ic_circle_plus.xml @@ -1,36 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + android:width="24dp" + android:height="24dp" + android:viewportWidth="24" + android:viewportHeight="24" + android:tint="?android:colorControlNormal"> + + + diff --git a/res/layout/conversation_input_panel.xml b/res/layout/conversation_input_panel.xml index 9f5048f4ad..b7be0a150a 100644 --- a/res/layout/conversation_input_panel.xml +++ b/res/layout/conversation_input_panel.xml @@ -192,6 +192,8 @@ android:layout_gravity="center" android:background="@drawable/circle_touch_highlight_background" android:src="@drawable/ic_circle_plus" + android:scaleType="fitXY" + android:padding="4dp" android:contentDescription="@string/ConversationActivity_add_attachment" android:nextFocusLeft="@+id/embedded_text_editor" /> diff --git a/res/values-notnight-v28/colors.xml b/res/values-notnight-v21/colors.xml similarity index 100% rename from res/values-notnight-v28/colors.xml rename to res/values-notnight-v21/colors.xml diff --git a/res/values-notnight-v28/styles.xml b/res/values-notnight-v21/styles.xml similarity index 100% rename from res/values-notnight-v28/styles.xml rename to res/values-notnight-v21/styles.xml diff --git a/res/values-notnight-v28/themes.xml b/res/values-notnight-v21/themes.xml similarity index 98% rename from res/values-notnight-v28/themes.xml rename to res/values-notnight-v21/themes.xml index 3de02c6f6a..ea5dff2c87 100644 --- a/res/values-notnight-v28/themes.xml +++ b/res/values-notnight-v21/themes.xml @@ -1,11 +1,8 @@ - + + + \ No newline at end of file diff --git a/res/values/themes.xml b/res/values/themes.xml index 3f3078098c..2857ee3621 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -81,7 +81,7 @@ - +