Revert the 'hmokay' for level 5-7 apps, instead have a purple for high quality and level 8 labels

This commit is contained in:
Alexandre Aubin 2019-04-26 17:21:09 +02:00
parent 1ad5c362a7
commit 2da00ac706
2 changed files with 7 additions and 17 deletions

View file

@ -573,16 +573,10 @@ input[type='radio'].nice-radio {
} }
} }
.label-hmokay, .btn-hmokay, .btn-hmokay:active, .btn-hmokay.active { .label-best {
background-color: #71ae2a; background-color: darkorchid;
color: white;
} }
.btn-hmokay:hover, .btn-hmokay:active:hover, .btn-hmokay.active:hover {
background-color: #5e8f24;
}
// only one card for small screens // only one card for small screens
.app-card { .app-card {
width: 100%; width: 100%;

View file

@ -19,10 +19,10 @@
function levelToColor(level) { function levelToColor(level) {
if (level >= 8) { if (level >= 8) {
return 'success'; return 'best';
} }
else if (level > 4) { else if (level > 4) {
return 'hmokay'; return 'success';
} }
else if (level >= 1) { else if (level >= 1) {
return 'warning'; return 'warning';
@ -36,10 +36,10 @@
function stateToColor(state) { function stateToColor(state) {
if (state === "high-quality") { if (state === "high-quality") {
return 'success'; return 'best';
} }
else if (state === "working") { else if (state === "working") {
return 'hmokay'; return 'success';
} }
else { else {
return 'danger'; return 'danger';
@ -68,9 +68,6 @@
else if (stateColor === "warning" || levelColor === "warning" || levelColor === "default") { else if (stateColor === "warning" || levelColor === "warning" || levelColor === "default") {
return 'warning'; return 'warning';
} }
else if (stateColor === "hmokay" || levelColor === "hmokay") {
return 'hmokay';
}
else else
{ {
return 'success'; return 'success';
@ -152,8 +149,7 @@
app.isSafe = (app.installColor !== 'danger'); app.isSafe = (app.installColor !== 'danger');
app.isWorking = isWorking ? "isworking" : "notFullyWorking"; app.isWorking = isWorking ? "isworking" : "notFullyWorking";
app.isHighQuality = (app.state === "high-quality") ? "isHighQuality" : ""; app.isHighQuality = (app.state === "high-quality") ? "isHighQuality" : "";
app.decentQuality = (app.levelColor === "hmokay" app.decentQuality = (app.level > 4)?"decentQuality":"badQuality";
|| app.levelColor === "success")?"decentQuality":"badQuality";
jQuery.extend(app, v); jQuery.extend(app, v);
apps.push(app); apps.push(app);