Skip to content

Helper to reduce the amount of color ressources in an Android application

License

Notifications You must be signed in to change notification settings

merciero/color-debterator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color-debterator

Helper that reduces the amount of color xml entries in an Android application with tech debt

Usage instructions

Place the set of colors you ideally want your app to use in a separate android color resource file. The tolerance value is based on the ciede2000 algorithm value for colors without transparency, and is arbitrary for colors with transparency. Values up to 20 are still visually close, 100 is the maximum difference for non transparent colors

$ git clone https://github.com/merciero/color-debterator.git
$ cd color-debterator
$ npm install
$ node app.js <path_color_file.xml> <path_color_palette_file.xml> <tolerance_value>

Before / After

Example with a tolerance value of '20'

BeforeAfter

Output

You should get the following:

ScreenShot

More info

You can check out the youtube video that showcases the tool

About

Helper to reduce the amount of color ressources in an Android application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published