From fef7154cb48b39bb4dafc49ebd8eced1bf8ed7f1 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Thu, 20 Aug 2020 20:36:56 +1000 Subject: [PATCH] Conversation input light theme fixes. --- .../circle_touch_highlight_background.xml | 2 +- res/drawable/ic_arrow_up_circle_24.xml | 11 ++ res/drawable/ic_baseline_photo_camera_24.xml | 13 ++ res/drawable/ic_circle_plus.xml | 8 +- res/layout/conversation_input_panel.xml | 4 +- res/values-notnight/themes.xml | 174 +++++++++++++++++- res/values/themes.xml | 9 +- .../securesms/TransportOption.java | 23 +-- .../securesms/TransportOptions.java | 15 +- .../securesms/TransportOptionsAdapter.java | 7 +- .../securesms/components/SendButton.java | 25 ++- .../securesms/util/ThemeUtil.java | 15 ++ 12 files changed, 257 insertions(+), 49 deletions(-) create mode 100644 res/drawable/ic_arrow_up_circle_24.xml create mode 100644 res/drawable/ic_baseline_photo_camera_24.xml diff --git a/res/drawable/circle_touch_highlight_background.xml b/res/drawable/circle_touch_highlight_background.xml index fe392b45e6..8f1c2885be 100644 --- a/res/drawable/circle_touch_highlight_background.xml +++ b/res/drawable/circle_touch_highlight_background.xml @@ -1,6 +1,6 @@ + android:color="?attr/colorControlHighlight"> diff --git a/res/drawable/ic_arrow_up_circle_24.xml b/res/drawable/ic_arrow_up_circle_24.xml new file mode 100644 index 0000000000..a13b7c5b40 --- /dev/null +++ b/res/drawable/ic_arrow_up_circle_24.xml @@ -0,0 +1,11 @@ + + + diff --git a/res/drawable/ic_baseline_photo_camera_24.xml b/res/drawable/ic_baseline_photo_camera_24.xml new file mode 100644 index 0000000000..13186deefc --- /dev/null +++ b/res/drawable/ic_baseline_photo_camera_24.xml @@ -0,0 +1,13 @@ + + + + diff --git a/res/drawable/ic_circle_plus.xml b/res/drawable/ic_circle_plus.xml index b222f9a9ae..e9db1a80a8 100644 --- a/res/drawable/ic_circle_plus.xml +++ b/res/drawable/ic_circle_plus.xml @@ -2,7 +2,8 @@ android:width="27dp" android:height="27dp" android:viewportWidth="27" - android:viewportHeight="27"> + android:viewportHeight="27" + android:tint="?attr/colorControlNormal"> @@ -14,7 +15,7 @@ @@ -27,8 +28,7 @@ android:pathData="M13.51,8.82c-0.35,0 -0.63,0.28 -0.62,0.62v3.43H9.46c-0.35,0 -0.63,0.28 -0.62,0.62c0,0.35 0.28,0.63 0.62,0.62h3.43v3.43c-0.02,0.35 0.27,0.63 0.61,0.63c0.17,0 0.33,-0.07 0.44,-0.18c0.11,-0.11 0.18,-0.27 0.18,-0.44v-3.43h3.43c0.17,0 0.33,-0.07 0.44,-0.18c0.11,-0.11 0.18,-0.27 0.18,-0.44c0,-0.35 -0.28,-0.63 -0.62,-0.62h-3.43V9.44C14.13,9.09 13.85,8.81 13.51,8.82zM21.46,5.54c4.39,4.39 4.39,11.53 0,15.92c-4.39,4.39 -11.53,4.39 -15.92,0c-4.39,-4.39 -4.39,-11.53 0,-15.92C9.93,1.15 17.07,1.15 21.46,5.54zM22.34,22.34c4.88,-4.88 4.88,-12.81 0,-17.69s-12.81,-4.88 -17.69,0s-4.88,12.81 0,17.69S17.47,27.22 22.34,22.34z" android:strokeAlpha="0.9" android:strokeWidth="0.5" - android:fillColor="#00000000" - android:strokeColor="#FFFFFF" + android:strokeColor="@android:color/white" android:fillAlpha="0.9"/> diff --git a/res/layout/conversation_input_panel.xml b/res/layout/conversation_input_panel.xml index ccfcdf50d1..9f5048f4ad 100644 --- a/res/layout/conversation_input_panel.xml +++ b/res/layout/conversation_input_panel.xml @@ -98,7 +98,7 @@ android:layout_gravity="center_vertical" android:textAlignment="viewStart" android:layout_weight="1" - android:textColorHint="#99FFFFFF" + android:textColorHint="?android:attr/textColorHint" android:textSize="@dimen/small_font_size" android:nextFocusForward="@+id/send_button" android:nextFocusRight="@+id/send_button" @@ -199,7 +199,7 @@ android:id="@+id/send_button" android:layout_width="match_parent" android:layout_height="match_parent" - android:scaleType="centerInside" + android:scaleType="fitXY" android:contentDescription="@string/conversation_activity__send" android:nextFocusLeft="@+id/embedded_text_editor" android:src="?conversation_transport_sms_indicator" diff --git a/res/values-notnight/themes.xml b/res/values-notnight/themes.xml index 3fa42d6cf9..898e3edfed 100644 --- a/res/values-notnight/themes.xml +++ b/res/values-notnight/themes.xml @@ -5,14 +5,184 @@ @color/gray65 @color/accent @color/text + @color/gray50 \ No newline at end of file diff --git a/res/values/themes.xml b/res/values/themes.xml index 8f006438c4..5a63b2db9a 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -20,6 +20,7 @@ @color/text @style/Widget.Design.AppBarLayout @color/text + #9FFF true @drawable/ic_baseline_clear_24 @@ -350,7 +351,7 @@ -