Skip to content

Commit 014df8c

Browse files
committed
Update
1 parent 0a6c8a7 commit 014df8c

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

app/src/main/java/com/omarea/common/ui/BlurEngine.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,10 @@ public Bitmap getUpdatedBlurBitmap() {
8383
return null;
8484
}
8585

86-
// private int getBlurTintColor() {
87-
// Context context = targetView.getContext();
88-
// int colorRes = ThemeModeState.isDarkMode() ? R.color.colorBlurDark : R.color.colorBlurLight;
89-
// return ContextCompat.getColor(context, colorRes);
90-
// }
91-
9286
private int getBlurTintColor() {
9387
Context context = targetView.getContext();
9488
int colorRes = ThemeModeState.isDarkMode() ? R.color.colorBlurDark : R.color.colorBlurLight;
95-
int baseColor = ContextCompat.getColor(context, colorRes);
96-
return Color.argb(200, Color.red(baseColor), Color.green(baseColor), Color.blue(baseColor));
89+
return ContextCompat.getColor(context, colorRes);
9790
}
9891

9992
public static Paint getStrokePaint(Context context) {

app/src/main/java/com/omarea/common/ui/FastBlurUtility.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class FastBlurUtility {
1313

1414
// Tỉ lệ thu nhỏ ảnh để xử lý nhanh (1/10 giúp giảm 100 lần số pixel cần tính toán)
1515
private static final float SCALE_FACTOR = 0.10f;
16-
private static final int BLUR_RADIUS = 8;
16+
private static final int BLUR_RADIUS = 10;
1717

1818
/**
1919
* Chụp màn hình và làm mờ (Dùng làm phương án dự phòng khi không lấy được Wallpaper)
@@ -75,7 +75,7 @@ private static Bitmap scaleAndDim(Bitmap bitmap, int targetW, int targetH) {
7575

7676
// Tạo bộ lọc màu để giảm độ sáng (contrast 0.85f ~ giảm 15% độ sáng)
7777
ColorMatrix cm = new ColorMatrix();
78-
float contrast = 0.85f;
78+
float contrast = 0.95f;
7979
cm.set(new float[]{
8080
contrast, 0, 0, 0, 0,
8181
0, contrast, 0, 0, 0,

0 commit comments

Comments
 (0)