1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-10 04:21:59 +02:00

(v2.1.1.9227) unit test fixes

This commit is contained in:
2025-03-27 15:36:27 +01:00
parent 969a42cc8c
commit d77ad6bd6e
11 changed files with 21 additions and 17 deletions

View File

@ -1299,7 +1299,13 @@ font_purple_bg <- function(..., collapse = " ") {
try_colour(font_black(..., collapse = collapse, adapt = FALSE), before = "\033[48;5;89m", after = "\033[49m", collapse = collapse)
}
font_rose_bg <- function(..., collapse = " ") {
try_colour(font_black(..., collapse = collapse, adapt = FALSE), before = "\033[48;5;217m", after = "\033[49m", collapse = collapse)
if (is_dark()) {
# this is #ed553b (picked to be colourblind-safe with other SIR colours)
try_colour(font_black(..., collapse = collapse, adapt = FALSE), before = "\033[48;5;203m", after = "\033[49m", collapse = collapse)
} else {
# also colourblind-safe but softer
try_colour(font_black(..., collapse = collapse, adapt = FALSE), before = "\033[48;5;217m", after = "\033[49m", collapse = collapse)
}
}
font_na <- function(..., collapse = " ") {
font_red(..., collapse = collapse)