mirror of
https://github.com/msberends/AMR.git
synced 2026-10-01 04:13:33 +02:00
website
This commit is contained in:
1 parent
ba255ddb00
commit
8dcf101a9c
4 files changed
+9
-9
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)) {
|
||||
!has_colour() || AMR_env$is_dark_theme <- tryCatch(isTRUE(getExportedValue("getThemeInfo", ns = asNamespace("rstudioapi"))()$dark), error = function(e) FALSE)
|
||||
AMR_env$is_dark_theme <- !has_colour() || 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