Plugin to generate colors, dimens, strings and styles defined in a TrueColors file.
buildscript {
dependencies {
classpath 'io.vokal.gradle:truecolors:1.0.0'
}
}
apply plugin: 'io.vokal.truecolors'
truecolors {
useScalePixelDimens false
}
dependencies {
compile 'uk.co.chrisjenx:calligraphy:2.1.0'
}
Place your TrueColors file in your source folder next to manifest file (ie. /src/main/my.truecolors
).
The font styles have the fontName
attribute which is the default used by Calligraphy.
Setting up your Activity to wrap the base Context and using the styles in your xml layouts is all you should need to do by default.
- useScalePixelDimens [boolean] - dimension used in any font styles will use scaled pixels ("25sp"). Default: true