LiquidGUI [1.2.0.0]

- Linux Support
This commit is contained in:
2024-12-26 12:34:07 +00:00
parent 03fca21675
commit 3cc53d0c81
+7 -7
View File
@@ -132,18 +132,18 @@ def main():
window = MainWindow(LiquidCTL_Helper())
window.setWindowIcon(icon)
if globals.platform == "Windows":
window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
if darkdetect.isDark():
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
elif darkdetect.isLight():
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.LIGHT)
# Show error and quit app if no devices are found
if window.lctl.TestConnectionState():
MessageHandler().ShowNoDevicesFoundError()
sys.exit(1)
else:
if globals.platform == "Windows":
window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
if darkdetect.isDark():
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
elif darkdetect.isLight():
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.LIGHT)
window.show()
app.exec()