Skip to content

add accent argument to theme_grey, theme_minimal, etc #6438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

EvaMaeRey
Copy link

This PR is aimed making accent (e.g. geom_smooth's blue) accessible from the built-in convenience theme functions like theme_grey, theme_minimal etc. Most of the changes are pretty minimal, but for theme_void, it seems that geom = element_geom(... should be added so that that the new geom dimension of theme can be manipulated from theme_void()

I think this addresses most of making accent accessibility from the built in theme functions. Do need to check on theme_void
Copy link
Collaborator

@teunbrand teunbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Gina, thank you so much for the PR! There are a few things that I think should be tweaked. One is in the comment, the other is whether you can run devtools::document() to propagate changes from the @param description to the .Rd files. In other aspects this looks great!

Comment on lines +541 to +547
geom = element_geom(
ink = ink, paper = paper, accent = accent,
linewidth = base_line_size, borderwidth = base_line_size,
linetype = 1L, bordertype = 1L,
family = base_family, fontsize = base_size,
pointsize = (base_size / 11) * 1.5, pointshape = 19
),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this changed something in the visual test (for the better). We might have to update the snapshot for theme-void-large.svg accordingly.

@teunbrand
Copy link
Collaborator

Just a comment for linking purposes, that this PR would fix #6414.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should accent argument be accessible from theme_grey(), theme_classic() etc along with paper and ink
2 participants