Add dark mode
This commit is contained in:
10
app/src/main/res/values/arrays.xml
Normal file
10
app/src/main/res/values/arrays.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<resources>
|
||||
<string-array name="mode">
|
||||
<item>@string/theme_light</item>
|
||||
<item>@string/theme_dark</item>
|
||||
<item>@string/theme_default</item>
|
||||
</string-array>
|
||||
<string name="theme_light">Light</string>
|
||||
<string name="theme_dark">Dark</string>
|
||||
<string name="theme_default">System Default</string>
|
||||
</resources>
|
||||
@@ -1,9 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="colorPrimary">#3F51B5</color>
|
||||
<color name="colorNavPrimary">#FFFFFF</color>
|
||||
<color name="colorPrimaryDark">#3867d6</color>
|
||||
<color name="colorAccent">#1c49b4</color>
|
||||
<color name="icons">#434343</color>
|
||||
<color name="icons">#797979</color>
|
||||
<color name="swipeBackground">#E74C3C</color>
|
||||
<color name="swipeIcon">#FFFFFF</color>
|
||||
</resources>
|
||||
|
||||
@@ -64,4 +64,8 @@
|
||||
<string name="websocket_no_network">Waiting for network</string>
|
||||
<string name="connection">%s@%s</string>
|
||||
<string name="no_messages_yet">There are no messages, yet.\nSend a message to Gotify\nand it will appear here.</string>
|
||||
<string name="title_activity_settings">Settings</string>
|
||||
<string name="settings_appearance">Appearance</string>
|
||||
<string name="setting_theme">Theme</string>
|
||||
<string name="setting_key_theme">theme</string>
|
||||
</resources>
|
||||
|
||||
@@ -1,20 +1,27 @@
|
||||
<resources>
|
||||
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
|
||||
<style name="AppTheme" parent="Theme.MaterialComponents.DayNight">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
<style name="AppTheme.Nav">
|
||||
<item name="colorPrimary">@color/colorNavPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.NoActionBar">
|
||||
<item name="windowActionBar">false</item>
|
||||
<item name="windowNoTitle">true</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
|
||||
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.MaterialComponents.Dark.ActionBar" />
|
||||
|
||||
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
|
||||
<style name="AppTheme.PopupOverlay" parent="AppTheme" />
|
||||
|
||||
<style name="AppTheme.Dialog" parent="AppTheme" >
|
||||
<item name="colorPrimary">@color/colorNavPrimary</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user