Keep session accent in sync with glass_accent_input()
Source: R/glass-accent.R
observe_glass_accent.RdThe wells already update glass live on the client. This observer echoes the
hex through update_glass_theme() so plots and other sessions can follow.
Value
An shiny::observeEvent() observer (invisibly).
See also
glass_accent_input(), update_glass_theme(), observe_glass()
Other glass controls:
glass_accent_input(),
glass_intensity_slider(),
glass_plot_surface_input(),
glass_preset_input(),
glass_resolved_preset(),
glass_scene_input(),
glass_system_colors(),
glass_theme_toggle(),
observe_glass(),
observe_glass_intensity(),
observe_glass_plot_surface(),
observe_glass_preset_input(),
observe_glass_scene(),
observe_glass_theme_toggle()
Examples
if (interactive()) {
library(shiny)
ui <- glass_page(title = "Accent")
server <- function(input, output, session) {
observe_glass_accent(input, session)
}
shinyApp(ui, server)
}