See if this fixes issues w other platforms

This commit is contained in:
Lncvrt committed 2026-08-23 12:38:14 -07:00
1 parent 036a6d61bd
commit ec05f4a67e
1 file changed
+2 -1
+2 -1
View File
@@ -9,6 +9,7 @@ import zlib
import pyperclip import pyperclip
import hashlib import hashlib
from winmica import EnableMica, BackdropType, is_mica_supported from winmica import EnableMica, BackdropType, is_mica_supported
import platform
MAC_SAVE_KEY = ( MAC_SAVE_KEY = (
b"\x69\x70\x75\x39\x54\x55\x76\x35\x34\x79\x76\x5d\x69\x73\x46\x4d" 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) self.setCentralWidget(container)
def apply_mica(self, widget): def apply_mica(self, widget):
if is_mica_supported(): if platform.system() == "Windows" and is_mica_supported():
widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True) widget.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True)
hwnd = int(widget.winId()) hwnd = int(widget.winId())
EnableMica(hwnd, BackdropType.MICA) EnableMica(hwnd, BackdropType.MICA)