diff --git a/gotify_tray/gui/themes/dark_purple/style.qss b/gotify_tray/gui/themes/dark_purple/style.qss index d33b80c..11d9b03 100644 --- a/gotify_tray/gui/themes/dark_purple/style.qss +++ b/gotify_tray/gui/themes/dark_purple/style.qss @@ -6,19 +6,27 @@ QPushButton:default:hover, QPushButton:checked:hover { background: #441b85; } -QPushButton[state="success"] { +ServerInfoDialog QPushButton[state="success"] { background-color: #960b7a0b; color: white; } -QPushButton[state="failed"] { +ServerInfoDialog QPushButton[state="success"]:!default:hover { + background: #960b7a0b; +} + +ServerInfoDialog QPushButton[state="failed"] { background-color: #8ebb2929; color: white; } -QLineEdit[state="success"] {} +ServerInfoDialog QPushButton[state="failed"]:!default:hover { + background: #8ebb2929; +} -QLineEdit[state="failed"] { +ServerInfoDialog QLineEdit[state="success"] {} + +ServerInfoDialog QLineEdit[state="failed"] { border: 1px solid red; } diff --git a/gotify_tray/gui/themes/light_purple/style.qss b/gotify_tray/gui/themes/light_purple/style.qss index 5e811b2..4c3d4c5 100644 --- a/gotify_tray/gui/themes/light_purple/style.qss +++ b/gotify_tray/gui/themes/light_purple/style.qss @@ -6,19 +6,27 @@ QPushButton:default:hover, QPushButton:checked:hover { background: #5c24b6; } -QPushButton[state="success"] { +ServerInfoDialog QPushButton[state="success"] { background-color: #6400FF00; color: black; } -QPushButton[state="failed"] { +ServerInfoDialog QPushButton[state="success"]:!default:hover { + background: #6400FF00; +} + +ServerInfoDialog QPushButton[state="failed"] { background-color: #64FF0000; color: black; } -QLineEdit[state="success"] {} +ServerInfoDialog QPushButton[state="failed"]:!default:hover { + background: #64FF0000; +} -QLineEdit[state="failed"] { +ServerInfoDialog QLineEdit[state="success"] {} + +ServerInfoDialog QLineEdit[state="failed"] { border: 1px solid red; }