From 4d1cc5b17456f86143d2a670521c8a97d310565a Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Wed, 8 Jul 2020 15:03:35 +0530 Subject: [PATCH] Replace phone link PNGs with vector drawables. --- res/drawable-hdpi/ic_phonelink_off_white_36dp.png | Bin 378 -> 0 bytes res/drawable-hdpi/ic_phonelink_white_36dp.png | Bin 220 -> 0 bytes res/drawable-mdpi/ic_phonelink_off_white_36dp.png | Bin 277 -> 0 bytes res/drawable-mdpi/ic_phonelink_white_36dp.png | Bin 168 -> 0 bytes .../ic_phonelink_off_white_36dp.png | Bin 412 -> 0 bytes res/drawable-xhdpi/ic_phonelink_white_36dp.png | Bin 217 -> 0 bytes .../ic_phonelink_off_white_36dp.png | Bin 557 -> 0 bytes res/drawable-xxhdpi/ic_phonelink_white_36dp.png | Bin 323 -> 0 bytes .../ic_phonelink_off_white_36dp.png | Bin 753 -> 0 bytes res/drawable-xxxhdpi/ic_phonelink_white_36dp.png | Bin 420 -> 0 bytes res/drawable/ic_phonelink_36dp.xml | 5 +++++ res/drawable/ic_phonelink_off_36dp.xml | 5 +++++ res/xml/remotekeyboardplugin_keyboard.xml | 2 +- .../RemoteKeyboardService.java | 4 ++-- 14 files changed, 13 insertions(+), 3 deletions(-) delete mode 100644 res/drawable-hdpi/ic_phonelink_off_white_36dp.png delete mode 100644 res/drawable-hdpi/ic_phonelink_white_36dp.png delete mode 100644 res/drawable-mdpi/ic_phonelink_off_white_36dp.png delete mode 100644 res/drawable-mdpi/ic_phonelink_white_36dp.png delete mode 100644 res/drawable-xhdpi/ic_phonelink_off_white_36dp.png delete mode 100644 res/drawable-xhdpi/ic_phonelink_white_36dp.png delete mode 100644 res/drawable-xxhdpi/ic_phonelink_off_white_36dp.png delete mode 100644 res/drawable-xxhdpi/ic_phonelink_white_36dp.png delete mode 100644 res/drawable-xxxhdpi/ic_phonelink_off_white_36dp.png delete mode 100644 res/drawable-xxxhdpi/ic_phonelink_white_36dp.png create mode 100644 res/drawable/ic_phonelink_36dp.xml create mode 100644 res/drawable/ic_phonelink_off_36dp.xml diff --git a/res/drawable-hdpi/ic_phonelink_off_white_36dp.png b/res/drawable-hdpi/ic_phonelink_off_white_36dp.png deleted file mode 100644 index b57c95fa4c0e06ec17da4750f652a2ab441d842a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 378 zcmV-=0fqjFP)vLSq~q`>2X9`-qY11i3I^b?8i156*sxe@Y3o-P z@vY0iz&w|3m=xN7*g$fxJ`{|YxUovj8MZ~`0XQV$x_oW=^hDJ>XtR*X3-#+(l$ZbbHC%o#Dw z&0;al^_azDnhVD?7mR7{C>GP)iUAXx1!K;M5jXh?8{YSb+R(Hsye{R|aq;oX31JaO zKkbYeImV0}V@8fKA2)Sj%uUfJ#7^G31V87(h`Y97#NA`lgc0|EEhH00+!~S}&MqApigX07*qoM6N<$f)HP$dH?_b diff --git a/res/drawable-hdpi/ic_phonelink_white_36dp.png b/res/drawable-hdpi/ic_phonelink_white_36dp.png deleted file mode 100644 index c6435eabc45272bf59aab9c546d991e627feafa6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 220 zcmV<203-j2P)40o!MjL7Ts(!F;6;R7%Pps{v{SAiuEN_vOTa*?@HbTb-f#Q^&l;zc`r+7e z=7x11_n0GX&mEu!w&Du4umjY?PU&d8U5YLvBMhLGR4|aal(WNn|}jE Wjmj{5s!YEC0000__~K6uz_00000NkvXXu0mjfTN`X3 diff --git a/res/drawable-mdpi/ic_phonelink_white_36dp.png b/res/drawable-mdpi/ic_phonelink_white_36dp.png deleted file mode 100644 index 04f4376cb6e7dd15571bf7423d81ba073aaa4294..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 168 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8K8zNd?0NCo5DD;v354R~4~=6v6} zo0GNOE>nI%tMV*W2`v?oy0d6Ic9}{sY<{mM*a3esp5Spi!j)=rHbK$nR&RiV^d-%8d)}#a RH3F?>@O1TaS?83{1OVFuJ)-~s diff --git a/res/drawable-xhdpi/ic_phonelink_off_white_36dp.png b/res/drawable-xhdpi/ic_phonelink_off_white_36dp.png deleted file mode 100644 index 44d17e82ab4e0418546d9758086cda1eb16ca122..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 412 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY0wn)GsXoKNz?kgm;uuoF`1XdO7jvM5>%;U! zmXk(D{#u+git$#MaCS)mw|8{8z?#D)k3_;HIHX+89Z`JVcxLC>ki+4Bk81zlwsPf} z&of-T-pblNtMt2cRlWB45_QwBj^dT4!sQ)=98^!2xG&j#OJRNs2r1otrknoCe1gBz zh159VsVobAs|0#7RC%TdHQW=P&axo6t&WA^$_o_+(fKYAEeqx^S*Dj^^HOW}7RjL5 zrD-fu{md`t~ zzJTYFC(k4#RODIBwsVPSv&|*D)n~k>@b15-*5S$X$y2q|Gg^{mNqfv{1% znHN_}u*98;H4{9s2zGs(D8bHQ!NG=3?US3egd1UItG-65#rF+stx ziG_2Q4UkkVdHb3}&11p>$0hUlvs|J+J5F_b?lX64)QlXU5+N0jfP(xq=6#2CZi=}B P-OAwU>gTe~DWM4f0~J+{ diff --git a/res/drawable-xxhdpi/ic_phonelink_off_white_36dp.png b/res/drawable-xxhdpi/ic_phonelink_off_white_36dp.png deleted file mode 100644 index aa2fbc92df2d1cf671a5857ced3ea6422c93475a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 557 zcmeAS@N?(olHy`uVBq!ia0vp^IUvlz0wh)Q=esd5Fn;lLaSW+oe0$4qm9Qhj@rRBN zpQ=`g_AB1FT_Lb_Q^b@CLH`BM7#LlTSgSk{3On@g?c8IM-)oPR*8R^*NZePHa5}?8 zs`uaNPdc-w)YtEq+v8Of!MrvtRd!3)Rycv;nTj!Al0Tgs~w0k zXSJ7Jkb4%qZn2b@_h$qD&l@JW&tyG&*iM~uLE??aDnQlM(>Z3f&lP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p|qC1#i_HpM$AaO7yN{x$;``V5|~elF{r5}E+j)|8h3 diff --git a/res/drawable/ic_phonelink_36dp.xml b/res/drawable/ic_phonelink_36dp.xml new file mode 100644 index 00000000..58bbe223 --- /dev/null +++ b/res/drawable/ic_phonelink_36dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/res/drawable/ic_phonelink_off_36dp.xml b/res/drawable/ic_phonelink_off_36dp.xml new file mode 100644 index 00000000..8f6e6d62 --- /dev/null +++ b/res/drawable/ic_phonelink_off_36dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/res/xml/remotekeyboardplugin_keyboard.xml b/res/xml/remotekeyboardplugin_keyboard.xml index 858745a8..ce839ae7 100644 --- a/res/xml/remotekeyboardplugin_keyboard.xml +++ b/res/xml/remotekeyboardplugin_keyboard.xml @@ -19,7 +19,7 @@ android:keyWidth="40%" /> --> diff --git a/src/org/kde/kdeconnect/Plugins/RemoteKeyboardPlugin/RemoteKeyboardService.java b/src/org/kde/kdeconnect/Plugins/RemoteKeyboardPlugin/RemoteKeyboardService.java index d3f7ab6e..6b74126e 100644 --- a/src/org/kde/kdeconnect/Plugins/RemoteKeyboardPlugin/RemoteKeyboardService.java +++ b/src/org/kde/kdeconnect/Plugins/RemoteKeyboardPlugin/RemoteKeyboardService.java @@ -74,8 +74,8 @@ public class RemoteKeyboardService List keys = currentKeyboard.getKeys(); boolean connected = RemoteKeyboardPlugin.isConnected(); // Log.d("RemoteKeyboardService", "Updating keyboard connection icon, connected=" + connected); - int disconnectedIcon = R.drawable.ic_phonelink_off_white_36dp; - int connectedIcon = R.drawable.ic_phonelink_white_36dp; + int disconnectedIcon = R.drawable.ic_phonelink_off_36dp; + int connectedIcon = R.drawable.ic_phonelink_36dp; int statusKeyIdx = 3; keys.get(statusKeyIdx).icon = ContextCompat.getDrawable(this, connected ? connectedIcon : disconnectedIcon); inputView.invalidateKey(statusKeyIdx);