-
Notifications
You must be signed in to change notification settings - Fork 11
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
wbColor #292
Conversation
Maybe you can have a look @jmbarbone ? If you're short on time, a hint if you like it or not will do. This is a breaking change that introduces If we want to add this, we might need a few more |
@JanMarvin I'll be able to take a peak this week. Quick thoughts: Is |
Not really, I just to inspiration from the wb_hyperlink class, which does not really do anything either :) |
That makes sense. When I converted all the |
R/wb_styles.R
Outdated
@@ -873,12 +877,12 @@ set_cell_style <- function(wb, sheet, cell, value) { | |||
create_dxfs_style <- function( | |||
font_name = "Calibri", | |||
font_size = "11", | |||
font_color = c(rgb = "FF9C0006"), | |||
font_color = wb_color(rgb = "FF9C0006"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to use a default font color in options()
like we have for options(openxlsx2.borderColor)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm a bit undecided.
- I really really dislike how the function calls look, if they have all the
options(openxlsx2.xxx)
calls. Changing things under the hood, if notNULL
seems like a bad idea too. - Maybe we could go with a
name = "default"
arg. That will call theoptions(openxlsx2.borderColor)
under the hood? But than again, we'd have to make sure that everywhere a "default" option is possible. That easily turns into a plethora of changes.
… add them, you know what you are doing
… add them, you know what you are doing
Looong rebase.
If we like this approach, we can go deeper in the future, prepare default options and asserts. But that's for future releases/rainy days. |
There are a few inherits, that can be removed. Otherwise we enforce |
well ... needs more fixes. 😞 |
Provide
wbColor
. At the moment this requires a bit more testing. The main feature is, a general color class. This improves handling indexed, theme and rgb colors as well as validated colors.