/material-tools

Primary LanguageKotlinApache License 2.0Apache-2.0

What's This?

This was once a part of app-theme-helper.

This is used for Phonograph Plus.

I reorganized and refactor these codes, now this is just library to store theme color and handle view tint.

Setup

This is a kotlin library now.

dependencies {
    // mdColorRes: most material color values resource (non-kotlin)
    implementation("com.github.chr56.material-tools:mdColorRes:0.1.0")
    // mdUtil: utility
    implementation("com.github.chr56.material-tools:mdUtil:0.1.0")
    // mdPref: make preferences to store theme color
    implementation("com.github.chr56.material-tools:mdPref:0.1.0")
    // mdTint: tint the Views
    implementation("com.github.chr56.material-tools:mdTint:0.1.0")
    // mdTView: [experimental] self tinted views
    // implementation("com.github.chr56.material-tools:mdView:0.1.0")

    // and Google material design library if you use mdTint
    implementation("com.google.android.material:material:1.4.0")
}

Original README digest

App Theme Helper

This is basically a copy of App Theme Engine by Aidan Follestad which only includes the "Config" part. This library is only for saving and querying theme values. The user is responsible to use those values ( applying to Views), unlike ATE this library won't automatically theme your views. As an extra this library includes a few Util methods from ATE and myself to make theming easy.