Skip to content
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

[wbWorkbook] Themes #630

Merged
merged 4 commits into from May 28, 2023
Merged

[wbWorkbook] Themes #630

merged 4 commits into from May 28, 2023

Conversation

JanMarvin
Copy link
Owner

Allow switching of themes

library(openxlsx2)

wb <- wb_workbook(theme = "Old Office Theme")$add_worksheet()
wb$get_base_font()
#> $size
#> $size$val
#> [1] "11"
#> 
#> 
#> $color
#> $color$theme
#> [1] "1"
#> 
#> 
#> $name
#> $name$val
#> [1] "Calibri"

wb <- wb_workbook(theme = 1)$add_worksheet()
wb$get_base_font()
#> $size
#> $size$val
#> [1] "11"
#> 
#> 
#> $color
#> $color$theme
#> [1] "1"
#> 
#> 
#> $name
#> $name$val
#> [1] "Rockwell"

@JanMarvin JanMarvin merged commit 9cc6c1c into main May 28, 2023
9 checks passed
@JanMarvin JanMarvin deleted the themes branch May 28, 2023 17:45
@JanMarvin JanMarvin mentioned this pull request Jun 9, 2023
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.

None yet

1 participant