See if this fixes issues w other platforms
This commit is contained in:
1 file changed
+5
-2
@@ -8,7 +8,10 @@ import gzip
|
||||
import zlib
|
||||
import pyperclip
|
||||
import hashlib
|
||||
from winmica import EnableMica, BackdropType, is_mica_supported
|
||||
import platform
|
||||
|
||||
if platform.system() == "Windows":
|
||||
from winmica import EnableMica, BackdropType, is_mica_supported
|
||||
|
||||
MAC_SAVE_KEY = (
|
||||
b"\x69\x70\x75\x39\x54\x55\x76\x35\x34\x79\x76\x5d\x69\x73\x46\x4d"
|
||||
@@ -168,7 +171,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)
|
||||
|
||||
Reference in new issue
Block a user