From fc488869295b433beb8e0e591a6c196eec3b8f0e Mon Sep 17 00:00:00 2001 From: serso Date: Thu, 11 Feb 2016 23:08:09 +0100 Subject: [PATCH] Swap icons for light theme --- .../calculator/converter/ConverterFragment.java | 1 + .../res/drawable-hdpi/ic_swap_vert_black_24dp.png | Bin 0 -> 163 bytes .../res/drawable-mdpi/ic_swap_vert_black_24dp.png | Bin 0 -> 128 bytes .../drawable-xhdpi/ic_swap_vert_black_24dp.png | Bin 0 -> 186 bytes .../drawable-xxhdpi/ic_swap_vert_black_24dp.png | Bin 0 -> 230 bytes .../drawable-xxxhdpi/ic_swap_vert_black_24dp.png | Bin 0 -> 302 bytes 6 files changed, 1 insertion(+) create mode 100644 app/src/main/res/drawable-hdpi/ic_swap_vert_black_24dp.png create mode 100644 app/src/main/res/drawable-mdpi/ic_swap_vert_black_24dp.png create mode 100644 app/src/main/res/drawable-xhdpi/ic_swap_vert_black_24dp.png create mode 100644 app/src/main/res/drawable-xxhdpi/ic_swap_vert_black_24dp.png create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_swap_vert_black_24dp.png diff --git a/app/src/main/java/org/solovyev/android/calculator/converter/ConverterFragment.java b/app/src/main/java/org/solovyev/android/calculator/converter/ConverterFragment.java index 3f20b1fb..dbf9f09d 100644 --- a/app/src/main/java/org/solovyev/android/calculator/converter/ConverterFragment.java +++ b/app/src/main/java/org/solovyev/android/calculator/converter/ConverterFragment.java @@ -144,6 +144,7 @@ public class ConverterFragment extends BaseDialogFragment editTextFrom.addTextChangedListener(this); swapButton.setOnClickListener(this); + swapButton.setImageResource(App.getTheme().light ? R.drawable.ic_swap_vert_black_24dp : R.drawable.ic_swap_vert_white_24dp); if (savedInstanceState == null) { editTextFrom.setText(String.valueOf(getArguments().getDouble(EXTRA_VALUE, 1f))); diff --git a/app/src/main/res/drawable-hdpi/ic_swap_vert_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_swap_vert_black_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..b4466c8492b33165e2aac9c62a968c671f933aa0 GIT binary patch literal 163 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k0wldT1B8K8mZytjNCo5Dsfv8ehCD3a)lUZh z+R)_t>x1pdu7fKz${ZTfC!AF9?iM-9?k*uvp|-dt%Sn&z(4Pg&qdQ$w!t&+ca*7L?3JECyIq2Ed` ldC}x0>hr#L@-2N*&Fq-{?t4VOtU1sz44$rjF6*2UngC=SOwIrR literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxhdpi/ic_swap_vert_black_24dp.png b/app/src/main/res/drawable-xxhdpi/ic_swap_vert_black_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..78e865dfae18994c1e7c0f40fdc9a57294a00fc0 GIT binary patch literal 230 zcmeAS@N?(olHy`uVBq!ia0vp^9w5xY0wn)GsXhaw)_S@)hEy=Vy=lwGWXQw%u>7;d zP5E^`jVV%HQ(HM$i*!srpE8M;?e6HPn|Ly0h2He*io8Fw_lhlN$(-EItD7@@|IM(* z;D(YD_Br82%WF0*7E_;EGP!h**57GSAkRVsh3`PXDmxSYTv%pI=5wm-9sJqnOrFogIiPnmusjg bEmB{gCV4q2c*1p{!x=nX{an^LB{Ts56RcS| literal 0 HcmV?d00001 diff --git a/app/src/main/res/drawable-xxxhdpi/ic_swap_vert_black_24dp.png b/app/src/main/res/drawable-xxxhdpi/ic_swap_vert_black_24dp.png new file mode 100644 index 0000000000000000000000000000000000000000..36aa872e575902c08f674b3d5b14dbaa6746bf20 GIT binary patch literal 302 zcmeAS@N?(olHy`uVBq!ia0vp^2_VeD0wg^q?%xcgzIwVihEy=Vy=|R$*g=5h;x5bo zSB_sVeULN9LZCxc;k3X8-tf{>3GsGE{>_;=bLPzx9tFa#PleK6r3*LeUOD{i&GX}e zVXHQ_PB43wqRseL# nC+XYgzi-zyHa6Z|f6Y8^((bn>+9SgTe~DWM4fgX4RM literal 0 HcmV?d00001