Add mica on windows
This commit is contained in:
2 files changed
+6
No files matched your search
@@ -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()
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
pycryptodome
|
||||
pyperclip
|
||||
winmica
|
||||
Reference in new issue
Block a user