diff --git a/app.py b/app.py index b9b67fc..c724c04 100644 --- a/app.py +++ b/app.py @@ -8,6 +8,7 @@ import gzip import zlib import pyperclip import hashlib +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" @@ -95,6 +96,10 @@ class MainWindow(QMainWindow): super().__init__() self.setWindowTitle("GDUtils") self.setGeometry(100, 100, 400, 300) + self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground, True) + if is_mica_supported(): + hwnd = int(self.winId()) + EnableMica(hwnd, BackdropType.MICA) titleLabel = QLabel("GDUtils") font = QFont() diff --git a/requirements.txt b/requirements.txt index 250c14a..2f0f7db 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ pycryptodome -pyperclip \ No newline at end of file +pyperclip +winmica \ No newline at end of file