LiquidGUI [1.1.2.0]
- Support for light mode.
This commit is contained in:
@@ -7,8 +7,8 @@ VSVersionInfo(
|
||||
ffi=FixedFileInfo(
|
||||
# filevers and prodvers should be always a tuple with four items: (1, 2, 3, 4)
|
||||
# Set not needed items to zero 0. Must always contain 4 elements.
|
||||
filevers=(1,1,1,0),
|
||||
prodvers=(1,1,1,0),
|
||||
filevers=(1,1,2,0),
|
||||
prodvers=(1,1,2,0),
|
||||
# Contains a bitmask that specifies the valid bits 'flags'r
|
||||
mask=0x3f,
|
||||
# Contains a bitmask that specifies the Boolean attributes of the file.
|
||||
@@ -32,12 +32,12 @@ VSVersionInfo(
|
||||
u'040904B0',
|
||||
[StringStruct(u'CompanyName', u'Fil Sapia'),
|
||||
StringStruct(u'FileDescription', u'LiquidGUI'),
|
||||
StringStruct(u'FileVersion', u'1.1.1.0'),
|
||||
StringStruct(u'FileVersion', u'1.1.2.0'),
|
||||
StringStruct(u'InternalName', u'LiquidGUI'),
|
||||
StringStruct(u'LegalCopyright', u'© Fil Sapia. All rights reserved.'),
|
||||
StringStruct(u'OriginalFilename', u'LiquidGUI.exe'),
|
||||
StringStruct(u'ProductName', u'LiquidGUI'),
|
||||
StringStruct(u'ProductVersion', u'1.1.1.0')])
|
||||
StringStruct(u'ProductVersion', u'1.1.2.0')])
|
||||
]),
|
||||
VarFileInfo([VarStruct(u'Translation', [0, 1200, 1033, 1252])])
|
||||
]
|
||||
|
||||
@@ -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