Added dark theme

This commit is contained in:
59436419 2017-01-17 20:31:14 +05:30
parent a4043eab83
commit 1e81f61760
4 changed files with 0 additions and 43 deletions

View file

@ -68,7 +68,6 @@ public class SettingsFragment extends PreferenceFragment
private Preference downloadPathAudioPreference; private Preference downloadPathAudioPreference;
private Preference themePreference; private Preference themePreference;
private SharedPreferences defaultPreferences; private SharedPreferences defaultPreferences;
private Preference themePreference;
@Override @Override
public void onCreate(final Bundle savedInstanceState) { public void onCreate(final Bundle savedInstanceState) {

View file

@ -27,26 +27,6 @@
<item name="download">@drawable/ic_file_download_white_24dp</item> <item name="download">@drawable/ic_file_download_white_24dp</item>
</style> </style>
<!-- Dark Theme-->
<style name="DarkTheme" parent="Theme.AppCompat">
<item name="android:actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="colorPrimary">@color/dark_youtube_primary_color</item>
<item name="colorPrimaryDark">@color/light_youtube_dark_color</item>
<item name="colorAccent">@color/dark_youtube_accent_color</item>
<item name="android:windowBackground">@color/dark_background_color</item>
</style>
<!-- Dark Theme-->
<style name="DarkTheme" parent="Theme.AppCompat">
<item name="android:actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="colorPrimary">@color/dark_youtube_primary_color</item>
<item name="colorPrimaryDark">@color/light_youtube_dark_color</item>
<item name="colorAccent">@color/dark_youtube_accent_color</item>
<item name="android:windowBackground">@color/dark_background_color</item>
</style>
<style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid"> <style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid">
<item name="android:displayOptions">showHome</item> <item name="android:displayOptions">showHome</item>
<item name="displayOptions">showHome</item> <item name="displayOptions">showHome</item>

View file

@ -29,12 +29,10 @@
<string-array name="theme_description_list"> <string-array name="theme_description_list">
<item>@string/light_theme_title</item> <item>@string/light_theme_title</item>
<item>@string/dark_theme_title</item> <item>@string/dark_theme_title</item>
<item>@string/black_theme_title</item>
</string-array> </string-array>
<string-array name="theme_list"> <string-array name="theme_list">
<item>@string/light_theme_title</item> <item>@string/light_theme_title</item>
<item>@string/dark_theme_title</item> <item>@string/dark_theme_title</item>
<item>@string/black_theme_title</item>
</string-array> </string-array>
<string name="default_audio_format_key">default_audio_format</string> <string name="default_audio_format_key">default_audio_format</string>

View file

@ -51,26 +51,6 @@
<item name="android:windowBackground">@color/light_youtube_accent_color</item> <item name="android:windowBackground">@color/light_youtube_accent_color</item>
</style> </style>
<!-- Dark Theme-->
<style name="DarkTheme" parent="Theme.AppCompat">
<item name="android:actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="colorPrimary">@color/dark_youtube_primary_color</item>
<item name="colorPrimaryDark">@color/light_youtube_dark_color</item>
<item name="colorAccent">@color/dark_youtube_accent_color</item>
<item name="android:windowBackground">@color/dark_background_color</item>
</style>
<!-- Dark Theme-->
<style name="DarkTheme" parent="Theme.AppCompat">
<item name="android:actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="actionBarStyle">@style/NewPipeActionbarTheme</item>
<item name="colorPrimary">@color/dark_youtube_primary_color</item>
<item name="colorPrimaryDark">@color/light_youtube_dark_color</item>
<item name="colorAccent">@color/dark_youtube_accent_color</item>
<item name="android:windowBackground">@color/dark_background_color</item>
</style>
<style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid"> <style name="NewPipeActionbarTheme" parent="Widget.AppCompat.Light.ActionBar.Solid">
<item name="android:displayOptions">showHome</item> <item name="android:displayOptions">showHome</item>
<item name="displayOptions">showHome</item> <item name="displayOptions">showHome</item>