initial work on adding new theme
This commit is contained in:
5
app/src/main/res/values/attrs.xml
Normal file
5
app/src/main/res/values/attrs.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<attr name="primaryTextColor" format="reference"/>
|
||||
<attr name="primaryBackgroundColor" format="reference" />
|
||||
</resources>
|
||||
@@ -29,4 +29,7 @@
|
||||
<color name="diffRemovedColor">#ffe0e0</color>
|
||||
<color name="diffAddedColor">#d6fcd6</color>
|
||||
|
||||
<color name="lightThemeTextColor">#646565</color>
|
||||
<color name="lightThemeBackground">#f9f9f9</color>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,14 +1,5 @@
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="drawerArrowStyle">@style/DrawerIcon</item>
|
||||
<item name="colorControlHighlight">#123456</item>
|
||||
<item name="android:typeface">monospace</item>
|
||||
</style>
|
||||
|
||||
<style name="DrawerIcon" parent="Widget.AppCompat.DrawerArrowToggle">
|
||||
<item name="color">@color/white</item>
|
||||
<item name="android:textSize">16sp</item>
|
||||
|
||||
22
app/src/main/res/values/themes.xml
Normal file
22
app/src/main/res/values/themes.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||
<item name="android:windowBackground">@color/colorPrimary</item>
|
||||
<item name="android:typeface">monospace</item>
|
||||
|
||||
<item name="primaryTextColor">@color/white</item>
|
||||
<item name="primaryBackgroundColor">@color/colorPrimary</item>
|
||||
</style>
|
||||
|
||||
<style name="AppThemeLight" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<item name="android:statusBarColor">@color/colorPrimary</item>
|
||||
<item name="android:windowBackground">@color/lightThemeBackground</item>
|
||||
<item name="android:typeface">monospace</item>
|
||||
|
||||
<item name="primaryTextColor">@color/lightThemeTextColor</item>
|
||||
<item name="primaryBackgroundColor">@color/lightThemeBackground</item>
|
||||
</style>
|
||||
|
||||
</resources>
|
||||
Reference in New Issue
Block a user