maskarade / gradle-android-ribbonizer-plugin

Modifies launcher icons on debug build
https://bintray.com/gfx/maven/ribbonizer-plugin
MIT License
355 stars 38 forks source link

Add example for custom color #18

Closed tiwiz closed 7 years ago

tiwiz commented 7 years ago

Would it be possible to add an example on how to add a custom solid coloured ribbon?

mensly commented 7 years ago

Is this what you were thinking?

def solidColouredRibbon = customColorRibbonFilter(variant, iconFile, "#00C89C")
solidColouredRibbon.label = ""
return solidColouredRibbon
mensly commented 7 years ago

Editing the label property directly can also be useful for things like:

def filter = yellowRibbonFilter(variant, iconFile)
filter.label = "QA" + variant.versionCode
return filter
tiwiz commented 7 years ago

Yup, exactly! Could it be possible to add it to the examples, so it is available for everyone in need?