Skip to content

Commit

Permalink
refactor(widgets): Update power menu blur settings for Windows 10 com…
Browse files Browse the repository at this point in the history
…patibility
  • Loading branch information
amnweb committed Oct 24, 2024
1 parent ea44a0b commit de351af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/widgets/yasb/power_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from core.utils.win32.power import PowerOperations
import datetime
import psutil
from core.utils.utilities import is_windows_10

class BaseStyledWidget(QWidget):
def apply_stylesheet(self):
Expand Down Expand Up @@ -211,15 +212,15 @@ def __init__(self, parent_button, uptime,blur, blur_background, animation_durati
if blur:
Blur(
self.winId(),
Acrylic=False,
Acrylic=True if is_windows_10() else False,
DarkMode=False,
RoundCorners=False,
BorderColor="None"
)
if blur_background:
Blur(
self.overlay.winId(),
Acrylic=False,
Acrylic=True if is_windows_10() else False,
DarkMode=False,
RoundCorners=False,
BorderColor="None"
Expand Down

0 comments on commit de351af

Please sign in to comment.