From dfeed3d0eb420b9489603bd800dba026d2f4dce3 Mon Sep 17 00:00:00 2001 From: 59436419 <kb@ksyko.com> Date: Tue, 17 Jan 2017 22:31:00 +0530 Subject: [PATCH] Added dark theme --- app/src/main/java/org/schabi/newpipe/Themer.java | 1 + app/src/main/res/values-v21/styles.xml | 1 + app/src/main/res/values/colors.xml | 1 + app/src/main/res/values/styles.xml | 4 ---- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/Themer.java b/app/src/main/java/org/schabi/newpipe/Themer.java index 048837cec..b16ad0b56 100644 --- a/app/src/main/java/org/schabi/newpipe/Themer.java +++ b/app/src/main/java/org/schabi/newpipe/Themer.java @@ -17,5 +17,6 @@ public class Themer extends AppCompatActivity { .getString("theme", getResources().getString(R.string.light_theme_title)), getResources().getString(R.string.dark_theme_title))) { setTheme(R.style.DarkTheme); } + else setTheme(R.style.BlackTheme); } } \ No newline at end of file diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml index 44b11f3b0..37d8a65a9 100644 --- a/app/src/main/res/values-v21/styles.xml +++ b/app/src/main/res/values-v21/styles.xml @@ -33,6 +33,7 @@ <item name="rss">@drawable/ic_rss_feed_black_24dp</item> </style> + <style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid"> <item name="android:displayOptions">showHome</item> <item name="displayOptions">showHome</item> diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 941e1b741..62d05536b 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -33,5 +33,6 @@ <color name="middle_gray">#E0E0E0</color> <color name="gray">#616161</color> + <color name="black">#000</color> </resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index cc5eb39fe..2339c12a5 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -49,10 +49,6 @@ <item name="rss">@drawable/ic_rss_feed_black_24dp</item> </style> - <style name="BlackTheme" parent="DarkTheme"> - <item name="android:windowBackground">@color/light_youtube_accent_color</item> - </style> - <style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid"> <item name="android:displayOptions">showHome</item> <item name="displayOptions">showHome</item>