Skip to content

Commit

Permalink
use theme_tt
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 12, 2024
1 parent a1ad870 commit 811b0f3
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions R/apply_table_theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ apply_table_theme <- function(out, x, theme = "default", sub_header_positions =
check_if_installed("tinytable", minimum_version = "0.1.0")

switch(theme,
grid = {
out <- tinytable::tt(out, theme = "grid")
},
striped = {
out <- tinytable::tt(out, theme = "striped")
},
grid = ,
striped = ,
tabular = ,
void = ,
bootstrap = {
out <- tinytable::tt(out, theme = "bootstrap")
out <- tinytable::theme_tt(out, theme = theme)
},
darklines = {
# borders for sub headings
Expand Down

0 comments on commit 811b0f3

Please sign in to comment.