Browse Source

- experiment with using Theme.AppCompat.DayNight

pull/529/head
Twig N 5 years ago
parent
commit
ad1f14e2b8
  1. 5
      app/src/main/res/values-night/styles_transdroid.xml
  2. 16
      app/src/main/res/values-v21/styles.xml
  3. 2
      app/src/main/res/values/colors_transdroid_dark.xml
  4. 8
      app/src/main/res/values/styles.xml
  5. 5
      app/src/main/res/values/styles_transdroid.xml

5
app/src/main/res/values/styles_transdroid_dark.xml → app/src/main/res/values-night/styles_transdroid.xml

@ -18,7 +18,10 @@
<resources> <resources>
<style name="Theme.Transdroid.Dark" parent="Theme.AppCompat.NoActionBar"> <style name="Theme.Transdroid.Auto" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="drawer_background">@color/background_dark</item>
<item name="activatable_background">@drawable/activatable_background</item>
<item name="colorPrimary">@color/green</item> <item name="colorPrimary">@color/green</item>
<item name="colorPrimaryDark">@color/green_dark</item> <item name="colorPrimaryDark">@color/green_dark</item>
<item name="windowActionModeOverlay">true</item> <item name="windowActionModeOverlay">true</item>

16
app/src/main/res/values-v21/styles.xml

@ -16,15 +16,15 @@
--> -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="TransdroidTheme" parent="Theme.Transdroid.Light"> <!-- <style name="TransdroidTheme" parent="Theme.Transdroid.Auto">-->
<item name="drawer_background">@color/background_light</item> <!-- <item name="drawer_background">@color/background_light</item>-->
<item name="activatable_background">@drawable/activatable_background</item> <!-- <item name="activatable_background">@drawable/activatable_background</item>-->
</style> <!-- </style>-->
<style name="TransdroidTheme.Dark" parent="Theme.Transdroid.Dark"> <!-- <style name="TransdroidTheme.Dark" parent="Theme.Transdroid.Auto">-->
<item name="drawer_background">@color/background_dark</item> <!-- <item name="drawer_background">@color/background_dark</item>-->
<item name="activatable_background">@drawable/activatable_background</item> <!-- <item name="activatable_background">@drawable/activatable_background</item>-->
</style> <!-- </style>-->
<style name="DefaultToolbar"> <style name="DefaultToolbar">
<item name="android:background">?attr/colorPrimary</item> <item name="android:background">?attr/colorPrimary</item>

2
app/src/main/res/values/colors_transdroid_dark.xml

@ -20,7 +20,7 @@
<resources> <resources>
<color name="pressed_transdroid_dark">#CCaada62</color> <color name="pressed_transdroid_dark">#CCaada62</color>
<color name="divider_dark">#303030</color> <color name="divider_dark">#303030</color>
<color name="background_dark">#000</color> <color name="background_dark">#2e2e2e</color>
<color name="text_bright_dark">#fff</color> <color name="text_bright_dark">#fff</color>
<color name="text_actionbar_dark">#fff</color> <color name="text_actionbar_dark">#fff</color>
</resources> </resources>

8
app/src/main/res/values/styles.xml

@ -16,14 +16,10 @@
--> -->
<resources xmlns:android="http://schemas.android.com/apk/res/android"> <resources xmlns:android="http://schemas.android.com/apk/res/android">
<style name="TransdroidTheme" parent="Theme.Transdroid.Light"> <style name="TransdroidTheme" parent="Theme.Transdroid.Auto">
<item name="drawer_background">@color/background_light</item>
<item name="activatable_background">@drawable/activatable_background</item>
</style> </style>
<style name="TransdroidTheme.Dark" parent="Theme.Transdroid.Dark"> <style name="TransdroidTheme.Dark" parent="Theme.Transdroid.Auto">
<item name="drawer_background">@color/background_dark</item>
<item name="activatable_background">@drawable/activatable_background</item>
</style> </style>
<!-- No theme background to let the user's wall paper shine through --> <!-- No theme background to let the user's wall paper shine through -->

5
app/src/main/res/values/styles_transdroid_light.xml → app/src/main/res/values/styles_transdroid.xml

@ -19,7 +19,10 @@
<resources> <resources>
<style name="Theme.Transdroid.Light" parent="Theme.AppCompat.Light.NoActionBar"> <style name="Theme.Transdroid.Auto" parent="Theme.AppCompat.DayNight.NoActionBar">
<item name="drawer_background">@color/background_light</item>
<item name="activatable_background">@drawable/activatable_background</item>
<item name="colorPrimary">@color/green</item> <item name="colorPrimary">@color/green</item>
<item name="colorPrimaryDark">@color/green_dark</item> <item name="colorPrimaryDark">@color/green_dark</item>
<item name="colorControlHighlight">@color/green_light</item> <item name="colorControlHighlight">@color/green_light</item>
Loading…
Cancel
Save