LiquidGUI [1.2.0.0]
- Linux Support
This commit is contained in:
@@ -132,18 +132,18 @@ def main():
|
|||||||
window = MainWindow(LiquidCTL_Helper())
|
window = MainWindow(LiquidCTL_Helper())
|
||||||
window.setWindowIcon(icon)
|
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
|
# Show error and quit app if no devices are found
|
||||||
if window.lctl.TestConnectionState():
|
if window.lctl.TestConnectionState():
|
||||||
MessageHandler().ShowNoDevicesFoundError()
|
MessageHandler().ShowNoDevicesFoundError()
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
else:
|
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()
|
window.show()
|
||||||
app.exec()
|
app.exec()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user