From 95da770dc94f986c3a561681e986c006e6eac2f9 Mon Sep 17 00:00:00 2001 From: Somethingweirdhere Date: Mon, 18 Jun 2018 18:48:12 +0200 Subject: [PATCH] UI tweaks --- .../newpipe/settings/ContentSettingsMain.java | 3 +++ .../main/res/drawable-hdpi/ic_add_black_24dp.png | Bin 187 -> 0 bytes .../main/res/drawable-hdpi/ic_add_white_24dp.png | Bin 194 -> 0 bytes .../main/res/drawable-mdpi/ic_add_black_24dp.png | Bin 164 -> 0 bytes .../main/res/drawable-mdpi/ic_add_white_24dp.png | Bin 172 -> 0 bytes .../main/res/drawable-xhdpi/ic_add_black_24dp.png | Bin 221 -> 0 bytes .../main/res/drawable-xhdpi/ic_add_white_24dp.png | Bin 227 -> 0 bytes .../res/drawable-xxhdpi/ic_add_black_24dp.png | Bin 352 -> 0 bytes .../res/drawable-xxhdpi/ic_add_white_24dp.png | Bin 349 -> 0 bytes app/src/main/res/drawable/ic_add_black_24dp.xml | 9 +++++++++ app/src/main/res/drawable/ic_add_white_24dp.xml | 5 +++++ .../main/res/layout/dialog_contentsettingtab.xml | 2 +- 12 files changed, 18 insertions(+), 1 deletion(-) delete mode 100644 app/src/main/res/drawable-hdpi/ic_add_black_24dp.png delete mode 100644 app/src/main/res/drawable-hdpi/ic_add_white_24dp.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_add_black_24dp.png delete mode 100644 app/src/main/res/drawable-mdpi/ic_add_white_24dp.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png delete mode 100644 app/src/main/res/drawable-xhdpi/ic_add_white_24dp.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_add_black_24dp.png delete mode 100644 app/src/main/res/drawable-xxhdpi/ic_add_white_24dp.png create mode 100644 app/src/main/res/drawable/ic_add_black_24dp.xml create mode 100644 app/src/main/res/drawable/ic_add_white_24dp.xml diff --git a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java index 8fce17b1e..764f89ce1 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java +++ b/app/src/main/java/org/schabi/newpipe/settings/ContentSettingsMain.java @@ -2,8 +2,10 @@ package org.schabi.newpipe.settings; import android.content.Context; import android.content.SharedPreferences; +import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.graphics.Canvas; +import android.graphics.Color; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.support.annotation.NonNull; @@ -120,6 +122,7 @@ public class ContentSettingsMain extends Fragment { contentSettingsMainDialog.setOnAddListener(ContentSettingsMain.this::addTab); contentSettingsMainDialog.show(getFragmentManager(), "select_channel"); }); + fab.setBackgroundTintList(ColorStateList.valueOf(getResources().getColor(R.color.light_settings_accent_color))); } diff --git a/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png b/app/src/main/res/drawable-hdpi/ic_add_black_24dp.png deleted file mode 100644 index 9dabcc49012be62e08d25cc8faf98c2258d5544c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 187 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtCQlc~kcwMxZ*1gjFc4t9(4!u~ zp(%U(*sDlY)X{7e18zV>bV~N=#7K{Fh#pCnwYye4hGPRT8Kh4i=~%h~V!# zb&EmgVC?t4z2;o|=P@xbTwqkVzS~+WdT{~oyIFgVz*U17^0Q*>x#k(UO`p5B>j{T= RM$#3KsHdx+%Q~loCIJ3}JFNf! diff --git a/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png b/app/src/main/res/drawable-hdpi/ic_add_white_24dp.png deleted file mode 100644 index e8515bd8f773aecb18a5520644231d495d6eaed1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 194 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA1|-9oezpUtPEQxdkcwMxZ*1gjFc4t9(4!u~ zp(%U(*syw?7xYMU+un5C_ejhA`j36IQSs# z5Nma>n|ZStgLlF80_Hxq#P>HD85rsqPMp6hJ9TZ~4z_aNxFooGAfus=;pb0{iqjHz Z%Nf0TWc&?pKFtKld%F6$taD0e0syzaKED6} diff --git a/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png b/app/src/main/res/drawable-mdpi/ic_add_black_24dp.png deleted file mode 100644 index c78873b814a4398b015b92d7bd1cc74070365db7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 164 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=ffJY)==*kcwN$2@3o(m_N#ykjZG8TQ0goL|Ar*2=82 zaOEtKIc-Nbs2H6wl-FfPXuHDrgvmQYx2vc3q#*~x-`UrGFOHAc4z!lR)78&qol`;+ E04VA>f&c&j diff --git a/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png b/app/src/main/res/drawable-mdpi/ic_add_white_24dp.png deleted file mode 100644 index f5b2cd3a6d9fd6eb8ec5cf476cd7ee7c07f4d905..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 172 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=k0IPZ!6Kid%258gd;_;Au@fza&7g zY8oG(?NaaW_fEPMXiPfFbLo(LMe@A+3a{oQW~~hjYOC0u^<+bA5&un~eg=jE_Kce( zZhcDG#ALx^yN^+CX-+6tgFi#i{;S58Q#a+j=-k5$QOD)+SG-m|Vwar%o#)D)?VFQ9 N!k(^vF6*2UngHCGJQe@| diff --git a/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png b/app/src/main/res/drawable-xhdpi/ic_add_black_24dp.png deleted file mode 100644 index 5f6334d7f51d15972139a6b3d2dd6f88ee2b8f85..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 221 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=OFUg1Ln>~)y=l$WU?9M9;m&2R z4MJ;d`=++usOI8-%Km%FNwJT-K64+2a(il;9lmROSw8j&o*nLx616XBC#IU{v>XaSW-r_4dw2&O;6oZ4b4R zxE>$)_K0a4qpU*#hvE&3Ddi8vPPjhhx6!Xz`rzqCuMW+l`P0i!NsGUmab0!oy7Sdf z_KLrY`pCl2z`!8Dz`(@dz`(!(G?+nwfdQ)^&~7OBvt(V}#TC+0jCqy6AEeK|pKNzM z-uuc_Zc9@Jo7d^e^Vjb2nfH#jee?Sq7Kn}*9tH*=VrDq-kEdW|xwP{8s|7nUnV)O@ zXS2L7_LlkmhDT*z1pegAu84csDFL&F6xspm_yujJTy^v(-xpu^M><9PZ-IQTc>m7L S?i#y5hIzXBxvXU{vvRaSW-r_4dw2-lhPF) + + diff --git a/app/src/main/res/drawable/ic_add_white_24dp.xml b/app/src/main/res/drawable/ic_add_white_24dp.xml new file mode 100644 index 000000000..e3979cd7f --- /dev/null +++ b/app/src/main/res/drawable/ic_add_white_24dp.xml @@ -0,0 +1,5 @@ + + + diff --git a/app/src/main/res/layout/dialog_contentsettingtab.xml b/app/src/main/res/layout/dialog_contentsettingtab.xml index 4df7214f4..311d1441f 100644 --- a/app/src/main/res/layout/dialog_contentsettingtab.xml +++ b/app/src/main/res/layout/dialog_contentsettingtab.xml @@ -12,7 +12,7 @@ android:paddingBottom="4dp" android:paddingTop="4dp" app:cardCornerRadius="5dp" - app:cardElevation="12dp"> + app:cardElevation="4dp">