See if this fixes issues w other platforms
This commit is contained in:
1 file changed
+4
-1
@@ -8,6 +8,9 @@ import gzip
|
||||
import zlib
|
||||
import pyperclip
|
||||
import hashlib
|
||||
import platform
|
||||
|
||||
if platform.system() == "Windows":
|
||||
from winmica import EnableMica, BackdropType, is_mica_supported
|
||||
|
||||
MAC_SAVE_KEY = (
|
||||
@@ -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