From e02aaed7d23d176d95bdcc6ed20653ab286c441d Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 14 May 2021 08:37:42 +0200 Subject: [PATCH] call SVGs 'vector graphic' instead of 'image' --- .../conversations/ui/adapter/MediaAdapter.java | 2 ++ .../eu/siacs/conversations/utils/UIHelper.java | 7 +++---- .../res/drawable-hdpi/ic_image_black_48dp.png | Bin 0 -> 424 bytes .../res/drawable-hdpi/ic_image_white_48dp.png | Bin 0 -> 450 bytes .../res/drawable-mdpi/ic_image_black_48dp.png | Bin 0 -> 295 bytes .../res/drawable-mdpi/ic_image_white_48dp.png | Bin 0 -> 304 bytes .../res/drawable-xhdpi/ic_image_black_48dp.png | Bin 0 -> 548 bytes .../res/drawable-xhdpi/ic_image_white_48dp.png | Bin 0 -> 570 bytes .../res/drawable-xxhdpi/ic_image_black_48dp.png | Bin 0 -> 807 bytes .../res/drawable-xxhdpi/ic_image_white_48dp.png | Bin 0 -> 859 bytes .../res/drawable-xxxhdpi/ic_image_black_48dp.png | Bin 0 -> 1108 bytes .../res/drawable-xxxhdpi/ic_image_white_48dp.png | Bin 0 -> 1178 bytes src/main/res/values/attrs.xml | 1 + src/main/res/values/strings.xml | 1 + src/main/res/values/themes.xml | 8 ++++---- 15 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 src/main/res/drawable-hdpi/ic_image_black_48dp.png create mode 100644 src/main/res/drawable-hdpi/ic_image_white_48dp.png create mode 100644 src/main/res/drawable-mdpi/ic_image_black_48dp.png create mode 100644 src/main/res/drawable-mdpi/ic_image_white_48dp.png create mode 100644 src/main/res/drawable-xhdpi/ic_image_black_48dp.png create mode 100644 src/main/res/drawable-xhdpi/ic_image_white_48dp.png create mode 100644 src/main/res/drawable-xxhdpi/ic_image_black_48dp.png create mode 100644 src/main/res/drawable-xxhdpi/ic_image_white_48dp.png create mode 100644 src/main/res/drawable-xxxhdpi/ic_image_black_48dp.png create mode 100644 src/main/res/drawable-xxxhdpi/ic_image_white_48dp.png diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MediaAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MediaAdapter.java index 75ab964f4..21473dafd 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MediaAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MediaAdapter.java @@ -92,6 +92,8 @@ public class MediaAdapter extends RecyclerView.Adapter0IdihI998&O^-W#$ zE8eR<`gyLR?O%&Chls5choVhVmCp&?Gd)wx?0#|VP~L8%%w$p-R(yr$;{~C~*0aQ- zs?IgBWz4kTp0!A|+(Jmj5e0owZ&G_RIaKonL&qxNl4CJJy$iIb&5VA0&o>}y-{Vf+ zDHG1r1x#19Qr&G{7AbO*Pb!!_%zNG?L)Xr;3&OX}$oL zDwTSQHR(l^wA|V&5Tv(BaLS|4S6@E=HsQVMvgUa=7p*v^YH9g=O3?HaqZf1cUXtJS zaF%GD*rb`FVdQ&MBb@09A9bRsaA1 literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-hdpi/ic_image_white_48dp.png b/src/main/res/drawable-hdpi/ic_image_white_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..f9f1defa6df89b5a7a68df6787a4ba799d3bd3b2 GIT binary patch literal 450 zcmV;z0X_bSP)q8m|@f&vEk zXhJXy z)&q8Jdy{=h?m>-(r*@dK*d3epCi{|HgU+qz4*BYtIwp6bB0wo2#+nm8I>3B8iEGdk zTNzJQxB%cRn_*v)JJ1{dbN|paSFGhz>`QV3I>zMAKdKnfM6N&`Di|k|EDy3@h4PVK zk{o2e3gsieq-8-3jN^&)U)Wy&nw9O-LW-|?GEfU&#WGOH2p`=L$UkuoJ#eZRDaa7g sq|daVQ|=KHU?d>_qaXz-NI@l=ck_!~>**H-(*OVf07*qoM6N<$f*#evGXMYp literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-mdpi/ic_image_black_48dp.png b/src/main/res/drawable-mdpi/ic_image_black_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..6b7cd7838b5ab18a63036d58a054a7f7588df8d5 GIT binary patch literal 295 zcmV+?0oeYDP)A-PL#CT5Az5qiARtADF310vJ002ovPDHLkV1k7`cx3

0++mR7nD4pd~x$TQLGba6~{cu-M!3I>jYZG8L#~C$dSzGCa?>% zii{qBH_l~3H}Ow_R&mWIA6&_uY{DqeDkOK@%2_vI7ibl>$R-Q|t-=u5gh8NHSX1ob zZ91p^`0a>6o%RQ$Cqo6Qpk>-nPOXnuLHxL2AA)bf8YiVe5h%F;00009Znszw-prK{(xhG7jYOgXiB))yeH<#dZofRb8aKMh65v4Km(J=0tQxe zrh}*HlLr2tohObjWUF~<#BlwG<&g&AcZFKgNe6i} zfNYr$^8};!yxS34JUMjJ3C3@0i#mVas^%|TnZ!1yV0v))k9T{%%dlH>PGl;JESr7* z+|{QE>WW?mxX)euR&jJ~e$Hi8Zm9Tj<;&2I@{RDB)ul%4IcxY~~shuCjiJz7=%!}+XkP3S}BH?LlOXmQ{1 zbtX&xyQ`v;<^mP(Zkg7~vthON3ayZa*jUD$>Ib8bzq<89<;SOp*oW$l^*Ndhtbf|& z_sOY?7IbX4S=nH_$2U{x*PlA}wm*#j?DqCp9#AQ`XVkQh)Ab4a%EbAC=|-u?1WQ}Q jpDR|sd7z>M1oey&Pa+y;l`K*O#y*3mtDnm{r-UW|Gl}p9 literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-xhdpi/ic_image_white_48dp.png b/src/main/res/drawable-xhdpi/ic_image_white_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..2ffdb55f264ecd3610f90890f8202f93c00f72e1 GIT binary patch literal 570 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD0wg^q?%&M7z{Ke3;uuoF`1aP>Ea5IfQowI9-hvuwR$tP^fy(>8sSO2|8{wRtGpvc@#B$n~B~Rwm&yIIB)&jy;7gW zTKL?7mzK@v|L<(N|7b3=;GHmT*|XKxR_ zisKEuaTo73N#D@a7GnOhx@e+huI&M-u%#?A#q8EMMfY92V!WoXj#HDtTEZ^x>C~Zf8IWQby>8Ib0dT5wN0yQ*dG`x>m;y#Wc*hW`8x0OY*zD)2SPUjd28<` z%OxHB?A^isVY&9DKSD{2WgAXtCo%nb*|kec?7;kW6+k(LjH+Fa;+@JJK3|^tKESqacg#PH`B$rqARC7 zd%MkZMt5@hvrjR8&%gY(dA<2((|McjgN|CNN-%Kv%%!AW*-s8>?V(X;E-WZ=woz8* zFEJ8Z8N85l+X?3RzQbC^vr&$_DLwCFYoK;RUbat z-(B8t$Twx#pUf9UUF+-p4kt%=?q$)cm$I6Ze!W)eR=$#aqnhS(wd)(6-gA*-GW|JS zwZo2 z%KZE#Z{mW(7oYXad065%|NC>kxCb-epE^Dz$V+o6lvp*}@PG(!*bSAbW|7Mds?gT^6a-xmTi-mqa@VKe_ZakD+%`@Zp7xzarI_hplX7t#Zmc+sY!f zKxw`7Syq&tJaKvN&#$O5+^n z_ZshCtU3QBIX7$xUq~V2?OUGv9^CiWOO(^T%r@&-SBo8x!57l$26w)GSoAitg70-fYL!Fs4D0pxH?OYK z0NN{Zf#=z|*WcgR*Nc5u?c#q@FLg`a++*_Hs>gHM{%H#_+_K}n{jTkM=8OGCMic&L zzS!!1F0(?iSR7~#w@Gj1y7uXB-q=0U`Qt6Zc*2r*@AcEw=PzHVcePRY52Tj=sDEu@ z)5aPl$$#R%$(Q?;v)+Ln$oB+j`0kTi8*JWri^v1@Jzn3z47B=KyrldITi(a#Ydaq? z?_8evXQzIk&w|W1`muuSKm&UA8<_#!An{+divgs%zH<>nZzAWK4)!TkkhocJrtypa z|JrST^y|!=&hWU$4*ufI45QKb?W29#vZ|nZltoPJMC@EnvB;$6kXs3ztjAWe{+Y7z j83S_qnT3>)zHxug>)y95A}|=3X&5|R{an^LB{Ts5Ixu`p literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-xxxhdpi/ic_image_black_48dp.png b/src/main/res/drawable-xxxhdpi/ic_image_black_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..ab700a31baa62ff83bb872ceae6838e546c32080 GIT binary patch literal 1108 zcmeAS@N?(olHy`uVBq!ia0vp^2SAvE1xWt5x}=AJfkoQW#WAFU@$HSfSu&+E?H`W^ zcm_!yyuxj8b6Xa_&c1t%H&!jzeS6c%RnX-N*CLJ9Y4f@|rC-Oi>Wh3d5SSuyQCPIb za^lvjT1#H#MgMOSkT`KpW%ir=WtVI1&dWZD{x$!;lIJ891Y$m0(8jkqW~u+K!>@~5 zL#^hdwcS1>sP|DklV|riqxKb7O~iLPNizT!sW zpU=- zt+LvQ?t0E5nFs7?CxHwZh3ob<=M-|;S1c3Pm}Kct^FCPNi)ul`otL2sKU5jmACy14 z;dh(ylkR7}Oqai>H@|Ut#xT3~oXYPVK2o0fK|23bImEw5pRKL&zEv!5?AYk2-^hID zk;QDeCsLXIe^2Nf&aghfROw%w?7#fFFpswMdq%q_dY>MMURqZ@an7u`rh<$6uO8UF zB=#%g(MR!3YUtlEa%!h2%mK4spkrq6D6=lo%dSa!zwkKvV< zUu7(}?qj*=R#7#zx^4Cn*>7T&ru%{XDj^LE`Mg~gM4 zk27$;xpKE=+uN64RVu#%RWtdmH`-j|uk}*3P5ifz3%BLoQ#LW5Y^NCRc`;of>cq>? zcNGV}UzqMAthl?F-Qx7SJz@n_u6tQ79`ajX^gh>e@4V#>XZ0Po9Jri4;9(O31Hi(2Q$J&k*w zy6SS?Kaf*9H?i>u6jUAUuI4;+bbj1NrTC_TkITdNoS3c<^XKK&Hw389{_Af5m7r2a zh*T%Nn^9(g|E5D#ExVmI9op3rts0rA-ST?Enhmap=Bh;|s&kqL|Cqccw}Ag+gc|Re zX)BH_Y@EO7TJpTE7=@eD&IQiQ+^6)^_}YvmPP)66ob8F9u{h~?k?@b_^(|6cBGe_b z&je1^JlFqIJg~pmCup^ptl6`L-x-YH`SEG-y3UHx3vIVCg!01&SITmS$7 literal 0 HcmV?d00001 diff --git a/src/main/res/drawable-xxxhdpi/ic_image_white_48dp.png b/src/main/res/drawable-xxxhdpi/ic_image_white_48dp.png new file mode 100644 index 0000000000000000000000000000000000000000..7d5091ded87b138183db10e24afabf288766a598 GIT binary patch literal 1178 zcmeAS@N?(olHy`uVBq!ia0vp^2SAvE1xWt5x}=AJfhEz?#WAFU@$HTH?kQj8+duku zKYX{uF`Hi@cI&L>CHv1STzVC9adTs@QpXDS4X%nB^W3tnZ`ySIQ@Hr>P|%Evb3!hx zzwfywO3LDCPj)!Fr0?51<-3c|*Y@9^`MS!!x%Ob)`|~X`(ZS6HH_mc~MLg!RRog2! zJuA-3&R9n##Jv_m6CNCPra{IDmJ~vG^M`E_1vox7LE1u zZ+cJI-^TFQw6Z<$tMz%I=m_tI{lDhSee=L(@k`$%@6{K@7X05n>-UegN3~~oHXgnD zlB1ye@R7H+Cqlcv+CS^eU88tF=;HR}J0o9wscO3MEb21v2gP#1FYiU$-n%B-akshAlUq%dr2Wgkgg9k121<8!eMgm@X4en0Vrb&HYV#*KO+8*l_I& zqe8N82(m7C9>c%OHkirY4+w=Q4>v!7dks_K+@`Km;SRimKl z>HEZW6GOWteoCEW60z9(seA@6+gH_M7tU;7y#q>ySK_qmszmEKFR^C`IltfQyZriR zmrS7D{6M=+k9@yy+ht|83ipKiD$yJB_Pt;D`HX<-`l&h&|6YbBl-4mm_V|NGW>p-IQ#Xc^->KFOt$Tu>=MdQT+{k@GxwV{dvcGrB z-}DaQ6p(qP{Nen6jzCj~4F_C#^fpYFV0SP$ty$$$9P77fvWB=qJ@=Y|TCel#HosBs z(v>(`R@jpo7P + diff --git a/src/main/res/values/strings.xml b/src/main/res/values/strings.xml index c9ad3d891..87c44a9fd 100644 --- a/src/main/res/values/strings.xml +++ b/src/main/res/values/strings.xml @@ -412,6 +412,7 @@ audio video image + vector graphic PDF document Android App Contact diff --git a/src/main/res/values/themes.xml b/src/main/res/values/themes.xml index 0ba1106fe..9e757a626 100644 --- a/src/main/res/values/themes.xml +++ b/src/main/res/values/themes.xml @@ -80,8 +80,8 @@ 24dp 16dp - @drawable/ic_description_black_48dp - + @drawable/ic_image_black_48dp + @drawable/ic_description_black_48dp @drawable/ic_mic_black_48dp @drawable/ic_headset_black_48dp @drawable/ic_room_black_48dp @@ -236,8 +236,8 @@ 24dp 16dp - @drawable/ic_description_white_48dp - + @drawable/ic_image_white_48dp + @drawable/ic_description_white_48dp @drawable/ic_mic_white_48dp @drawable/ic_headset_white_48dp @drawable/ic_room_white_48dp