set success/failed hover color

This commit is contained in:
dries.k
2023-05-22 19:34:13 +02:00
parent 57d7ceb925
commit 42b5d6d098
2 changed files with 24 additions and 8 deletions

View File

@@ -6,19 +6,27 @@ QPushButton:default:hover, QPushButton:checked:hover {
background: #441b85; background: #441b85;
} }
QPushButton[state="success"] { ServerInfoDialog QPushButton[state="success"] {
background-color: #960b7a0b; background-color: #960b7a0b;
color: white; color: white;
} }
QPushButton[state="failed"] { ServerInfoDialog QPushButton[state="success"]:!default:hover {
background: #960b7a0b;
}
ServerInfoDialog QPushButton[state="failed"] {
background-color: #8ebb2929; background-color: #8ebb2929;
color: white; 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; border: 1px solid red;
} }

View File

@@ -6,19 +6,27 @@ QPushButton:default:hover, QPushButton:checked:hover {
background: #5c24b6; background: #5c24b6;
} }
QPushButton[state="success"] { ServerInfoDialog QPushButton[state="success"] {
background-color: #6400FF00; background-color: #6400FF00;
color: black; color: black;
} }
QPushButton[state="failed"] { ServerInfoDialog QPushButton[state="success"]:!default:hover {
background: #6400FF00;
}
ServerInfoDialog QPushButton[state="failed"] {
background-color: #64FF0000; background-color: #64FF0000;
color: black; 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; border: 1px solid red;
} }