-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
version 2.0: ad auto dark mode and fix crashes (fix #17)
- Loading branch information
1 parent
c875053
commit 3be9d09
Showing
4 changed files
with
151 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import ctypes | ||
|
||
try: | ||
import win32mica as mc | ||
from PySide2 import QtWidgets, QtCore | ||
except ImportError: | ||
import os | ||
os.system("pip install win32mica PySide2") | ||
|
||
root = QtWidgets.QApplication() | ||
app = QtWidgets.QMainWindow() | ||
app.setAttribute(QtCore.Qt.WA_TranslucentBackground) | ||
app.setWindowTitle("Qt Dark") | ||
app.setGeometry(100, 100, 300, 200) | ||
mc.ApplyMica(app.winId(), mc.MICAMODE.DARK) | ||
app.show() | ||
|
||
app2 = QtWidgets.QMainWindow() | ||
app2.setAttribute(QtCore.Qt.WA_TranslucentBackground) | ||
app2.setWindowTitle("Qt Light") | ||
app2.setGeometry(400, 100, 300, 200) | ||
mc.ApplyMica(app2.winId(), mc.MICAMODE.LIGHT) | ||
app2.show() | ||
|
||
root.exec_() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="win32mica", | ||
version="1.9", | ||
version="2.0", | ||
author="Martí Climent", | ||
author_email="[email protected]", | ||
description="Apply mica background (if supported) and immersive dark mode to Windows 11 Win32 apps made with python, such as Tkinter or PyQt/PySide apps", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters