Sfoglia il codice sorgente

Add css_file arg to theme_xaringan_inverse()

tags/v0.3.0
Garrick Aden-Buie 6 anni fa
parent
commit
d0c8a5b45b
2 ha cambiato i file con 10 aggiunte e 1 eliminazioni
  1. +2
    -1
      R/ggplot2.R
  2. +8
    -0
      man/theme_xaringan_inverse.Rd

+ 2
- 1
R/ggplot2.R Vedi File

@@ -101,9 +101,10 @@ theme_xaringan_inverse <- function(
background_color = NULL,
accent_color = NULL,
accent_secondary_color = NULL,
css_file = NULL,
...
) {
requires_xaringanthemer_env()
requires_xaringanthemer_env(css_file = css_file, try_css = TRUE)
requires_package(fn = "xaringan_theme")

background_color <- background_color %||% xaringanthemer_env$inverse_background_color

+ 8
- 0
man/theme_xaringan_inverse.Rd Vedi File

@@ -9,6 +9,7 @@ theme_xaringan_inverse(
background_color = NULL,
accent_color = NULL,
accent_secondary_color = NULL,
css_file = NULL,
...
)
}
@@ -24,6 +25,13 @@ theme_xaringan_inverse(
\item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color}}

\item{css_file}{Path to a \pkg{xaringanthemer} CSS file, from which the
theme variables and values will be inferred. In general, if you use the
\pkg{xaringathemer} defaults, you will not need to set this. This feature
lets you create a \pkg{ggplot2} theme for your \pkg{xaringan} slides, even
if you have only saved your theme CSS file and you aren't creating your
CSS theme with \pkg{xaringanthemer} in your slides' source file.}

\item{...}{
Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}}
\describe{

Loading…
Annulla
Salva