Repository navigation
Subtheme functions - #5430
Subtheme functions#5430
Conversation
thomasp85
left a comment
There was a problem hiding this comment.
I do think we need a different prefix than theme_, but conceptually I think it should be shorter since the whole point of these functions are to be shortcuts... maybe just th_? Or maybe that is too unpronouncable...
|
I like this as an idea, but I'm not sure we can gracefully compact the word 'theme' any futher. Using I don't think of these functions as strictly shortcuts (as in abbreviations): they mostly avoid needless repetition in argument names. |
thomasp85
left a comment
There was a problem hiding this comment.
I think I would probably prefer theme_sub_*() then (I know that is longer even). I like that all theme functions have the same (partial) prefix
p +
theme_minimal() +
theme_sub_axis(...)
looks more organised than
p +
theme_minimal() +
subtheme_axis(...)
This PR aims to fix #5301.
Briefly, it adds functions that allow specifying parts of a theme with shorter arguments.
A few considerations:
@usagesection.subtheme_*()as to avoid confusion with e.g.theme_light()which is conceptually doing a different thing?