From 5ebc3cf56ffa25b7962d6ada264c0d77281f4b6b Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Thu, 20 Aug 2026 20:28:57 -0700 Subject: [PATCH] Add mica on windows --- app.py | 5 +++++ requirements.txt | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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