From 8d0f72e1d8dea5cdbc6e124a3d42b59b4523e00d Mon Sep 17 00:00:00 2001 From: Garrick Aden-Buie Date: Fri, 8 Nov 2024 16:22:37 -0500 Subject: [PATCH] fix(brand): Revert change to use hard-coded default colors in example app (#1765) --- 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":