Add mica on windows
This commit is contained in:
2 files changed
+7
-1
No files matched your search
@@ -8,6 +8,7 @@ import gzip
|
|||||||
import zlib
|
import zlib
|
||||||
import pyperclip
|
import pyperclip
|
||||||
import hashlib
|
import hashlib
|
||||||
|
from winmica import EnableMica, BackdropType, is_mica_supported
|
||||||
|
|
||||||
MAC_SAVE_KEY = (
|
MAC_SAVE_KEY = (
|
||||||
b"\x69\x70\x75\x39\x54\x55\x76\x35\x34\x79\x76\x5d\x69\x73\x46\x4d"
|
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__()
|
super().__init__()
|
||||||
self.setWindowTitle("GDUtils")
|
self.setWindowTitle("GDUtils")
|
||||||
self.setGeometry(100, 100, 400, 300)
|
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")
|
titleLabel = QLabel("GDUtils")
|
||||||
font = QFont()
|
font = QFont()
|
||||||
|
|||||||
+2
-1
@@ -1,2 +1,3 @@
|
|||||||
pycryptodome
|
pycryptodome
|
||||||
pyperclip
|
pyperclip
|
||||||
|
winmica
|
||||||
Reference in new issue
Block a user