Use a switch preference to follow device theme

This commit is contained in:
bopol 2020-07-03 18:44:34 +02:00 committed by Stypox
parent a713ce2126
commit 22b2f52f8c
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
7 changed files with 55 additions and 46 deletions

View file

@ -179,23 +179,18 @@
<string name="light_theme_key" translatable="false">light_theme</string>
<string name="dark_theme_key" translatable="false">dark_theme</string>
<string name="black_theme_key" translatable="false">black_theme</string>
<string name="device_dark_theme_key" translatable="false">device_dark_theme</string>
<string name="device_black_theme_key" translatable="false">device_black_theme</string>
<string name="default_theme_value" translatable="false">@string/dark_theme_key</string>
<string-array name="theme_values_list" translatable="false">
<item>@string/light_theme_key</item>
<item>@string/dark_theme_key</item>
<item>@string/black_theme_key</item>
<item>@string/device_dark_theme_key</item>
<item>@string/device_black_theme_key</item>
</string-array>
<string-array name="theme_description_list" translatable="false">
<item>@string/light_theme_title</item>
<item>@string/dark_theme_title</item>
<item>@string/black_theme_title</item>
<item>@string/device_dark_theme_title</item>
<item>@string/device_black_theme_title</item>
</string-array>
<string name="use_device_theme_key" translatable="false">use_device_theme_key</string>
<!-- Caption Size -->
<string name="caption_settings_key" translatable="false">caption_settings_key</string>

View file

@ -711,4 +711,6 @@
<string name="paid_content">This content is only available to users who have paid, so it cannot be streamed or downloaded by NewPipe.</string>
<string name="featured">Featured</string>
<string name="radio">Radio</string>
<string name="follow_device_theme_title">Follow device theme</string>
<string name="follow_device_theme_summary">The app theme will follow your device theme. It may not work for devices below Android 10.</string>
</resources>