Skip to content

Commit 5cc4ca7

Browse files
authored
Revert "transparent theme (#5018)" (#6309)
This reverts commit f9b9703.
1 parent f0fccce commit 5cc4ca7

File tree

7 files changed

+0
-241
lines changed

7 files changed

+0
-241
lines changed

NAMESPACE

-1
Original file line numberDiff line numberDiff line change
@@ -741,7 +741,6 @@ export(theme_sub_panel)
741741
export(theme_sub_plot)
742742
export(theme_sub_strip)
743743
export(theme_test)
744-
export(theme_transparent)
745744
export(theme_update)
746745
export(theme_void)
747746
export(transform_position)

R/theme-defaults.R

-35
Original file line numberDiff line numberDiff line change
@@ -512,41 +512,6 @@ theme_classic <- function(base_size = 11, base_family = "",
512512
)
513513
}
514514

515-
#' @export
516-
#' @rdname ggtheme
517-
theme_transparent <- function(base_size = 11, base_family = "",
518-
header_family = NULL,
519-
base_line_size = base_size / 22,
520-
base_rect_size = base_size / 22,
521-
ink = "black", paper = alpha(ink, 0)) {
522-
force(ink)
523-
# Based on theme_bw
524-
theme_grey(
525-
base_size = base_size,
526-
base_family = base_family,
527-
header_family = header_family,
528-
base_line_size = base_line_size,
529-
base_rect_size = base_rect_size,
530-
ink = ink, paper = paper
531-
) %+replace%
532-
theme(
533-
panel.background = element_blank(),
534-
plot.background = element_blank(),
535-
legend.background = element_blank(),
536-
legend.key = element_blank(),
537-
# theme_bw specifications
538-
panel.border = element_rect(fill = NA, colour = col_mix(ink, paper, 0.20)),
539-
# make gridlines dark, same contrast with white as in theme_grey
540-
panel.grid = element_line(colour = col_mix(ink, paper, 0.92)),
541-
# contour strips to match panel contour
542-
strip.background = element_rect(
543-
fill = col_mix(ink, paper, 0.85),
544-
colour = col_mix(ink, paper, 0.20),
545-
),
546-
complete = TRUE
547-
)
548-
}
549-
550515
#' @export
551516
#' @rdname ggtheme
552517
theme_void <- function(base_size = 11, base_family = "",

man/ggtheme.Rd

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

tests/testthat/_snaps/prohibited-functions.md

-4
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,6 @@
215215
[1] "base_size" "base_family" "header_family" "base_line_size"
216216
[5] "base_rect_size"
217217
218-
$theme_transparent
219-
[1] "base_size" "base_family" "header_family" "base_line_size"
220-
[5] "base_rect_size"
221-
222218
$theme_void
223219
[1] "base_size" "base_family" "header_family" "base_line_size"
224220
[5] "base_rect_size"

tests/testthat/_snaps/theme/theme-transparent-large.svg

-92
This file was deleted.

0 commit comments

Comments
 (0)