Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.
/ TrueColors-Android Public archive

Gradle plugin to generate Android resources from TrueColors file

License

Notifications You must be signed in to change notification settings

vokal/TrueColors-Android

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Android TrueColors Gradle Plugin

Plugin to generate colors, dimens, strings and styles defined in a TrueColors file.

Usage

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.

Options

  • useScalePixelDimens [boolean] - dimension used in any font styles will use scaled pixels ("25sp"). Default: true

About

Gradle plugin to generate Android resources from TrueColors file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages