From a353ebd83427f38f09f1962cb33eb46d91100875 Mon Sep 17 00:00:00 2001 From: Mateo Hernandez Date: Mon, 17 Apr 2017 14:23:17 -0500 Subject: [PATCH] Add tint to preference icons Closes #6540 // FREEBIE --- res/drawable-hdpi/ic_advanced_black_24dp.png | Bin 209 -> 0 bytes .../ic_brightness_6_black_24dp.png | Bin 265 -> 0 bytes res/drawable-hdpi/ic_forum_black_24dp.png | Bin 217 -> 0 bytes res/drawable-hdpi/ic_laptop_black_24dp.png | Bin 159 -> 0 bytes .../ic_notifications_black_24dp.png | Bin 255 -> 0 bytes res/drawable-hdpi/ic_security_black_24dp.png | Bin 472 -> 0 bytes res/drawable-hdpi/ic_textsms_black_24dp.png | Bin 184 -> 0 bytes res/drawable-mdpi/ic_advanced_black_24dp.png | Bin 170 -> 0 bytes .../ic_brightness_6_black_24dp.png | Bin 228 -> 0 bytes res/drawable-mdpi/ic_forum_black_24dp.png | Bin 146 -> 0 bytes res/drawable-mdpi/ic_laptop_black_24dp.png | Bin 130 -> 0 bytes .../ic_notifications_black_24dp.png | Bin 188 -> 0 bytes res/drawable-mdpi/ic_security_black_24dp.png | Bin 315 -> 0 bytes res/drawable-mdpi/ic_textsms_black_24dp.png | Bin 136 -> 0 bytes res/drawable-xhdpi/ic_advanced_black_24dp.png | Bin 263 -> 0 bytes .../ic_brightness_6_black_24dp.png | Bin 359 -> 0 bytes res/drawable-xhdpi/ic_forum_black_24dp.png | Bin 220 -> 0 bytes res/drawable-xhdpi/ic_laptop_black_24dp.png | Bin 191 -> 0 bytes .../ic_notifications_black_24dp.png | Bin 309 -> 0 bytes res/drawable-xhdpi/ic_security_black_24dp.png | Bin 553 -> 0 bytes res/drawable-xhdpi/ic_textsms_black_24dp.png | Bin 221 -> 0 bytes .../ic_advanced_black_24dp.png | Bin 318 -> 0 bytes .../ic_brightness_6_black_24dp.png | Bin 485 -> 0 bytes res/drawable-xxhdpi/ic_forum_black_24dp.png | Bin 307 -> 0 bytes res/drawable-xxhdpi/ic_laptop_black_24dp.png | Bin 278 -> 0 bytes .../ic_notifications_black_24dp.png | Bin 449 -> 0 bytes .../ic_security_black_24dp.png | Bin 769 -> 0 bytes res/drawable-xxhdpi/ic_textsms_black_24dp.png | Bin 297 -> 0 bytes .../ic_advanced_black_24dp.png | Bin 476 -> 0 bytes .../ic_brightness_6_black_24dp.png | Bin 687 -> 0 bytes res/drawable-xxxhdpi/ic_forum_black_24dp.png | Bin 414 -> 0 bytes res/drawable-xxxhdpi/ic_laptop_black_24dp.png | Bin 368 -> 0 bytes .../ic_notifications_black_24dp.png | Bin 584 -> 0 bytes .../ic_security_black_24dp.png | Bin 1013 -> 0 bytes .../ic_textsms_black_24dp.png | Bin 390 -> 0 bytes res/drawable/ic_advanced_24dp.xml | 4 ++ res/drawable/ic_brightness_6_24dp.xml | 4 ++ res/drawable/ic_forum_24dp.xml | 4 ++ res/drawable/ic_laptop_24dp.xml | 4 ++ res/drawable/ic_notifications_24dp.xml | 4 ++ res/drawable/ic_security_24dp.xml | 4 ++ res/drawable/ic_textsms_24dp.xml | 4 ++ res/values/attrs.xml | 9 +--- res/values/themes.xml | 16 +------ res/xml/preferences.xml | 14 +++--- .../ApplicationPreferencesActivity.java | 44 +++++++++++++++++- 46 files changed, 80 insertions(+), 31 deletions(-) delete mode 100644 res/drawable-hdpi/ic_advanced_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_brightness_6_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_forum_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_laptop_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_notifications_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_security_black_24dp.png delete mode 100644 res/drawable-hdpi/ic_textsms_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_advanced_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_brightness_6_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_forum_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_laptop_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_notifications_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_security_black_24dp.png delete mode 100644 res/drawable-mdpi/ic_textsms_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_advanced_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_brightness_6_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_forum_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_laptop_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_notifications_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_security_black_24dp.png delete mode 100644 res/drawable-xhdpi/ic_textsms_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_advanced_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_brightness_6_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_forum_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_laptop_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_notifications_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_security_black_24dp.png delete mode 100644 res/drawable-xxhdpi/ic_textsms_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_advanced_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_brightness_6_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_forum_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_laptop_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_notifications_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_security_black_24dp.png delete mode 100644 res/drawable-xxxhdpi/ic_textsms_black_24dp.png create mode 100644 res/drawable/ic_advanced_24dp.xml create mode 100644 res/drawable/ic_brightness_6_24dp.xml create mode 100644 res/drawable/ic_forum_24dp.xml create mode 100644 res/drawable/ic_laptop_24dp.xml create mode 100644 res/drawable/ic_notifications_24dp.xml create mode 100644 res/drawable/ic_security_24dp.xml create mode 100644 res/drawable/ic_textsms_24dp.xml diff --git a/res/drawable-hdpi/ic_advanced_black_24dp.png b/res/drawable-hdpi/ic_advanced_black_24dp.png deleted file mode 100644 index ab07536e5de87b20eb3ffafd9aa92585967f4eb0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 209 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbBW_Y?dhE&{odo7TwK|z2eVDsXs zbCtG!E_ucCr;8`HTq%R?TmI4ZC(8_Z4jcG{$LNLB8>gKQ-F))W4gF(twl0&B`<1(@ zAoB49iRg`aE(?}OaI6wv+;!>DiUnH?V>LwFda9U3_7{06`EWiJwR^Rq_Hxbft^F$^ zpRhI;I{Uwl5@88;YVDe@%~RYyi{ZSeVb;G>%)N;c&%`YmRCc(3^l3e~73f9=Pgg&e IbxsLQ0NWr@3IG5A diff --git a/res/drawable-hdpi/ic_brightness_6_black_24dp.png b/res/drawable-hdpi/ic_brightness_6_black_24dp.png deleted file mode 100644 index 7e9f3976ecd1d91fab42533e124cdb01b982824e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 265 zcmV+k0rvihP)lL(nGk0mFJ%C=qQ+I>}N{QmnjCo21-cI4u7-y0sCoQsp!Spr; z2@@RU!?@H)7&TO{oCpdIN;w&)wuQq-PFVpHi8fjiibK%Pqmp~7#}J)=C}93U_|Q+?Y$=vxj;8? P00000NkvXXu0mjf+Cpn5 diff --git a/res/drawable-hdpi/ic_forum_black_24dp.png b/res/drawable-hdpi/ic_forum_black_24dp.png deleted file mode 100644 index 373168bd9c656cc3b8973216c9faa4051eeef4a7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 217 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB7I?ZihE&{od+j1;gMt9tgJ{PL zA$N|NjgGSpa&j&AJE)+-x!(Bv4*7rL@~@mNEf`Kdh;;fM;2$AwmFRe7#%5!&C(>6r zJRDjSiY@z{Q!E>k%<~lV6&N{R^egys7QIxy@#>BIdI!P99n&35RB OmBG{1&t;ucLK6UCVNO2) diff --git a/res/drawable-hdpi/ic_laptop_black_24dp.png b/res/drawable-hdpi/ic_laptop_black_24dp.png deleted file mode 100644 index e175dcb77a9e187b66397a2524c8a28d963a00b9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 159 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB(mY)pLn>~)y=KUDK!L|CQSrL= z&S079S7`+T?OVJ}rhI>JpR4YI>RQ2z_l_*L`+WE0>&LpC4!amP`6*A3Wr$>%Wq;<~ z<>&?mMkW>xfd%`UtF~6ZIC8Wibmz+41eIUYMcH16y12}=6;nK3|MZ>mNuZ4kp00i_ I>zopr0HSF-)Bpeg diff --git a/res/drawable-hdpi/ic_notifications_black_24dp.png b/res/drawable-hdpi/ic_notifications_black_24dp.png deleted file mode 100644 index 876681f224d2501239f11bfcae3c7ad3118f19cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 255 zcmV7?@$p`NeLU~B5sw~rO zxg^$6hU-#z8DkaorD_3G$AE08JM|Jk^VyB>{A6e9EkNw%JEzc?>lYBaODN2qnjAnQ zwL@c8)YAd8^x$v6cJ#n39gv_F0BVt-9suf*paB3Hke~?w8j&Cas(=cpfc^s106|Sk z7;jVvj2FrT&gq3hmdCX4D|Aed56P)NklS`F3`e?5^YdQ*9v=RRuT%`ap#A@ma;Dks9CuJ~1NVW1E^uBMsmN7$z9_ zNijCWn1=59=%#$|12_WQjBJhR7OAtO`k?fHCNM=}A|}#xww+QRA>eEe3f zJR$HKI0x!EaghR^tf3Cp2S-*6c@lM38Y&HyhPeH=EgEWbIzCY}6f*fG{U38WK2RJj zSC=GapA)cY*ieteY;XcxOsxq+ao;2Iv!3RT;?sKb0|57gmD~ zLo34GYEE|7_@LPk&Cb2bHg;LExU;k;WM@frZ+)e~&;sr{$L%hPoH*iTIw)Xh7I+s< zDXvpct3aS&XdZYY?*lAsE!tt!6V)#8Mc$3LCkz=iQ%!7YKL4G{)0&3oK6Zo~VjH&6e$qSkWIw!Tk~b_H9)F O0000! diff --git a/res/drawable-hdpi/ic_textsms_black_24dp.png b/res/drawable-hdpi/ic_textsms_black_24dp.png deleted file mode 100644 index 0fc43a9a4d955c07a977bfd2e52a955db97a022e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 184 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB>OEZ?Ln>~)y>7^LK!Jz#LPPrL zup-{`6Z_`vl9cgccg%Sm{;z#M%RzRf6&#x@g03u*)0O|erh2K^iMj@xY~2a|43*p= zYEu=OIGR|VuDJHB@n^Qe-nEw-f9_M*q5N1^xkI6;toD$chQj(8SGX_Dly}wWS&+!W itDGU>c-X-E3Db7w8mTu`J*+^dFnGH9xvX36$&NCm%nA#?%a;|JU+@NPTO+k8{ zuiKoLf}2{Ni3KEe%I*BPz&H1>=hhaT!y6-;v=>jzwb-PpCnBP{I6)+Uk%1v_iUPw8 T*6mS1%Naaf{an^LB{Ts5kRdrc diff --git a/res/drawable-mdpi/ic_brightness_6_black_24dp.png b/res/drawable-mdpi/ic_brightness_6_black_24dp.png deleted file mode 100644 index 66555bac97b43a2a643729913e109f0fe3920779..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 228 zcmV&S2D)#A9S2LK;dpvg^uo0ggt7?LjdYW@UROA+RnKLMsvPaqz8 z12%dK*KtK#uH~u{k{kPGovIr+dHR(t<_6X_{`fV5X!Z_Yw;S^CyRMkG``lG*kBUCEg{EnZg(K#j~|=W8y5KX uF)+DLKl9t{?_|{zY-KH*1W&njr7(Tx?99}BS$_&>34^DrpUXO@geCyx?=z7A diff --git a/res/drawable-mdpi/ic_laptop_black_24dp.png b/res/drawable-mdpi/ic_laptop_black_24dp.png deleted file mode 100644 index 29b3b50ec8d9c5769510ce33d536c9f35c999dee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 130 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gjo}Mm_Ar-fh6C_xhIWw3GWd+Iu zI~>z85;r$UwJAq8F(yo!!ZhbuPn1E{!4<3}8yaT0y6T#7Z&{JTd7{8KCvK7Gvc0T} c6A~C1SPdf9&uPl^1sclW>FVdQ&MBb@0LG>#IRF3v diff --git a/res/drawable-mdpi/ic_notifications_black_24dp.png b/res/drawable-mdpi/ic_notifications_black_24dp.png deleted file mode 100644 index 8aebe8825026009983ffe741604b03a436442823..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 188 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gj&7LlfAr-fh6C^Snn7cC5D#S&C z?+Upo@VRYLkkE1yO<*`8>d|(%fHkB~DS_?C+z6ibhkh%hHZj->Y=3Mh({_7dmM5E? ziv-`{dru-JxHqxxd=hcNqluLlNVzJ>ZB6KieBjl_x^9cf92M_f8b_MNuPE)@G)+uw jg)=W(;?{|my%-qm+v1gl29wVhTJ-w8D;%1*%Y&gHn$;vBkA3krqe;aU)dRh141>j(`PvNcBYwIh77G z5JzIMKn0o9pv_PxbU>FoM=G3b6xu9WO3dNxO!Z|3KBLKJgaC0)R3-bT~ N002ovPDHLkV1m$Man1k$ diff --git a/res/drawable-mdpi/ic_textsms_black_24dp.png b/res/drawable-mdpi/ic_textsms_black_24dp.png deleted file mode 100644 index 1589c3ae92bddc685da91f69c8fe8dcb5dc9b0a0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 136 zcmeAS@N?(olHy`uVBq!ia0vp^5+KaM1|%Pp+x`Gj{+=$5Ar-fh6D0f`q&r?W?C5sl zF>>af&3eT^=B5zO1=m!Ytb+m@8Djec>OVvpNS$0P_Tb3YEn65;cBmFL-yfzJqCu{?iKH+`R5q}jb`w4^>bP0l+XkKSRO2h diff --git a/res/drawable-xhdpi/ic_advanced_black_24dp.png b/res/drawable-xhdpi/ic_advanced_black_24dp.png deleted file mode 100644 index e45089616ba1d18172f212e82f074f3f04e62c78..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 263 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtbDl1aAr-gY&WPqZWFX+WyZ6|0 zFPAGCFP269Exziu;(@!br?K(%#_9yS<+kk(+?i5N9EvRhM$>0J3)(3^@zeRlJmYWY z<9`ck{-2qB@Lytzz0yUuY?x zd9qxoiT&rwj%&>|dP(6M_Pd|zca_opzR+A)ef@Q<76G8U?o~1#D`+@#QzGa(&}R&u Lu6{1-oD!M<6W?qT diff --git a/res/drawable-xhdpi/ic_brightness_6_black_24dp.png b/res/drawable-xhdpi/ic_brightness_6_black_24dp.png deleted file mode 100644 index b9f860428bb475228fcd79f20f6ab59b2f21a9c0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 359 zcmV-t0hs=YP)6+UT*x#6Qg43V7yG5|V2$-U;@a38rJXaHjs+gEfe2?Vgxd=rgJ_&(ro@SwQgsuZURZvs$g-hvSXWq8vyd~z)S zsl%HBY+b5YAK^^_YTHuWS9nu^(zc&~2Y_EfQY`XEyrXDEnYb_pKu6U_Q$kQ|WL84} zDu}sieM~S|Ab^VdrMTaD{1O7-j@%DiP#cjo7)VG>7pX6Aj7MoOOFpbEAtqhO> zhydUZIR4^@X>LD}boi+%79zX~0xJ9%0y6wB1Z?;q`T#dh4GkE`Do_9b002ovPDHLk FV1nsjkqrO< diff --git a/res/drawable-xhdpi/ic_forum_black_24dp.png b/res/drawable-xhdpi/ic_forum_black_24dp.png deleted file mode 100644 index 91ef28df28dc66159bf924742cd866fe249f71dc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 220 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUt#hxyXAr-gY-q^_7;K1X2aSijC zi5n9dW=p*g;FaOp8S!gc%;f6{FVAo&e%Eo|zF2qV^X<<(9G-m)cZs;QfC*@TgYJRn zdslE(>=mEN$P46yzz65>)B}}&rm%iEa(!X}Q1!!xH;i4zH04P!)J<7dK_;prN*zxSAc*gpBp{(z4~c*_U_cx5Nz<1IKmY;|fB*y_V2)fMAlE!TScK$w?-4P^dyN<( zivXYv*KcMOFFA}Oz-S2A&irrM@U=usgh{?{DUGJ_0BGV3@%?_E9`f5~00000NkvXX Hu0mjf1OtNU diff --git a/res/drawable-xhdpi/ic_security_black_24dp.png b/res/drawable-xhdpi/ic_security_black_24dp.png deleted file mode 100644 index b32465602e516055842343bace4585f776100c5a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 553 zcmV+^0@nSBP)3MX~kUA_Wm!(ANHHCy+x4am`MW z&2GuS1Erfx=G~nnn^{7fji#jlA80Uq_FwER4QvB#V8GF4*V1teyZ}^zt{`xpE^Awe zL*PZA4)i4g=jpS)MVt8@6yO(dBq=76c@mW0!@L7!Aj|rNc`8QciEMs90wrLa>pwuC zWuD07_YZImECu)(D4;Y?{>$$}U{29b7_-zqfD_;ZH~~(86JSL^ zFGd1-n1MT*1bibI9{UqB@SCki50>M6v@lMtEDBiWd|YCj99R@k;e1pvPBtwHxZ!-P zW1P%d5|9-fWAoS*#EM38W!LQULTHimKXDqrE`pcj39M7>~%t`l?(`&0Imgn zHcVBhYZ?Vi0vCezCnihm^p4$Y5I|G1DQMedV;Hq5;8j7u8t@@#_Y$(^sywNmLkgfv z;#t7Ag&c|4GLmNopXK^rdkMW}?aL*7ci9u1pJmUv6%v#0$8;lVgb4l?SRgU9Rp2fl raJtH@kObHwu+Mhb7W?fHXCr98u~NcH((ENT00000NkvXXu0mjf%$4hn diff --git a/res/drawable-xhdpi/ic_textsms_black_24dp.png b/res/drawable-xhdpi/ic_textsms_black_24dp.png deleted file mode 100644 index 37c51f95cd3d3d5511dfedb9417ab9616c8e5a6e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 221 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtC7v#hAr-gY-t^{bb`WTJXxCyH z)c5eQhE(hf%dLB7Orf;8f=cx4+--RakG!K5L zU9Pdn*W%x0J0=NX=4TuUzC0R0lY!vCQ^xo5@n7CQXJANSKOvvQz_5-BELHI8Xjq!V zavq7-M>oqPtc$lZ`6vBg<%eSDsy!?F&A)zJW_Rz(@!7vBg5~{B+}*^eK4tON9nMx2 PATvE({an^LB{Ts5vQt&5 diff --git a/res/drawable-xxhdpi/ic_advanced_black_24dp.png b/res/drawable-xxhdpi/ic_advanced_black_24dp.png deleted file mode 100644 index d9de0aa2808ccae56d27c4d785cfc9822aced263..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 318 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@Zgyv2U}W`laSW-r_4bxG*C7W1*NZ$Q z3A@+S#PrQi-I1m2QZUUUDE9r#>V?Zhe>F&LnBCR^10GB3q^|#cXmLJMiO-Pb{rWcH z!VblX`qDYN{DqwN=C^&G_u8Ue^mqT`JL&T-T0fp+R^eCZvZ^(?Ger70mnQe~%aM|r z((Y28tnNadyzX3?e9xz~eD3{n!YSyur)$wcPsgaHV3zxDRx9j$6yjKPoYS4DqyNUf z{p~+gi)+NSs*e^rdL0dPpL8J5b<&|g=SfEb9VZ<->9*;>NvBPRR`#ZJe&)V(YyZ65 z!f6Uy5B^@8U$F&9zUL?fv1bCw+(MW~I$qqbV)UFQe>A?YD+?Gd44$rjF6*2UngAY? BjTHa@ diff --git a/res/drawable-xxhdpi/ic_brightness_6_black_24dp.png b/res/drawable-xxhdpi/ic_brightness_6_black_24dp.png deleted file mode 100644 index 7664ef881898c9868cafeca753ddfff968ca8728..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 485 zcmVFTi^)L6)P&#Q+FykyT-N2_-8WjNpIV#pVGwf zB*q}flww_x0i2yHkUTg*3c%^x0cRLTJyHmcTBI19zAbQoGzw?(NE|pKkaofgAOHaf zKmYJ@cGeWHE===2Y`qrOo80OZdl^&LQ`^FaLtkU!Vd9{~9?i$qcfbjVG_ z-%TaZA&)fxSyT5y?jzvytz?|BK(oMgl9h_X@fUav{2nV2hXZJtb6S!chwCKzodc-^ z4j0gKKfWrmUq?o$_NXSvdk&6^KI7th+ zl2w11pTa_Mof@Z4ClqLt1E&;H&YM-X$7ni1KySHm`m_Ro=7Ae#$sWLJD+l^4iBtQg zeQPk)7|bno3!veRdJGOdM-E2Mo^#IDlv#*Y4KxqDTB!qCx<#P+2dEmipR;gx500000NkvXXu0mjfk>kuo diff --git a/res/drawable-xxhdpi/ic_forum_black_24dp.png b/res/drawable-xxhdpi/ic_forum_black_24dp.png deleted file mode 100644 index 69146b20af05f1fc6163f5acfc7ec986a6c57432..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 307 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!zdT(WLn>~)y=}>L#DK>k(D~dl zy&rylGlToPSF))oMZ~H6=YMth^uDDoE-oS)7yGRXeszcY{MXoX$tD4DGSA9CWh{8a zv!aJ>mn@$H10#z7l-SGksz`o2bHL@=JAMwV3;2%fH!v`9D4-GxD&Ie2Tvg2UrT(<# z)aR!zH>#|?8?xYP;WDPm12fs4u%>fOP@nVA;a))-ljjEQ{9pyc2=BzkBN@hgoGNX< zD=icZ?F8DGCh?_rt+n5`i=j%7`OBQ?_m@xmv9GX|MIm|#i;#n_2d7HItO*{DO01nC kDnTH|VRvhwU-*78$X>egd`(>tC|DRgUHx3vIVCg!02*d*>i_@% diff --git a/res/drawable-xxhdpi/ic_laptop_black_24dp.png b/res/drawable-xxhdpi/ic_laptop_black_24dp.png deleted file mode 100644 index 01e18704395c5ab7e16e0fa07cbf395f9a876b22..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 278 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY1|&n@ZgvM!cRgJkLn>~)y=BPNY{1ZVv0*p6 zP=AW+c?GL4S9}#&#buK+ukPXhw{=4MHC08ANh+R`&P9k`KT=v4eCP9{=tsYHn9Y3~ zP8_=T+p00i_>zopr0B2fi AvH$=8 diff --git a/res/drawable-xxhdpi/ic_notifications_black_24dp.png b/res/drawable-xxhdpi/ic_notifications_black_24dp.png deleted file mode 100644 index 008f7bc1c50e88d0a6bd127c7a337e23b19b32cd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 449 zcmV;y0Y3hTP)S7=__fP!Ot@pmo)SuKbB22-yUw7vL4Nb(ckpD=pGRBj&38Dif@w+6gh4^Ua(W z4hYsF56mJSzq=jn_B?Q&1?JSXT7Z>yOGT-P=4FYyhq13oMYLv2F&`V<~_aWO7{Mb zIOTHLg?60#24K9o#N!rl%AIS&Icexv{dL@qG<}Rew}`WPajSR?xO0G0?iL+q&+_4~ zslCZ|k%2B9;;6W=p8$Zys5pnR4*;O$@6bgAIs?EdcZvw~00cBZ1R4PWLH;d!0t7Tc z1bPJmdO-wQ00Au!feNq@h(H7)5P=9pAOaDHKm;NXfe1t(0@Wx51WJjc00|k#Ig$n( zXGofGT1V1|(<)M-d;}tpXHVFSF(>5}?u|S|psWH=79!Af1)w<8V>Y(H3Hm>u54IpJ rak>%vI&PV{jC1pKOcur%W2{b}=j diff --git a/res/drawable-xxhdpi/ic_security_black_24dp.png b/res/drawable-xxhdpi/ic_security_black_24dp.png deleted file mode 100644 index e51bdb32f320ca0b06a184b18c709c130aefeee4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 769 zcmV+c1OEJpP)9pi%lH8pTRQBt6)Vhcu%QeGpxvOvzUFukPMB!LoSo z?#!HX_ntfF3*VPr=bqs+Gv7J)?u-B`m8t}~U_5R76+Mlgm0p9!3&suOR)-t--C!BP zj2N#NAD;uJ)5rL?BV_8P8G?QUXLhOptI&w(R|602`y%`MYJB48PZk6M+H=%+ z!U5>IFhF-bHAb15+<(oL6hN-K*A_79u@FG^3~@cn^oSGCkY{ca6QEVc*!E6*37GXd zazHmdXU{7LAm8a51E6)!`cJUusNY5k=%HuaRS2kSjGc8}4dWu1t8*TPz*>q3kexPs z_Kdj*eb7Zury3g23(t7F#uez3CK&>ovNyB)b_e>bXMF@TV|?Zr>nTK_0pgi{mPI_@ z*}D!Ay>NHgct0SZp(#*Gh|0oiH7$1dCdG`<0m$}Y_wF#&o2?%(Iye+-;} z$W`++Y~)z3t6)$biB1qQmod z#~)p}n(fu3 z_tds_Sc^0mZF^kMf7AcmzJxjDOV+4oMlznuUM;i0*VQ4G@4`x@1>SrY)+#NK6Hsty zU|?io;ear-m|pO`D0fKy`}#9Pc*1oXh>8%70Dh<A2_}pa9RKW diff --git a/res/drawable-xxxhdpi/ic_advanced_black_24dp.png b/res/drawable-xxxhdpi/ic_advanced_black_24dp.png deleted file mode 100644 index f10eb6d20a3eae901631b59cff06013dd08916db..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 476 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U|j6!;uunK>+Kv*FXliI*V8w4 zOBC`?HR9ltu_#=$vAcFNU-(<`pa%{|ennKCwPklgX&c+qjT@BI7kzMt~+yS3pYees9tKmYojzQ*(9w960Qy8W9so%HygUcckM=IQt4 zCWrnuGk&*D{rNt%TDhj}>!#wP9CA-iyM0iJ*K2bBX(VWK+FxF=>CYBHrIY^Rii`f3 z2r8ZCmsf25vq8}4B)_=g;y(t0MyJc=9Ub@G=J5J-*EL|ud$p!bHJ>?7nD-f&9LW2` zAbxK@Yrd!QjFam-KSXV7uDPwgaJq`%ofANA%(mW|+Z_Im$~&gU3qRbL!~Jucpj?v+ zhw^^4L$x>6KIJOkvFsHHtMhGfz1e2`^RwHV>4Mw+l$J~csy=4nWcAZjaNTsJ3HcHa zvyKX0I=#NLVCNzZqfgmNXWaV~)PaUv-~59GXy!Nf9r}MK-J8I%_G9hK^493bzc1yV z-hS-+(*OENSvB#$FVdQ&MBb@0Es=# Awg3PC diff --git a/res/drawable-xxxhdpi/ic_brightness_6_black_24dp.png b/res/drawable-xxxhdpi/ic_brightness_6_black_24dp.png deleted file mode 100644 index b6148f9181b8454e8066b89919679a489827fd46..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 687 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U@G%;aSW-r^>*%FzrzM1Zn0n4 z4{`*DMm$v1cyoY3OPJ~6!dliN47ztG{JLVHG&RD(U;k;8$3 zNuYs&1;o5jyUXymVY}gS!{>(lhTJSam@WEt_WpEe&~KM1p;!e-J7baad7*rW__)mWObn{5286=gy%e%=@rnDzmsd{Y704G&Q%|D zS?64l2oB;r^*D27U(nyo8Dx^K~EST$I>8X@YP~ zHlsV|@t^vfI}dIbE0|ERrrzs>;J&R5>kd}bPi_;hyLgi3JNdG zu3E?w@9Xqx*Ga~I{+zx-23(S{zIQ?<>pkDs_0~B`dBKi(cA|GUwz(bH`@(O}Mx2>)xR?E)Y+c0_4>YZGb^W0Mu z7woVKx)Z0tccI((PGRMwtvo;FIZ_oHtelF{r5}E)%T^+&z diff --git a/res/drawable-xxxhdpi/ic_forum_black_24dp.png b/res/drawable-xxxhdpi/ic_forum_black_24dp.png deleted file mode 100644 index cf8dbb36eea2aae792f85ad5e4be3a5425b1aca1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 414 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>U`+LNaSW-r_4bahACsd<>&3Vh zy_MSnb6hjr_GVQpF!N?Db^f|~{%6(vb>B562tbb1dqRGOStlJH-kjw zpJ$A2^7}IzB#-5bB~1G`n`K7kpJxm~t@1b8|8cSVO#PR{Ai^_4>)&anAL$1|ei{lN zkY`>dJZ}rbAEN}Tm!ZrJ>decy{2wuJd5g|F!Z_!KtV51C!^X3pp5FJZ|9kfF>-XUd zR-cqu9FB8vxdj+BH3^FJEJ$EsRo0MjJcuUb0Sv86+wBU^Mr1aSW-r_4ZC6-$4fvhl^@& z7*_|~WflwAb|K+v+N4j8OL}Jd9NKyE_q08Sx7aVsRPmeyLGz+pZ?;&rNgj&%SJPG~ zUZ{S0QuqA!mxt!){(XAn?v}(f)oJ^;KiHmb{!S-)?$SD&+;hhFH%=~-Nv%}N(b@cN z{ez5&CyP%oJ_!B1JN(M}*}o>#um4d8bQfj7Hcd?F~bq< z@R;z=Kj$3MDYDIo;$Hjt?S9es4!0v;-QJwbbyxbjRi9e_+|tgc_IAQbM-FPg`Ww1g wUVMJZv)|9I$$B#|8~_KKfhhyb@0aq+SVB+_5aSW-r^>&V}|Dga0H%`4B z8ip!)esybkRI&~&Iq=BgMxvru(=u+}$tpTxFV=tK%NJJd`r`e*_PyoF%>rCcWY#Wi zo(i%71a6$~jZ6?b$yCYX_3T7WlGy(Zoi^-VNz?zF7hJI9vfrNP7P3Htb5cM z#L{sg)TZzhBjcBV^8yR{w$;eY-g-9fteGTJ&XXJ4_K3YX*?H4o@t0V`wokV{Fq>{Z zJ|)~bQ~YH0l?#8T8gF*(e6)T0gzqfQo1e`86}z9;_x{uJ|BipY?b>&0|7M4}P0{zC z%%8nhhik*6^H0vEKD(s!^W?OBG0XaNr_9e;6Z>!L(NB|OGpELza?5fEoJtRMKh5~_ zWRw*19t)9#RlaqH6@Q+Tn#J@*hUda%5rq;1hZU~>5|`en{$0PdciQc1)A>&Mmn~F0 z(0rKjohgfirA)#S#RFF!GHC7NKO@6ua9JSXVL^jAFQZaB^PX%D0c$%Zfd&Q^1qMbA z2L^o11K&$TSY9a1=ZHI9uGi%D^PI~Co%_Ey>`rVqYx4iJw)?^2n$=22=JkWk+7Zse zzz|?l`EU0luG*h7pK}Gkrkys&Eak!Rx8^ysNz9)hm)XxjDTKk()z4*}Q$iB} D>kRY# diff --git a/res/drawable-xxxhdpi/ic_security_black_24dp.png b/res/drawable-xxxhdpi/ic_security_black_24dp.png deleted file mode 100644 index cd50cfd7cfbfc9cf3cb4cc62eb7d1c40ecc3f8e3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmVPjX;f?~CdRgEDgCRRvD1V! zv@^S%+wOc{@+G7#oip=G&zYT_-6et`2!fzw=@9b*^9SJt@fu`UBh0s%cbHpU-VyJO zV3_o4in+*KKVaayT^FC7!mtglEb|6)Q(@q{-4y?u#W2Rt?=4M6oft5`>oV%ZfcagQ zQ6~n>@46gZozR`%tEdxh@_U)Nz??yyu$$lCGS7FlfjVJ0zwa`yF`w(v7V3n-{Qih} zQqr!?qU~j!Fp=N$BEPH1#q7z8I-xtizd0bk`wGBmoiLH#&khhz%L7}j6T0&IL*@xj z;?ZfZ0YuI30HCSEaq~L>4A9|*hWriyF*^K9V}1vK7#+@#T>*gY000000000000000 z00000000000000000000000000000000000jH(F$eK%+sR|5cg`mc=+R{@~!ju7Me z?iqkTmff%K6&oG?6k5^Sr*V>BKVV#20Ry-siDlD95XFE2EK6c}Y$J$5zyO|0Vp*~g z#7w{d%92;Zp_dBHk4m1BC`OP{qH}hLb0f14GZ#wWM_s7Ybz5`e%wXG*(k4D2}sz*9(+tu*{fmqkjM3XTBGMVRSyb~xlHr79TsCG=Y$+=%#H%`^{w zN7pphgl_RQ`eKA!zdz?MQXrZo`A)N_0M0YNj0v|YmLq}^pWbb20C1n=+s6C(D>>X& z;#z!m@`~J@P2<0q3_<^=sWpoOUlp|o>ROwzv3|t&c}`%sd+Q4GHvL?fPF=Ekxk`A9xls*^I`Nd+=Nl^G j?>X@v1VIo4B|`rI2bK#QY7;GD00000NkvXXu0mjfZ70XJ diff --git a/res/drawable-xxxhdpi/ic_textsms_black_24dp.png b/res/drawable-xxxhdpi/ic_textsms_black_24dp.png deleted file mode 100644 index cdf94b91be9022a1c94b1b8e2fa8e04b6581b36a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 390 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD1|%QND7Ro>VD$BLaSW-r_4baV-ysJE)(f6r z_#QOg;hJiF;?@H30>&3BWhdqJ8q9sxy=VR(RnO1ym-uFDy1IbClkYZH__n^^`uo;; z>GySak|egz)cwA7_AUR#|8HD2JO4QB?(zFlKi=e3EAzPR-Qm3cqj;S4+4YO{?zgBX zo0Z>XesFcd+1l5P9}-V^x?ee2cx`?d&{asFAeVt%nTcTm1A_(w0~bRB6NABH=D%O> zGb7X#a5K2qFJoW`U|!%S6W($;tXqC}8bi_B zqEyv}ZTqg=V?42^?3(RyeK*_JD|SlT?>KGbyv*iK@gmvv4FO#sV;lRy9f diff --git a/res/drawable/ic_advanced_24dp.xml b/res/drawable/ic_advanced_24dp.xml new file mode 100644 index 0000000000..4fb9e1ab03 --- /dev/null +++ b/res/drawable/ic_advanced_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_brightness_6_24dp.xml b/res/drawable/ic_brightness_6_24dp.xml new file mode 100644 index 0000000000..548ad986f4 --- /dev/null +++ b/res/drawable/ic_brightness_6_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_forum_24dp.xml b/res/drawable/ic_forum_24dp.xml new file mode 100644 index 0000000000..e48c05fd42 --- /dev/null +++ b/res/drawable/ic_forum_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_laptop_24dp.xml b/res/drawable/ic_laptop_24dp.xml new file mode 100644 index 0000000000..bad7920f97 --- /dev/null +++ b/res/drawable/ic_laptop_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_notifications_24dp.xml b/res/drawable/ic_notifications_24dp.xml new file mode 100644 index 0000000000..56cd14d7a2 --- /dev/null +++ b/res/drawable/ic_notifications_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_security_24dp.xml b/res/drawable/ic_security_24dp.xml new file mode 100644 index 0000000000..93bd6f8139 --- /dev/null +++ b/res/drawable/ic_security_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/drawable/ic_textsms_24dp.xml b/res/drawable/ic_textsms_24dp.xml new file mode 100644 index 0000000000..65acf67952 --- /dev/null +++ b/res/drawable/ic_textsms_24dp.xml @@ -0,0 +1,4 @@ + + diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 9a268ab854..17b0ad3010 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -116,14 +116,7 @@ - - - - - - - - + diff --git a/res/values/themes.xml b/res/values/themes.xml index 718485e2f4..c380d57d01 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -208,13 +208,7 @@ #ff1d85d7 - @drawable/ic_textsms_black_24dp - @drawable/ic_notifications_black_24dp - @drawable/ic_security_black_24dp - @drawable/ic_brightness_6_black_24dp - @drawable/ic_forum_black_24dp - @drawable/ic_laptop_black_24dp - @drawable/ic_advanced_black_24dp + @color/textsecure_primary_dark @drawable/preference_divider_light @@ -340,13 +334,7 @@ @color/textsecure_primary_dark - @drawable/ic_textsms_white_24dp - @drawable/ic_notifications_white_24dp - @drawable/ic_security_white_24dp - @drawable/ic_brightness_6_white_24dp - @drawable/ic_forum_white_24dp - @drawable/ic_laptop_white_24dp - @drawable/ic_advanced_white_24dp + #FFFFFF @drawable/preference_divider_dark diff --git a/res/xml/preferences.xml b/res/xml/preferences.xml index ebb5936e23..373b8392ed 100644 --- a/res/xml/preferences.xml +++ b/res/xml/preferences.xml @@ -3,30 +3,30 @@ + android:icon="@drawable/ic_textsms_24dp"/> + android:icon="@drawable/ic_notifications_24dp"/> + android:icon="@drawable/ic_security_24dp"/> + android:icon="@drawable/ic_brightness_6_24dp"/> + android:icon="@drawable/ic_forum_24dp"/> + android:icon="@drawable/ic_laptop_24dp"/> + android:icon="@drawable/ic_advanced_24dp"/> diff --git a/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java b/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java index a44edbf62e..011a4ba09e 100644 --- a/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java +++ b/src/org/thoughtcrime/securesms/ApplicationPreferencesActivity.java @@ -16,17 +16,24 @@ */ package org.thoughtcrime.securesms; +import android.annotation.TargetApi; +import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; +import android.content.res.TypedArray; +import android.graphics.drawable.Drawable; +import android.os.Build; import android.os.Build.VERSION; import android.os.Bundle; import android.preference.Preference; +import android.support.annotation.ColorInt; +import android.support.annotation.DrawableRes; import android.support.annotation.NonNull; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; -import android.support.v4.preference.PreferenceFragment; -import android.view.View; +import android.support.v4.content.ContextCompat; +import android.support.v4.graphics.drawable.DrawableCompat; import org.thoughtcrime.securesms.crypto.MasterSecret; import org.thoughtcrime.securesms.preferences.AdvancedPreferenceFragment; @@ -145,6 +152,10 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA .setOnPreferenceClickListener(new CategoryClickListener(masterSecret, PREFERENCE_CATEGORY_DEVICES)); this.findPreference(PREFERENCE_CATEGORY_ADVANCED) .setOnPreferenceClickListener(new CategoryClickListener(masterSecret, PREFERENCE_CATEGORY_ADVANCED)); + + if (VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP && VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { + tintIcons(getActivity()); + } } @Override @@ -175,6 +186,35 @@ public class ApplicationPreferencesActivity extends PassphraseRequiredActionBarA } } + @TargetApi(11) + private void tintIcons(Context context) { + Drawable sms = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_textsms_white_24dp)); + Drawable notifications = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_notifications_white_24dp)); + Drawable privacy = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_security_white_24dp)); + Drawable appearance = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_brightness_6_white_24dp)); + Drawable chats = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_forum_white_24dp)); + Drawable advanced = DrawableCompat.wrap(ContextCompat.getDrawable(context, R.drawable.ic_advanced_white_24dp)); + + int[] tintAttr = new int[]{R.attr.pref_icon_tint}; + TypedArray typedArray = context.obtainStyledAttributes(tintAttr); + int color = typedArray.getColor(0, 0x0); + typedArray.recycle(); + + DrawableCompat.setTint(sms, color); + DrawableCompat.setTint(notifications, color); + DrawableCompat.setTint(privacy, color); + DrawableCompat.setTint(appearance, color); + DrawableCompat.setTint(chats, color); + DrawableCompat.setTint(advanced, color); + + this.findPreference(PREFERENCE_CATEGORY_SMS_MMS).setIcon(sms); + this.findPreference(PREFERENCE_CATEGORY_NOTIFICATIONS).setIcon(notifications); + this.findPreference(PREFERENCE_CATEGORY_APP_PROTECTION).setIcon(privacy); + this.findPreference(PREFERENCE_CATEGORY_APPEARANCE).setIcon(appearance); + this.findPreference(PREFERENCE_CATEGORY_CHATS).setIcon(chats); + this.findPreference(PREFERENCE_CATEGORY_ADVANCED).setIcon(appearance); + } + private class CategoryClickListener implements Preference.OnPreferenceClickListener { private MasterSecret masterSecret; private String category;