mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Enabled anti aliasing for generated icons
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user