Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions R/theme-current.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,10 @@ get_theme <- function() {
theme_get <- get_theme

#' @rdname get_theme
#' @param new new theme (a list of theme elements). Sets theme to the default (theme_grey) if `new` isn't supplied.
#' @param new new theme (a list of theme elements). Sets theme to the default ([theme_grey()]) if `new` isn't supplied.
#' @export
set_theme <- function(new) {
if (missing(new)) {
new <- ggplot_global$theme_default
}
new <- new %||% ggplot_global$theme_default
check_object(new, is_theme, "a {.cls theme} object")
old <- ggplot_global$theme_current
ggplot_global$theme_current <- new
Expand Down
2 changes: 1 addition & 1 deletion man/get_theme.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading