Преглед изворни кода

* Use `inverse_text_color` as the default for `inverse_header_color` in most places

Fixes #60
tags/v0.4.2
Garrick Aden-Buie пре 3 година
родитељ
комит
73e8cd7702
No known key found for this signature in database
9 измењених фајлова са 44 додато и 46 уклоњено
  1. +2
    -2
      R/style_duo.R
  2. +5
    -6
      R/style_duo_accent.R
  3. +5
    -6
      R/style_duo_accent_inverse.R
  4. +6
    -6
      R/style_mono_accent.R
  5. +6
    -6
      R/style_mono_accent_inverse.R
  6. +6
    -6
      R/style_mono_dark.R
  7. +6
    -6
      R/style_mono_light.R
  8. BIN
      R/sysdata.rda
  9. +8
    -8
      data-raw/theme_template_variables.R

+ 2
- 2
R/style_duo.R Прегледај датотеку

#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to #' @param inverse_header_color Inverse Header Color. Defaults to
#' `primary_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that #' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a #' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS. #' style function or in custom CSS.
inverse_background_color = secondary_color, inverse_background_color = secondary_color,
inverse_text_color = primary_color, inverse_text_color = primary_color,
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = primary_color,
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = secondary_color, title_slide_text_color = secondary_color,
title_slide_background_color = primary_color, title_slide_background_color = primary_color,

+ 5
- 6
R/style_duo_accent.R Прегледај датотеку

#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to #' @param inverse_header_color Inverse Header Color. Defaults to
#' `choose_dark_or_light(secondary_color, black_color, white_color)`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = secondary_color, inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color, title_slide_background_color = primary_color,

+ 5
- 6
R/style_duo_accent_inverse.R Прегледај датотеку

#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to #' @param inverse_header_color Inverse Header Color. Defaults to
#' `choose_dark_or_light(secondary_color, black_color, white_color)`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = secondary_color, inverse_background_color = secondary_color,
inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color), inverse_text_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = choose_dark_or_light(secondary_color, black_color, white_color),
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color), title_slide_text_color = choose_dark_or_light(primary_color, black_color, white_color),
title_slide_background_color = primary_color, title_slide_background_color = primary_color,

+ 6
- 6
R/style_mono_accent.R Прегледај датотеку

#' in any argument of a style function or in custom CSS. #' in any argument of a style function or in custom CSS.
#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to `white_color`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' @param inverse_header_color Inverse Header Color. Defaults to
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = base_color, inverse_background_color = base_color,
inverse_text_color = white_color, inverse_text_color = white_color,
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = white_color,
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = inverse_text_color, title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color, title_slide_background_color = inverse_background_color,

+ 6
- 6
R/style_mono_accent_inverse.R Прегледај датотеку

#' in any argument of a style function or in custom CSS. #' in any argument of a style function or in custom CSS.
#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to `black_color`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' @param inverse_header_color Inverse Header Color. Defaults to
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = base_color, inverse_background_color = base_color,
inverse_text_color = black_color, inverse_text_color = black_color,
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = black_color,
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = inverse_text_color, title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color, title_slide_background_color = inverse_background_color,

+ 6
- 6
R/style_mono_dark.R Прегледај датотеку

#' in any argument of a style function or in custom CSS. #' in any argument of a style function or in custom CSS.
#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to `black_color`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' @param inverse_header_color Inverse Header Color. Defaults to
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = base_color, inverse_background_color = base_color,
inverse_text_color = black_color, inverse_text_color = black_color,
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = black_color,
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = inverse_text_color, title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color, title_slide_background_color = inverse_background_color,

+ 6
- 6
R/style_mono_light.R Прегледај датотеку

#' in any argument of a style function or in custom CSS. #' in any argument of a style function or in custom CSS.
#' @param inverse_text_shadow Enables Shadow on text of inverse slides. #' @param inverse_text_shadow Enables Shadow on text of inverse slides.
#' Defaults to `FALSE`. Modifies the `.inverse` class. #' Defaults to `FALSE`. Modifies the `.inverse` class.
#' @param inverse_header_color Inverse Header Color. Defaults to `white_color`.
#' Modifies the `.inverse h1, .inverse h2, .inverse h3` classes. The value of
#' this variable is also stored as a CSS variable that can be referenced with
#' `var(--inverse-header-color)` in any argument of a style function or in
#' custom CSS.
#' @param inverse_header_color Inverse Header Color. Defaults to
#' `inverse_text_color`. Modifies the `.inverse h1, .inverse h2, .inverse h3`
#' classes. The value of this variable is also stored as a CSS variable that
#' can be referenced with `var(--inverse-header-color)` in any argument of a
#' style function or in custom CSS.
#' @param inverse_link_color Inverse Link Color. Defaults to `link_color`. #' @param inverse_link_color Inverse Link Color. Defaults to `link_color`.
#' Modifies the `.inverse a, .inverse a > code` classes. The value of this #' Modifies the `.inverse a, .inverse a > code` classes. The value of this
#' variable is also stored as a CSS variable that can be referenced with #' variable is also stored as a CSS variable that can be referenced with
inverse_background_color = base_color, inverse_background_color = base_color,
inverse_text_color = white_color, inverse_text_color = white_color,
inverse_text_shadow = FALSE, inverse_text_shadow = FALSE,
inverse_header_color = white_color,
inverse_header_color = inverse_text_color,
inverse_link_color = link_color, inverse_link_color = link_color,
title_slide_text_color = inverse_text_color, title_slide_text_color = inverse_text_color,
title_slide_background_color = inverse_background_color, title_slide_background_color = inverse_background_color,


+ 8
- 8
data-raw/theme_template_variables.R Прегледај датотеку

code_inline_color = "{base_color}", code_inline_color = "{base_color}",
inverse_background_color = "{base_color}", inverse_background_color = "{base_color}",
inverse_text_color = "{white_color}", inverse_text_color = "{white_color}",
inverse_header_color = "{white_color}",
inverse_header_color = "{inverse_text_color}",
left_column_subtle_color = "{apply_alpha(base_color, 0.6)}", left_column_subtle_color = "{apply_alpha(base_color, 0.6)}",
left_column_selected_color = "{base_color}", left_column_selected_color = "{base_color}",
blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}", blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}",
code_inline_color = "{base_color}", code_inline_color = "{base_color}",
inverse_background_color = "{base_color}", inverse_background_color = "{base_color}",
inverse_text_color = "{black_color}", inverse_text_color = "{black_color}",
inverse_header_color = "{black_color}",
inverse_header_color = "{inverse_text_color}",
left_column_subtle_color = "{apply_alpha(base_color, 0.6)}", left_column_subtle_color = "{apply_alpha(base_color, 0.6)}",
left_column_selected_color = "{base_color}", left_column_selected_color = "{base_color}",
blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}", blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}",
code_inline_color = "{base_color}", code_inline_color = "{base_color}",
inverse_background_color = "{base_color}", inverse_background_color = "{base_color}",
inverse_text_color = "{white_color}", inverse_text_color = "{white_color}",
inverse_header_color = "{white_color}",
inverse_header_color = "{inverse_text_color}",
left_column_subtle_color = "{apply_alpha(base_color, 0.6)}", left_column_subtle_color = "{apply_alpha(base_color, 0.6)}",
left_column_selected_color = "{base_color}", left_column_selected_color = "{base_color}",
blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}", blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}",
code_inline_color = "{base_color}", code_inline_color = "{base_color}",
inverse_background_color = "{base_color}", inverse_background_color = "{base_color}",
inverse_text_color = "{black_color}", inverse_text_color = "{black_color}",
inverse_header_color = "{black_color}",
inverse_header_color = "{inverse_text_color}",
left_column_subtle_color = "{apply_alpha(base_color, 0.6)}", left_column_subtle_color = "{apply_alpha(base_color, 0.6)}",
left_column_selected_color = "{base_color}", left_column_selected_color = "{base_color}",
blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}", blockquote_left_border_color = "{apply_alpha(base_color, 0.5)}",
code_inline_color = "{secondary_color}", code_inline_color = "{secondary_color}",
inverse_background_color = "{primary_color}", inverse_background_color = "{primary_color}",
inverse_text_color = "{secondary_color}", inverse_text_color = "{secondary_color}",
inverse_header_color = "{secondary_color}",
inverse_header_color = "{inverse_text_color}",
left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}", left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}",
left_column_selected_color = "{secondary_color}", left_column_selected_color = "{secondary_color}",
blockquote_left_border_color = "{apply_alpha(secondary_color, 0.5)}", blockquote_left_border_color = "{apply_alpha(secondary_color, 0.5)}",
code_inline_color = "{secondary_color}", code_inline_color = "{secondary_color}",
inverse_background_color = "{secondary_color}", inverse_background_color = "{secondary_color}",
inverse_text_color = "{primary_color}", inverse_text_color = "{primary_color}",
inverse_header_color = "{primary_color}",
inverse_header_color = "{inverse_text_color}",
title_slide_text_color = "{secondary_color}", title_slide_text_color = "{secondary_color}",
title_slide_background_color = "{primary_color}", title_slide_background_color = "{primary_color}",
left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}", left_column_subtle_color = "{apply_alpha(secondary_color, 0.6)}",
code_inline_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}", code_inline_color = "{choose_dark_or_light(secondary_color, primary_color, secondary_color)}",
inverse_background_color = "{secondary_color}", inverse_background_color = "{secondary_color}",
inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}",
inverse_header_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}",
inverse_header_color = "{inverse_text_color}",
title_slide_background_color = "{primary_color}", title_slide_background_color = "{primary_color}",
title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}", title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}",
left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}", left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}",
code_inline_color = "{choose_dark_or_light(secondary_color, secondary_color, primary_color)}", code_inline_color = "{choose_dark_or_light(secondary_color, secondary_color, primary_color)}",
inverse_background_color = "{secondary_color}", inverse_background_color = "{secondary_color}",
inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}", inverse_text_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}",
inverse_header_color = "{choose_dark_or_light(secondary_color, black_color, white_color)}",
inverse_header_color = "{inverse_text_color}",
title_slide_background_color = "{primary_color}", title_slide_background_color = "{primary_color}",
title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}", title_slide_text_color = "{choose_dark_or_light(primary_color, black_color, white_color)}",
left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}", left_column_subtle_color = "{apply_alpha(primary_color, 0.6)}",

Loading…
Откажи
Сачувај