This commit is contained in:
2025-10-05 21:56:38 +08:00
parent 1bd25ba28f
commit d28c22ddcb
2 changed files with 8 additions and 4 deletions

View File

@@ -167,11 +167,15 @@ async function addColumns() {
const status = row.submission_info[problem.id]
if (status.is_first_ac) {
backgroundColor = theme.value.primaryColor
color = theme.value.baseColor
} else if (status.is_ac) {
backgroundColor = "#dff0d8"
const success = theme.value.successColor
backgroundColor = success + "50"
color = theme.value.textColorBase
} else {
backgroundColor = theme.value.warningColor
color = theme.value.errorColor
const error = theme.value.errorColor
backgroundColor = error + "50"
color = theme.value.textColorBase
}
}
return { style: { backgroundColor, color } }