mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-14 22:12:55 +00:00
User is now able to crop custom images
This commit is contained in:
parent
04e6e36811
commit
d8bfe2e947
5 changed files with 36 additions and 5 deletions
|
@ -15,6 +15,8 @@ public class TextDrawableHelper {
|
|||
|
||||
ColorGenerator generator = ColorGenerator.MATERIAL;
|
||||
int color = generator.getColor(s);
|
||||
return TextDrawable.builder().buildRound(s.substring(0, 1).toUpperCase(), color);
|
||||
return TextDrawable.builder().beginConfig()
|
||||
.width(100)
|
||||
.height(100).endConfig().buildRect(s.substring(0, 1).toUpperCase(), color);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue