1
0
mirror of https://github.com/mihonapp/mihon.git synced 2025-05-18 00:35:32 +02:00

Fix round text icons (closes )

This commit is contained in:
arkon 2020-04-22 22:30:40 -04:00
parent 55101b1a4a
commit 2b27b40142

@ -93,7 +93,7 @@ fun ImageView.roundTextIcon(text: String) {
val letter = text.take(1).toUpperCase() val letter = text.take(1).toUpperCase()
val size = min(this.width, this.height) val size = min(this.width, this.height)
TextDrawable( setImageDrawable(TextDrawable(
shape = TextDrawable.DRAWABLE_SHAPE_OVAL, shape = TextDrawable.DRAWABLE_SHAPE_OVAL,
desiredWidth = size, desiredWidth = size,
desiredHeight = size, desiredHeight = size,
@ -101,7 +101,7 @@ fun ImageView.roundTextIcon(text: String) {
textColor = Color.WHITE, textColor = Color.WHITE,
text = letter, text = letter,
color = ColorGenerator.MATERIAL.getColor(letter) color = ColorGenerator.MATERIAL.getColor(letter)
) ))
} }
/** /**