From 42b5d6d09846488c13a01ac3442a1ef046fa2bb8 Mon Sep 17 00:00:00 2001 From: "dries.k" Date: Mon, 22 May 2023 19:34:13 +0200 Subject: [PATCH] set success/failed hover color --- gotify_tray/gui/themes/dark_purple/style.qss | 16 ++++++++++++---- gotify_tray/gui/themes/light_purple/style.qss | 16 ++++++++++++---- 2 files changed, 24 insertions(+), 8 deletions(-) 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; }