mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 16:40:32 +00:00
Added dark theme
This commit is contained in:
parent
a4043eab83
commit
1e81f61760
@ -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) {
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user