LiquidGUI [1.1.0.0] DEV
- Corrected calling of static MessageHandler class. - Apply theme only on main app to make QMessageBox button text legible.
This commit is contained in:
@@ -85,14 +85,14 @@ def main():
|
||||
window.setWindowIcon(icon)
|
||||
window.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
|
||||
|
||||
qdarktheme.setup_theme("dark", custom_colors={"background": "#00000000"})
|
||||
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
|
||||
|
||||
# Show error and quit app if no devices are found
|
||||
if window.lctl.TestConnectionState() == True:
|
||||
MessageHandler.ShowNoDevicesFoundError()
|
||||
MessageHandler().ShowNoDevicesFoundError()
|
||||
sys.exit(1)
|
||||
else:
|
||||
qdarktheme.setup_theme("dark", custom_colors={"background": "#00000000"})
|
||||
win32mica.ApplyMica(window.winId(), win32mica.MICAMODE.DARK)
|
||||
|
||||
window.show()
|
||||
app.exec()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user