Skip to content

Commit ffd24a6

Browse files
committed
bring even more colors
1 parent 01225e3 commit ffd24a6

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

R/utils.R

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,31 +63,38 @@ validateColor <- function(color) {
6363
#'
6464
#' \itemize{
6565
#' \item \code{red}
66+
#' \item \code{red-light}
6667
#' \item \code{yellow}
68+
#' \item \code{yellow-light}
6769
#' \item \code{aqua}
6870
#' \item \code{blue}
6971
#' \item \code{light-blue}
72+
#' \item \code{blue-light}
7073
#' \item \code{green}
74+
#' \item \code{green-light}
7175
#' \item \code{navy}
7276
#' \item \code{teal}
77+
#' \item \code{gray}
7378
#' \item \code{olive}
7479
#' \item \code{lime}
7580
#' \item \code{orange}
7681
#' \item \code{fuchsia}
7782
#' \item \code{purple}
83+
#' \item \code{purple-light}
7884
#' \item \code{maroon}
7985
#' \item \code{black}
86+
#' \item \code{black-light}
8087
#' }
81-
#'
88+
#' @source \url{https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#layout}
89+
#' @source \url{https://almsaeedstudio.com/themes/AdminLTE/pages/UI/general.html}
8290
#' @usage NULL
8391
#' @format NULL
8492
#'
8593
#' @keywords internal
86-
validColors <- c("red", "yellow", "aqua", "blue", "light-blue","blue-light",
87-
"green","black-light", "purple-light","green-light",
88-
"navy", "teal", "olive", "lime", "orange", "fuchsia",
89-
"purple", "maroon", "black", "red-light", "yellow-light")
90-
94+
validColors <- c("red", "red-light", "yellow", "yellow-light","green", "green-light",
95+
"blue", "light-blue","blue-light", "black", "black-light",
96+
"purple", "purple-light", "navy", "teal", "olive", "lime",
97+
"orange", "fuchsia", "maroon", "gray", "aqua")
9198

9299
# Returns TRUE if a status is valid; throws error otherwise.
93100
validateStatus <- function(status) {
@@ -113,11 +120,12 @@ validateStatus <- function(status) {
113120
#' \item \code{info} Blue
114121
#' \item \code{warning} Orange
115122
#' \item \code{danger} Red
116-
#' \item \code{default} Grey
123+
#' \item \code{default} Gray
117124
#' }
118125
#'
119126
#' @usage NULL
120127
#' @format NULL
128+
#' @source \url{https://almsaeedstudio.com/themes/AdminLTE/documentation/index.html#component-box}
121129
#'
122130
#' @keywords internal
123131
validStatuses <- c("primary", "success", "info", "warning", "danger", "default")

man/validColors.Rd

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/validStatuses.Rd

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)