djnavarro / caladown

R package designed to work with the "calade" theme for Hugo
https://caladown.djnavarro.net
Other
26 stars 7 forks source link

Should be simpler to specify device background colour #1

Closed djnavarro closed 5 years ago

djnavarro commented 5 years ago

This sets the graphics device background colour to match the page

pal <- slumdown::slum_getpalette("kunoichi") knitr::opts_chunk$set(dev.args = list(bg=pal["pagecolour"]))

A convenience function for this might be useful

djnavarro commented 5 years ago

Fixed with the slum_setdevicecolour function