mirror of https://github.com/M66B/FairEmail.git
Enabled anti aliasing for generated icons
This commit is contained in:
parent
6048216fd4
commit
8e05ebff7b
|
@ -136,6 +136,7 @@ class ImageHelper {
|
|||
int bg = Color.HSVToColor(new float[]{h, s / 100f, v / 100f});
|
||||
|
||||
Paint paint = new Paint();
|
||||
paint.setAntiAlias(true);
|
||||
paint.setColor(bg);
|
||||
|
||||
Bitmap bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888);
|
||||
|
@ -191,6 +192,7 @@ class ImageHelper {
|
|||
canvas.drawColor(bg);
|
||||
|
||||
Paint paint = new Paint();
|
||||
paint.setAntiAlias(true);
|
||||
paint.setColor(lum < t ? Color.WHITE : Color.BLACK);
|
||||
paint.setTextSize(size / 2f);
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue