Theming: enable day/night mode incl. app-wide setting.

This commit is contained in:
Dennis Guse
2020-09-06 16:06:13 +02:00
parent 1688076457
commit 4150d060ee
8 changed files with 56 additions and 1 deletions
+17
View File
@@ -221,4 +221,21 @@
<string name="settings_recording_key" translatable="false">settingsRecordingKey</string>
<integer name="buttonDelayMillis">1500</integer>
<!-- androidx.appcompat.app.AppCompatDelegate.setDefaultNightMode() -->
<string name="night_mode_key" translatable="false">nightMode</string>
<string name="night_mode_default" translatable="false">@string/night_mode_no_value</string>
<string name="night_mode_no_value" translatable="false">1</string>
<string name="night_mode_yes_value" translatable="false">2</string>
<string name="night_mode_system_value" translatable="false">-1</string>
<string-array name="night_mode_values">
<item>@string/night_mode_system_value</item>
<item>@string/night_mode_no_value</item>
<item>@string/night_mode_yes_value</item>
</string-array>
<string-array name="night_mode_options">
<item>@string/settings_night_mode_option_system</item>
<item>@string/settings_night_mode_option_day</item>
<item>@string/settings_night_mode_option_night</item>
</string-array>
</resources>
+5
View File
@@ -371,6 +371,11 @@ limitations under the License.
<string name="settings_recording_track_name_date_local_option">Date (local)</string>
<string name="settings_recording_track_name_number_option">Number</string>
<string name="settings_recording_track_name_title">Default track name</string>
<string name="settings_night_mode_title">UI Theme</string>
<string name="settings_night_mode_option_system">System</string>
<string name="settings_night_mode_option_day">Day</string>
<string name="settings_night_mode_option_night">Night</string>
<!-- Settings Reset -->
<string name="settings_reset">Reset</string>
<string name="settings_reset_confirm_message">All settings will be reverted to the default values. This will not delete any tracks on the device.</string>
+1 -1
View File
@@ -15,7 +15,7 @@ limitations under the License.
-->
<resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="ThemeCustom" parent="Theme.AppCompat.NoActionBar">
<style name="ThemeCustom" parent="Theme.AppCompat.DayNight.NoActionBar">
<!-- TODO Cleanup necessary due to change to appcompat -->
<!-- Auto generated -->
<item name="android:activatedBackgroundIndicator">@drawable/activated_background_holo_dark