Crop borders for webtoon now have a separate setting. Close #972

This commit is contained in:
inorichi
2018-04-27 16:55:12 +02:00
parent 5c31271e91
commit 18883f1ba3
7 changed files with 48 additions and 6 deletions

View File

@@ -47,6 +47,10 @@ inline fun View.gone() {
visibility = View.GONE
}
inline fun View.visibleIf(block: () -> Boolean) {
visibility = if (block()) View.VISIBLE else View.GONE
}
/**
* Returns a TextDrawable determined by input
*
@@ -63,4 +67,4 @@ fun View.getRound(text: String, random : Boolean = true): TextDrawable {
.useFont(Typeface.DEFAULT)
.endConfig()
.buildRound(text, if (random) ColorGenerator.MATERIAL.randomColor else ColorGenerator.MATERIAL.getColor(text))
}
}