From 5fa7e658166e13e96f8a734ae77ba93814873570 Mon Sep 17 00:00:00 2001 From: m0viefreak Date: Tue, 5 Feb 2013 18:35:43 +0100 Subject: [PATCH] MessageView: another theme fix - The attachments view still had the wrong background color in case of different global and message themes. - The attachments view used the activity LayoutInflater, but it needs to use the one of the fragment. - The background drawable for the attachments used transparency, and thus was completely invisible in the black theme. Fix it by adding another one for the black theme. --- res/drawable/attachment_text_box_dark.9.png | Bin 0 -> 542 bytes ..._box.9.png => attachment_text_box_light.9.png} | Bin res/layout/message_compose_attachment.xml | 2 +- res/layout/message_view_attachment.xml | 2 +- res/values/attrs.xml | 1 + res/values/themes.xml | 2 ++ src/com/fsck/k9/fragment/MessageViewFragment.java | 9 +++++++-- src/com/fsck/k9/view/SingleMessageView.java | 5 ++++- 8 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 res/drawable/attachment_text_box_dark.9.png rename res/drawable/{text_box.9.png => attachment_text_box_light.9.png} (100%) diff --git a/res/drawable/attachment_text_box_dark.9.png b/res/drawable/attachment_text_box_dark.9.png new file mode 100644 index 0000000000000000000000000000000000000000..dec70346485ccf316be4afe83e696a2f3919a941 GIT binary patch literal 542 zcmV+(0^$9MP)004R= z004l4008;_004mL004C`008P>0026e000+nl3&F}00009a7bBm000XT000XT0n*)m z`~Uy|8gxZibW?9;ba!ELWdKlNX>N2bPDNB8b~7$DE-^4L^m3s900DkUL_t(YOP!TV zu7fZPMJrZ8!yFi;-2)5|NKB#oU&wox*qAif0X0=A!T0zF)Q>-VJ;KTfV1uG4in^}5 zu3MJnV=R~;fDB@Cx_z-3hQVUa*C7VNFq}a#P1F1JuBz&3ESMmG3}PS*_kE8&4CS-5 zNL(kYe|d<3FidsAaal5KdBJt(9K=AlnN*edj)TWueRol0Jpkp9Xs064z90Z-AlgaBxl+t zj*Q5A!3iULE^RecaU|Bek=4%Yuqr)w!Gf6Yo7| z7~bBvdGvad6*7o{Fx<8+_80{RZ#<+B(8K_8%&Ku5sSS4)#K)|nDcLj)hF~7Xl!5GP gO41y@x#DsC4-~k~WFf + diff --git a/res/values/themes.xml b/res/values/themes.xml index 1ebaaa9fa..b928c983c 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -50,6 +50,7 @@ #ff2ea7d1 #ffcccccc #ffffffff + @drawable/attachment_text_box_light