LiquidGUI [1.1.2.0]
- Support for light mode.
This commit is contained in:
@@ -4,6 +4,7 @@ import win32mica
|
||||
from PySide6.QtWidgets import QApplication, QMainWindow, QWidget, QVBoxLayout, QLabel, QProgressBar, QPushButton
|
||||
from PySide6.QtCore import Qt, QTimer, QThreadPool
|
||||
from PySide6.QtGui import QFont, QIcon
|
||||
import darkdetect
|
||||
# Internal Imports
|
||||
from LiquidCTL_Helper import LiquidCTL_Helper
|
||||
from MessageHandler import MessageHandler
|
||||
@@ -18,7 +19,7 @@ class MainWindow(QMainWindow):
|
||||
|
||||
def __init__(self, lctl):
|
||||
super(MainWindow, self).__init__()
|
||||
self.setWindowTitle("LiquidGUI (v.1.1.1.0)")
|
||||
self.setWindowTitle("LiquidGUI (v.1.1.2.0)")
|
||||
self.setFixedSize(450, 450)
|
||||
|
||||
self.lctl = lctl
|
||||
@@ -127,7 +128,10 @@ def main():
|
||||
MessageHandler().ShowNoDevicesFoundError()
|
||||
sys.exit(1)
|
||||
else:
|
||||
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
|
||||
if darkdetect.isDark():
|
||||
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
|
||||
elif darkdetect.isLight():
|
||||
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.LIGHT)
|
||||
|
||||
window.show()
|
||||
app.exec()
|
||||
|
||||
Reference in New Issue
Block a user