mirror of https://github.com/tasks/tasks
Add AppCompat Day/Night theme
parent
18d1ae5ec6
commit
2e9227a97a
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="background_color">#303030</color>
|
||||
<color name="background_color_dialog">#424242</color>
|
||||
<color name="icon_tint">#ffffff</color>
|
||||
<color name="drawer_color">#303030</color>
|
||||
<color name="drawer_color_selected">#202020</color>
|
||||
<color name="text_primary">#ffffffff</color> <!-- 100% white -->
|
||||
<color name="text_secondary">#b3ffffff</color> <!-- 70% white -->
|
||||
<color name="text_tertiary">#80ffffff</color> <!-- 50% white -->
|
||||
<color name="divider">#1fffffff</color> <!-- 12% white -->
|
||||
</resources>
|
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<item name="alpha_secondary" format="float" type="dimen">0.70</item>
|
||||
<item name="alpha_disabled" format="float" type="dimen">0.50</item>
|
||||
</resources>
|
@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<style name="popup_overlay" parent="ThemeOverlay.AppCompat" />
|
||||
</resources>
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="DarkOverride" parent="DarkBase">
|
||||
<style name="TasksOverride" parent="Tasks">
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
</style>
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="LightOverride" parent="LightBase">
|
||||
<item name="android:windowDrawsSystemBarBackgrounds">true</item>
|
||||
<item name="android:statusBarColor">@android:color/transparent</item>
|
||||
</style>
|
||||
</resources>
|
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="Tasks" parent="Theme.AppCompat.DayNight.NoActionBar">
|
||||
<item name="android:windowBackground">@color/background_color</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="asContentBackground">@color/background_color</item>
|
||||
<item name="asTextColor">@color/text_primary</item>
|
||||
<item name="asTextColorHint">@color/text_tertiary</item>
|
||||
<item name="icon_tint">@color/icon_tint</item>
|
||||
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
|
||||
<item name="android:actionModeBackground">?attr/colorPrimary</item>
|
||||
<item name="alertDialogTheme">@style/TasksDialog</item>
|
||||
<item name="alpha_secondary">@dimen/alpha_secondary</item>
|
||||
<item name="alpha_disabled">@dimen/alpha_disabled</item>
|
||||
<item name="android:textColorPrimary">@color/text_primary</item>
|
||||
<item name="android:textColorSecondary">@color/text_secondary</item>
|
||||
<item name="android:textColorTertiary">@color/text_tertiary</item>
|
||||
<item name="dividerColor">@color/divider</item>
|
||||
</style>
|
||||
|
||||
<style name="TasksOverride" parent="Tasks">
|
||||
</style>
|
||||
|
||||
<style name="TasksDialog" parent="@style/Theme.AppCompat.DayNight.Dialog">
|
||||
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
||||
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
||||
<item name="android:windowBackground">@color/background_color_dialog</item>
|
||||
<item name="asTextColor">@color/text_primary</item>
|
||||
<item name="icon_tint">@color/icon_tint</item>
|
||||
</style>
|
||||
|
||||
<style name="ThemeBlack" parent="TasksOverride">
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
<item name="asContentBackground">@android:color/black</item>
|
||||
</style>
|
||||
|
||||
<style name="Wallpaper" parent="TasksOverride">
|
||||
<item name="android:windowBackground">@color/black_38</item>
|
||||
<item name="asContentBackground">@color/black_38</item>
|
||||
<item name="android:windowShowWallpaper">true</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<style name="BaseBlack" parent="DarkOverride">
|
||||
<item name="android:windowBackground">@android:color/black</item>
|
||||
<item name="asContentBackground">@android:color/black</item>
|
||||
</style>
|
||||
</resources>
|
@ -1,43 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="DarkBase" parent="Theme.AppCompat.NoActionBar">
|
||||
<item name="popup_theme">@style/ThemeOverlay.AppCompat</item>
|
||||
<item name="android:windowBackground">@color/md_dark_background</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="drawer_background">@color/drawer_dark_background</item>
|
||||
<item name="drawer_background_selected">@color/drawer_selected_dark</item>
|
||||
<item name="asContentBackground">@color/md_dark_background</item>
|
||||
<item name="asTextColor">@color/white_100</item>
|
||||
<item name="asTextColorHint">@color/white_50</item>
|
||||
<item name="icon_tint">@android:color/white</item>
|
||||
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
|
||||
<item name="android:actionModeBackground">?attr/colorPrimary</item>
|
||||
<item name="alertDialogTheme">@style/DialogBaseDark</item>
|
||||
<item name="alpha_secondary">@dimen/alpha_secondary_dark</item>
|
||||
<item name="alpha_disabled">@dimen/alpha_disabled_dark</item>
|
||||
<item name="android:textColorPrimary">@color/white_100</item>
|
||||
<item name="android:textColorSecondary">@color/white_70</item>
|
||||
<item name="android:textColorTertiary">@color/white_50</item>
|
||||
<item name="dividerColor">@color/white_12</item>
|
||||
</style>
|
||||
|
||||
<style name="DarkOverride" parent="DarkBase">
|
||||
</style>
|
||||
|
||||
<style name="DialogBaseDark" parent="@style/Theme.AppCompat.Dialog">
|
||||
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
||||
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
||||
<item name="android:windowBackground">@color/dialog_dark_background</item>
|
||||
<item name="asTextColor">@color/white_100</item>
|
||||
<item name="icon_tint">@android:color/white</item>
|
||||
</style>
|
||||
|
||||
<style name="Wallpaper" parent="DarkOverride">
|
||||
<item name="android:windowBackground">@color/black_38</item>
|
||||
<item name="asContentBackground">@color/black_38</item>
|
||||
<item name="android:windowShowWallpaper">true</item>
|
||||
</style>
|
||||
|
||||
|
||||
</resources>
|
@ -1,36 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="LightBase" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="popup_theme">@style/ThemeOverlay.AppCompat.Light</item>
|
||||
<item name="android:windowBackground">@color/md_light_background</item>
|
||||
<item name="windowActionModeOverlay">true</item>
|
||||
<item name="drawer_background">@color/drawer_light_background</item>
|
||||
<item name="drawer_background_selected">@color/drawer_selected_light</item>
|
||||
<item name="asContentBackground">@color/md_light_background</item>
|
||||
<item name="asTextColor">@color/black_87</item>
|
||||
<item name="asTextColorHint">@color/black_38</item>
|
||||
<item name="icon_tint">@android:color/black</item>
|
||||
<item name="android:spinnerItemStyle">@style/SpinnerNoPadding</item>
|
||||
<item name="android:actionModeBackground">?attr/colorPrimary</item>
|
||||
<item name="alertDialogTheme">@style/LightDialogBase</item>
|
||||
<item name="alpha_secondary">@dimen/alpha_secondary_light</item>
|
||||
<item name="alpha_disabled">@dimen/alpha_disabled_light</item>
|
||||
<item name="android:textColorPrimary">@color/black_87</item>
|
||||
<item name="android:textColorSecondary">@color/black_54</item>
|
||||
<item name="android:textColorTertiary">@color/black_38</item>
|
||||
<item name="dividerColor">@color/black_12</item>
|
||||
</style>
|
||||
|
||||
<style name="LightOverride" parent="LightBase">
|
||||
</style>
|
||||
|
||||
<style name="LightDialogBase" parent="@style/Theme.AppCompat.Light.Dialog">
|
||||
<item name="android:windowMinWidthMinor">@android:dimen/dialog_min_width_minor</item>
|
||||
<item name="android:windowMinWidthMajor">@android:dimen/dialog_min_width_major</item>
|
||||
<item name="android:windowBackground">@color/dialog_light_background</item>
|
||||
<item name="asTextColor">@color/black_87</item>
|
||||
<item name="icon_tint">@android:color/black</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue