Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
assets
src/main/java/com/saurabharora/darkthemelint
.gitignore
README.md
build.gradle
publish.gradle

README.md

Download

Dark Theme Lint

A collection of Lint Checks to aid with the development and maintenance of dark theme in your android apps.

This will warn when colors are hardcoded (eg: android:textColor="#FFFFFF") in layout or drawable files. It will also warn about color resources that don’t have corresponding dark theme (night qualifier) variants.

Medium post: https://proandroiddev.com/making-android-lint-theme-aware-6285737b13bc

Usage

  • In your build.gradle file:
dependencies {
   lintChecks 'com.saurabharora.lint.checks:dark-theme-lint:1.0.0'
}
  • Run lint on your app module as per usual. Eg:

    ./gradlew app:lintDebug
    
  • If issues are found, they should appear in your lint reports:

    Lint Report

You can’t perform that action at this time.