From 655d97172719ad1c0b6b0f02b4911d24761e4c13 Mon Sep 17 00:00:00 2001 From: Anton Chekulaev Date: Fri, 11 Sep 2020 17:27:57 +1000 Subject: [PATCH] Message details activity styling fixes. Message details activity is available form the conversation context menu. --- AndroidManifest.xml | 2 +- res/drawable-xxhdpi/ic_refresh_white_18dp.png | Bin 693 -> 0 bytes res/drawable/ic_baseline_info_24.xml | 10 ++++++++++ res/drawable/ic_baseline_refresh_24.xml | 10 ++++++++++ res/drawable/ic_outline_info_24.xml | 10 ++++++++++ res/layout/message_details_header.xml | 5 +++-- res/menu/conversation_context.xml | 4 ++-- res/values-notnight-v21/styles.xml | 4 +++- res/values-notnight-v21/themes.xml | 2 ++ res/values/attrs.xml | 1 + res/values/styles.xml | 4 ++++ res/values/themes.xml | 1 + .../securesms/MessageDetailsActivity.java | 14 +++++--------- src/org/thoughtcrime/securesms/ShareActivity.java | 2 -- .../securesms/components/AvatarImageView.java | 14 ++++++++++---- .../conversation/ConversationFragment.java | 12 ++++++------ .../loki/utilities/AvatarPlaceholderGenerator.kt | 1 + .../SingleRecipientNotificationBuilder.java | 2 +- 18 files changed, 70 insertions(+), 28 deletions(-) delete mode 100644 res/drawable-xxhdpi/ic_refresh_white_18dp.png create mode 100644 res/drawable/ic_baseline_info_24.xml create mode 100644 res/drawable/ic_baseline_refresh_24.xml create mode 100644 res/drawable/ic_outline_info_24.xml diff --git a/AndroidManifest.xml b/AndroidManifest.xml index 166b896dc6..05026366c6 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -310,7 +310,7 @@ android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize" android:label="Message Details" android:screenOrientation="portrait" - android:theme="@style/Theme.Session.DayNight" + android:theme="@style/Theme.TextSecure.DayNight" android:launchMode="singleTask" android:windowSoftInputMode="stateHidden" /> 004R> z004l5008;`004mK004C`008P>0026e000+ooVrmw00002VoOIv0RM-N%)bBt010qN zS#tmY3ljhU3ljkVnw%H_00J#ZL_t(o!|j+sOB+!T$CuT_;H{0&n@BxMdn!G6%ON7A zx6*+2T(v^KfTzSrJPAT$CB3zk7Nk9S5Q-upqM~UlYSph$L<&}lissit*T>81nt2;p zO1twe2|NG!@m}7{&cwnBZdoBLgoUub3f9gb@A%3-C!FzvP2TgI+aBI&zpw^+Si;Me z>7~J?$bdgs7rWH5ZIYT|82rFuyh3UPVpv#Yo$rRQ7S>z=513<;99brq=fL%Jjav$3 z2y0B0ONG3b(I)Hh{%g)r3VlJU#F8<Gh1u*VNk)Xq`rlbf`>kxBC^4+0ZeWK1HSCdhB3K(0$9-CW%6KNZ2-c_ElXakk zus5n&G}b_+uPk38*m;SX3*vqD-GNO80sG~^a{nAG&|^HmAoD@MUOTX#HLw1~)y$Ej z&dXp=Ri<km8%cNuuqQil(@7I7gZs?V}$Bd` + + diff --git a/res/drawable/ic_baseline_refresh_24.xml b/res/drawable/ic_baseline_refresh_24.xml new file mode 100644 index 0000000000..f2be45bab5 --- /dev/null +++ b/res/drawable/ic_baseline_refresh_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/drawable/ic_outline_info_24.xml b/res/drawable/ic_outline_info_24.xml new file mode 100644 index 0000000000..35f7f5f611 --- /dev/null +++ b/res/drawable/ic_outline_info_24.xml @@ -0,0 +1,10 @@ + + + diff --git a/res/layout/message_details_header.xml b/res/layout/message_details_header.xml index 5efb768f05..603f5d1e82 100644 --- a/res/layout/message_details_header.xml +++ b/res/layout/message_details_header.xml @@ -41,13 +41,14 @@ android:id="@+id/resend_button" android:layout_width="wrap_content" android:layout_height="38sp" - style="@style/InfoButton" + style="@style/Widget.Session.Button.Common.ProminentOutline" android:paddingStart="10dp" android:paddingEnd="10dp" android:paddingTop="5dp" android:paddingBottom="5dp" android:layout_gravity="center_vertical" - android:drawableStart="@drawable/ic_refresh_white_18dp" + android:drawableStart="@drawable/ic_baseline_refresh_24" + android:drawablePadding="4dp" android:text="@string/message_recipients_list_item__resend" android:visibility="gone" tools:visibility="visible" /> diff --git a/res/menu/conversation_context.xml b/res/menu/conversation_context.xml index dec8cb8de3..4224c2bc5c 100644 --- a/res/menu/conversation_context.xml +++ b/res/menu/conversation_context.xml @@ -1,10 +1,10 @@ - + app:showAsAction="always" /> - +