Skip to content

Commit

Permalink
opt: initPct *2
Browse files Browse the repository at this point in the history
  • Loading branch information
lingqiqi5211 committed Dec 22, 2024
1 parent 1b91157 commit bd88e99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,16 @@ public static void initPct(ViewGroup container, int source) {
if (mPrefsMap.getBoolean("system_showpct_use_blur")) {
try {
int i;
if (isDarkMode()) i = 180;
else i = 200;
if (isDarkMode()) i = 220;
else i = 320;
int a;
if (isDarkMode()) a = 120;
else a = 140;
if (isDarkMode()) a = 140;
else a = 160;
MiBlurUtils.setContainerPassBlur(mPct, i, true);
MiBlurUtils.setMiViewBlurMode(mPct, 1);
MiBlurUtils.setMiViewBlurMode(mPct, 3);
MiBlurUtils.clearMiBackgroundBlendColor(mPct);
MiBlurUtils.addMiBackgroundBlendColor(mPct, Color.argb(a, 0, 0, 0), 101);
MiBlurUtils.addMiBackgroundBlendColor(mPct, Color.argb(a, 0, 0, 0), 103);
MiBlurUtils.setMiBackgroundBlurMode(mPct, 0); // 我不理解
} catch (Throwable e) {
logE("ShowPct", e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Copyright (C) 2023-2024 HyperCeiler Contributions
*/
package com.sevtinge.hyperceiler.module.hook.systemui.controlcenter
package com.sevtinge.hyperceiler.module.hook.systemui.plugin

import android.view.*
import com.github.kyuubiran.ezxhelper.ClassUtils.loadClass
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<color name="light_mode_icon_transparent_color_single_tone">#5cffffff</color>
<color name="dark_mode_icon_color_single_tone">#bf000000</color>
<color name="dark_mode_icon_transparent_color_single_tone">#4c000000</color>
<color name="color_surface_variant">#BC9A9B9D</color>
<color name="color_surface_variant">#DC9A9B9D</color>
<color name="color_on_surface_variant">#FAFCFCFC</color>
<color name="ic_launcher_background">#FC5B8D</color>

Expand Down

0 comments on commit bd88e99

Please sign in to comment.