From d83e52c67f7c902df1162532bbfdbe73fbd96ad5 Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Fri, 8 Nov 2024 11:14:01 -0500 Subject: [PATCH] fix(brand): Revert change to use hard-coded default colors in example app --- examples/brand/app.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/brand/app.py b/examples/brand/app.py index 1cdbb8e9b..5beedd945 100644 --- a/examples/brand/app.py +++ b/examples/brand/app.py @@ -252,12 +252,12 @@ def server(input, output, session): @render.plot def plot1(): colors = { - "foreground": theme.brand.color.foreground, - "background": theme.brand.color.background, - "primary": theme.brand.color.primary, + "foreground": "#000000", + "background": "#FFFFFF", + "primary": "#007BC2", } - if theme.brand.color: + if hasattr(theme, "brand") and theme.brand.color: colors.update(theme.brand.color.to_dict("theme")) if input.color_mode() == "dark":