From ec05f4a67ed924c8c4b871b3d576d0d13243008f Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Sun, 23 Aug 2026 12:38:14 -0700 Subject: [PATCH] See if this fixes issues w other platforms --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 9de308a..ecea7b2 100644 --- a/app.py +++ b/app.py @@ -9,6 +9,7 @@ import zlib import pyperclip import hashlib from winmica import EnableMica, BackdropType, is_mica_supported +import platform MAC_SAVE_KEY = ( b"\x69\x70\x75\x39\x54\x55\x76\x35\x34\x79\x76\x5d\x69\x73\x46\x4d" @@ -168,7 +169,7 @@ class MainWindow(QMainWindow): self.setCentralWidget(container) def apply_mica(self, widget): - if is_mica_supported(): + if platform.system() == "Windows" and is_mica_supported(): widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True) hwnd = int(widget.winId()) EnableMica(hwnd, BackdropType.MICA)