Просмотр исходного кода

Add css_file arg to theme_xaringan_inverse()

tags/v0.3.0
Garrick Aden-Buie 6 лет назад
Родитель
Сommit
d0c8a5b45b
2 измененных файлов: 10 добавлений и 1 удалений
  1. +2
    -1
      R/ggplot2.R
  2. +8
    -0
      man/theme_xaringan_inverse.Rd

+ 2
- 1
R/ggplot2.R Просмотреть файл

background_color = NULL, background_color = NULL,
accent_color = NULL, accent_color = NULL,
accent_secondary_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") requires_package(fn = "xaringan_theme")


background_color <- background_color %||% xaringanthemer_env$inverse_background_color background_color <- background_color %||% xaringanthemer_env$inverse_background_color

+ 8
- 0
man/theme_xaringan_inverse.Rd Просмотреть файл

background_color = NULL, background_color = NULL,
accent_color = NULL, accent_color = NULL,
accent_secondary_color = NULL, accent_secondary_color = NULL,
css_file = NULL,
... ...
) )
} }
\item{accent_secondary_color}{Color for secondary accents, inherits from \item{accent_secondary_color}{Color for secondary accents, inherits from
\code{text_bold_color}} \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{...}{ \item{...}{
Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}} Arguments passed on to \code{\link[=theme_xaringan_base]{theme_xaringan_base}}
\describe{ \describe{

Загрузка…
Отмена
Сохранить