diff --git a/web/app/models/UOJSubmission.php b/web/app/models/UOJSubmission.php index e8157a2..094263b 100644 --- a/web/app/models/UOJSubmission.php +++ b/web/app/models/UOJSubmission.php @@ -519,10 +519,10 @@ class UOJSubmission { echo ''; if ($actual_score == 100) { // rgb(0, 204, 0) - echo '', 'Accepted', ''; + echo '', 'Accepted', ''; } else { // rgb(204, 0, 0) - echo '', 'Unaccepted', ''; + echo '', 'Unaccepted', ''; } echo ''; } diff --git a/web/css/uoj-bs5.css b/web/css/uoj-bs5.css index 1f29ff7..7004cf4 100644 --- a/web/css/uoj-bs5.css +++ b/web/css/uoj-bs5.css @@ -503,6 +503,16 @@ form.form-horizontal { } } +/* Submissions List */ + +.uoj-accepted-badge { + background-color: rgb(20 184 48) !important; +} + +.uoj-unaccepted-badge { + background-color: rgb(219 53 53) !important; +} + /* Submission Page */ .submission-layout { diff --git a/web/js/uoj.js b/web/js/uoj.js index 080b11e..345c71e 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -110,11 +110,11 @@ function htmlspecialchars(str) function getColOfScore(score) { if (score == 0) { - return ColorConverter.toStr(ColorConverter.toRGB(new HSV(0, 100, 80))); + return ColorConverter.toStr(ColorConverter.toRGB(new HSV(0, 76, 86))); } else if (score == 100) { - return ColorConverter.toStr(ColorConverter.toRGB(new HSV(120, 100, 80))); + return ColorConverter.toStr(ColorConverter.toRGB(new HSV(130, 89, 72))); } else { - return ColorConverter.toStr(ColorConverter.toRGB(new HSV(30 + score * 60 / 100, 100, 90))); + return ColorConverter.toStr(ColorConverter.toRGB(new HSV(30 + score * 60 / 100, 83, 89))); } }