Skip to content

Commit 3081bb8

Browse files
committed
chore: Use SUPPORTED_THEMES from semantic.assets.
1 parent 5f5a7f0 commit 3081bb8

File tree

7 files changed

+6
-29
lines changed

7 files changed

+6
-29
lines changed

NAMESPACE

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
export(COLOR_PALETTE)
44
export(Progress)
55
export(SIZE_LEVELS)
6-
export(SUPPORTED_THEMES)
76
export(accordion)
87
export(actionButton)
98
export(action_button)

R/constants.R

-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@ COLOR_PALETTE <- c("#A333C8", "#21BA45", "#2185D0", "#DB2828", "#F2711C", "#FBBD
88
names(COLOR_PALETTE) <- c("purple", "green", "blue", "red", "orange", "yellow", "olive", "teal",
99
"violet", "pink", "brown", "grey", "black")
1010

11-
#' Supported semantic themes
12-
#' @export
13-
SUPPORTED_THEMES <- c("cerulean", "darkly", "paper", "simplex", # nolint
14-
"superhero", "flatly", "slate", "cosmo",
15-
"readable", "united", "journal", "solar",
16-
"cyborg", "sandstone", "yeti", "lumen", "spacelab")
17-
1811
#' Allowed sizes
1912
#' @export
2013
SIZE_LEVELS <- c("mini", "tiny", "small", "", "large", "huge", "massive")

R/dropdown.R

+2-2
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ updateSelectInput <- function(session, inputId, label = NULL, choices = NULL, se
287287
#' @export
288288
theme_selector <- function(input_id = "theme", label = "Choose theme") {
289289
dropdown_content <- dropdown_input(
290-
"theme", choices = c("default", SUPPORTED_THEMES),
291-
choices_value = c("", SUPPORTED_THEMES),
290+
"theme", choices = c("default", semantic.assets::SUPPORTED_THEMES),
291+
choices_value = c("", semantic.assets::SUPPORTED_THEMES),
292292
type = "selection fluid themes-dropdown"
293293
)
294294
shiny::div(

R/semanticPage.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ get_css_file <- function(type, theme = NULL, minified = NULL) {
107107
#' wrapper (e.g. style, class etc.)
108108
#' @param title A title to display in the browser's title bar.
109109
#' @param theme Theme name or path. Full list of supported themes you will find in
110-
#' \code{SUPPORTED_THEMES} or at http://semantic-ui-forest.com/themes.
110+
#' \code{\link[semantic.assets:SUPPORTED_THEMES]{semantic.assets::SUPPORTED_THEMES}}
111+
#' or at http://semantic-ui-forest.com/themes.
111112
#' @param suppress_bootstrap boolean flag that supresses bootstrap when turned on
112113
#' @param margin character with body margin size
113114
#' @examples

man/SUPPORTED_THEMES.Rd

-16
This file was deleted.

man/semanticPage.Rd

+2-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgdown/_pkgdown.yml

-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ reference:
176176
contents:
177177
- '`COLOR_PALETTE`'
178178
- '`SIZE_LEVELS`'
179-
- '`SUPPORTED_THEMES`'
180179

181180
- title: Other
182181
desc: Other useful functions or objects.

0 commit comments

Comments
 (0)