Skip to content

Commit 79b16da

Browse files
annennennepaleolimbot
authored andcommitted
Changed border default for theme_grey() (#3414, fixes #3180)
* Changed theme_grey() setting for legend key so that it creates no border (NA) rather than drawing a white one. * update visual test cases for theme_gray() updates
1 parent 5e8699d commit 79b16da

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

NEWS.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# ggplot2 (development version)
22

3+
* Changed `theme_grey()` setting for legend key so that it creates no
4+
border (`NA`) rather than drawing a white one. (@annennenne, #3180)
5+
36
* Added function `ggplot_add.by()` for lists created with `by()` (#2734, @Maschette)
47

58
* `ggdep()` was deprecated (@perezp44, #3382).

R/theme-defaults.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ theme_grey <- function(base_size = 11, base_family = "",
169169
legend.spacing.x = NULL,
170170
legend.spacing.y = NULL,
171171
legend.margin = margin(half_line, half_line, half_line, half_line),
172-
legend.key = element_rect(fill = "grey95", colour = "white"),
172+
legend.key = element_rect(fill = "grey95", colour = NA),
173173
legend.key.size = unit(1.2, "lines"),
174174
legend.key.height = NULL,
175175
legend.key.width = NULL,

tests/figs/themes/theme-gray-large.svg

Lines changed: 2 additions & 2 deletions
Loading

tests/figs/themes/theme-gray.svg

Lines changed: 2 additions & 2 deletions
Loading

0 commit comments

Comments
 (0)