dreamRs / shinyWidgets
Showing 1 of 2 files from the diff.
Other files ignored by Codecov
NAMESPACE has changed.

@@ -138,7 +138,7 @@
Loading
138 138
}
139 139
140 140
#' @importFrom sass sass_file
141 -
#' @importFrom bslib bs_dependency
141 +
#' @importFrom bslib bs_dependency is_bs_theme theme_version
142 142
awesomeDependencyCSS <- function(theme) {
143 143
  if (!bslib::is_bs_theme(theme)) {
144 144
    return(htmlDependency(
@@ -153,9 +153,19 @@
Loading
153 153
      all_files = FALSE
154 154
    ))
155 155
  }
156 -
157 -
  sass_input <- list(
158 -
    list(
156 +
  if (identical(bslib::theme_version(theme), "3")) {
157 +
    sass_vars <- list(
158 +
      "fa-var-check" = "\"\\f00c\"",
159 +
      "input-bg-disabled" = "$gray",
160 +
      "brand-primary" = "$brand-primary",
161 +
      "brand-info" = "$brand-info",
162 +
      "brand-success" = "$brand-success",
163 +
      "brand-warning" = "$brand-warning",
164 +
      "brand-danger" = "$brand-danger",
165 +
      "awesome-label-inline-margin-left" = "10px"
166 +
    )
167 +
  } else {
168 +
    sass_vars <- list(
159 169
      "fa-var-check" = "\"\\f00c\"",
160 170
      "input-bg-disabled" = "$gray-300",
161 171
      "brand-primary" = "$primary",
@@ -164,10 +174,10 @@
Loading
164 174
      "brand-warning" = "$warning",
165 175
      "brand-danger" = "$danger",
166 176
      "awesome-label-inline-margin-left" = "10px"
167 -
    ),
168 -
    # sass::sass_file(
169 -
    #   system.file(package = "shinyWidgets", "assets/awesome-bootstrap-checkbox/_variables.scss")
170 -
    # ),
177 +
    )
178 +
  }
179 +
  sass_input <- list(
180 +
    sass_vars,
171 181
    sass::sass_file(
172 182
      system.file(package = "shinyWidgets", "assets/awesome-bootstrap-checkbox/_mixins.scss")
173 183
    ),
@@ -207,7 +217,7 @@
Loading
207 217
}
208 218
209 219
#' @importFrom sass sass_file
210 -
#' @importFrom bslib bs_dependency
220 +
#' @importFrom bslib bs_dependency is_bs_theme theme_version
211 221
prettyDependencyCSS <- function(theme) {
212 222
  if (!bslib::is_bs_theme(theme)) {
213 223
    return(htmlDependency(
@@ -219,14 +229,25 @@
Loading
219 229
    ))
220 230
  }
221 231
222 -
  sass_input <- list(
223 -
    list(
232 +
  if (identical(bslib::theme_version(theme), "3")) {
233 +
    sass_vars <- list(
234 +
      "pretty--color-primary" = "$brand-primary",
235 +
      "pretty--color-info" = "$brand-info",
236 +
      "pretty--color-success" = "$brand-success",
237 +
      "pretty--color-warning" = "$brand-warning",
238 +
      "pretty--color-danger" = "$brand-danger"
239 +
    )
240 +
  } else {
241 +
    sass_vars <- list(
224 242
      "pretty--color-primary" = "$primary",
225 243
      "pretty--color-info" = "$info",
226 244
      "pretty--color-success" = "$success",
227 245
      "pretty--color-warning" = "$warning",
228 246
      "pretty--color-danger" = "$danger"
229 -
    ),
247 +
    )
248 +
  }
249 +
  sass_input <- list(
250 +
    sass_vars,
230 251
    sass::sass_file(
231 252
      system.file(package = "shinyWidgets", "assets/pretty-checkbox/pretty-checkbox.scss")
232 253
    )
Files Coverage
R 74.80%
Project Totals (51 files) 74.80%
Notifications are pending CI completion. Periodically Codecov will check the CI state, when complete notifications will be submitted. Push notifications now.
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading