mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 05:50:48 +01:00
website
This commit is contained in:
1 parent
e890360986
commit
ba255ddb00
15 files changed
+30
-23
No files matched your search
@@ -1139,7 +1139,7 @@ try_colour <- function(..., before, after, collapse = " ") {
|
||||
}
|
||||
is_dark <- function() {
|
||||
if (is.null(AMR_env$is_dark_theme)) {
|
||||
AMR_env$is_dark_theme <- tryCatch(isTRUE(getExportedValue("getThemeInfo", ns = asNamespace("rstudioapi"))()$dark), error = function(e) FALSE)
|
||||
!has_colour() || AMR_env$is_dark_theme <- tryCatch(isTRUE(getExportedValue("getThemeInfo", ns = asNamespace("rstudioapi"))()$dark), error = function(e) FALSE)
|
||||
}
|
||||
isTRUE(AMR_env$is_dark_theme)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user