diff options
author | stefan-niedermann <info@niedermann.it> | 2019-09-27 23:22:43 +0300 |
---|---|---|
committer | stefan-niedermann <info@niedermann.it> | 2019-09-27 23:22:43 +0300 |
commit | 56e1f8e9b0ec3833e5c2155c43c3a71a52ee039f (patch) | |
tree | 6e3135688b7021fd787d7f4a65948de10cf394f1 /app/src/main/res | |
parent | a9f9bedf187f8a2b963ce638f8a5905efe4f7d36 (diff) |
#108 dark mode
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/setup.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/values/styles.xml | 8 | ||||
-rw-r--r-- | app/src/main/res/xml/settings.xml | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/app/src/main/res/values/setup.xml b/app/src/main/res/values/setup.xml index c375cc994..66aa2cefb 100644 --- a/app/src/main/res/values/setup.xml +++ b/app/src/main/res/values/setup.xml @@ -4,7 +4,7 @@ <string name="shared_preference_last_account" translatable="false">it.niedermann.nextcloud.deck.last_account</string> <string name="pref_key_wifi_only" translatable="false">wifiOnly</string> - <string name="pref_key_wifi_only" translatable="false">wifiOnly</string> + <string name="pref_key_dark_theme" translatable="false">darkTheme</string> <!-- To be concatenated with the account id --> <string name="shared_preference_last_board_for_account_" translatable="false">it.niedermann.nextcloud.deck.last_board_for_account_</string> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bcfa7f19a..bfc427406 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -131,6 +131,7 @@ <string name="action_card_list_rename_column">Rename column</string> <string name="simple_rename">Rename</string> <string name="simple_settings">Settings</string> + <string name="settings_theme_title">Dark theme</string> <string name="pref_value_wifi_and_mobile">Sync on Wi-Fi and mobile data</string> <string name="pref_value_wifi_only">Sync only on Wi-Fi</string> <string name="pref_value_theme_light">Light</string> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index cffc67981..79a74c776 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -7,14 +7,18 @@ <item name="colorAccent">@color/primary</item> </style> - <!-- Base application theme. --> + <style name="AppTheme.NoActionBar" parent="AppTheme"> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + </style> + <style name="DarkAppTheme" parent="ThemeOverlay.AppCompat.Dark.ActionBar"> <item name="colorPrimary">@color/primary</item> <item name="colorPrimaryDark">@color/primary</item> <item name="colorAccent">@color/primary</item> </style> - <style name="AppTheme.NoActionBar" parent="AppTheme"> + <style name="DarkAppTheme.NoActionBar" parent="DarkAppTheme"> <item name="windowActionBar">false</item> <item name="windowNoTitle">true</item> </style> diff --git a/app/src/main/res/xml/settings.xml b/app/src/main/res/xml/settings.xml index 0cb12500a..98a7220fa 100644 --- a/app/src/main/res/xml/settings.xml +++ b/app/src/main/res/xml/settings.xml @@ -11,6 +11,6 @@ android:defaultValue="@string/pref_value_theme_light" android:icon="@drawable/ic_brightness_2_grey600_24dp" android:key="@string/pref_key_dark_theme" - android:title="@string/pref_value_dark_theme" /> + android:title="@string/settings_theme_title" /> </PreferenceScreen> |