Releases: ouchadam/themr
Releases · ouchadam/themr
36
25
22
18
Initial Release (12)
Theme concatenation via gradle plugin
res/values/themr.xml
<style name="PaletteLight">
<item name="brandColor">#008577</item>
</style>
<style name="PaletteDark">
<item name="brandColor">#000000</item>
</style>
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="colorPrimary">?attr/brandColor</item>
</style>
build.gradle
themr {
combinations = ["AppTheme": ["PaletteLight", "PaletteDark"]] // map of themes to palettes
source = "themr" // res/values/ filename to scan for styles, defaults to themr
}
Generated styles
<style name="PaletteLight_AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="brandColor">#008577</item>
<item name="colorPrimary">?attr/brandColor</item>
</style>
<style name="PaletteDark_AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<item name="brandColor">#000000</item>
<item name="colorPrimary">?attr/brandColor</item>
</style>