Skip to content

Commit

Permalink
Use Material theme as base
Browse files Browse the repository at this point in the history
Also should fix the problem of too dark text.
  • Loading branch information
sal0max committed Feb 25, 2019
1 parent d1b6a34 commit 145a187
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion muzei-nationalgeographic/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ android {
// SemVer
def major = 2
def minor = 1
def patch = 0
def patch = 1
versionCode = (major * 10000) + (minor * 100) + patch
versionName = "$major ($major.$minor.$patch)"
//
Expand Down
1 change: 1 addition & 0 deletions muzei-nationalgeographic/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
<resources>
<color name="iconForeground">#fff</color>
<color name="iconBackground">#ffd300</color>
<color name="windowForeground">#ccc</color>
<color name="windowBackground">#111</color>
</resources>
9 changes: 7 additions & 2 deletions muzei-nationalgeographic/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<resources>

<style name="Theme.Muzei" parent="android:Theme.DeviceDefault">
<style name="Theme.Muzei" parent="android:Theme.Material">
<item name="android:windowBackground">@color/windowBackground</item>
<item name="android:actionBarStyle">@style/Widget.Muzei.ActionBar</item>
<item name="android:windowContentOverlay">@null</item>
Expand All @@ -31,11 +31,16 @@
<style name="Widget.Muzei.ActionBar" parent="android:Widget.DeviceDefault.ActionBar">
<item name="android:background">@null</item>
<item name="android:displayOptions">homeAsUp|showTitle</item>
<item name="android:titleTextStyle">@style/TextAppearance.Muzei.ActionBar</item>
</style>


<style name="TextAppearance.Muzei.Medium" parent="android:TextAppearance.DeviceDefault.Medium">
<item name="android:fontFamily">sans-serif-condensed</item>
<item name="android:textColor">@color/windowForeground</item>
</style>

<style name="TextAppearance.Muzei.ActionBar" parent="android:TextAppearance.DeviceDefault.Widget.ActionBar.Title">
<item name="android:textColor">@android:color/white</item>
</style>

</resources>

0 comments on commit 145a187

Please sign in to comment.