Skip to content

Commit 3acb3cd

Browse files
committed
transparent fills -> element_blank()
1 parent a099878 commit 3acb3cd

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

R/theme-defaults.r

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -685,11 +685,11 @@ theme_transparent <- function(base_size = 11, base_family = "",
685685
base_rect_size = base_rect_size
686686
) %+replace%
687687
theme(
688-
# white background and dark border
689-
panel.background = element_rect(fill = "transparent", colour = NA),
690-
plot.background = element_rect(fill = "transparent", colour = NA),
691-
legend.background = element_rect(fill = "transparent", colour = NA),
692-
legend.key = element_rect(fill = "transparent", colour = NA),
688+
panel.background = element_blank(),
689+
plot.background = element_blank(),
690+
legend.background = element_blank(),
691+
legend.key = element_blank(),
692+
# theme_bw specifications
693693
panel.border = element_rect(fill = NA, colour = "grey20"),
694694
# make gridlines dark, same contrast with white as in theme_grey
695695
panel.grid = element_line(colour = "grey92"),

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

Lines changed: 0 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)