Skip to content

Commit

Permalink
fix(brand): Revert change to use hard-coded default colors in example…
Browse files Browse the repository at this point in the history
… app (#1765)
  • Loading branch information
gadenbuie authored Nov 8, 2024
1 parent a35f3a8 commit 8d0f72e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/brand/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 8d0f72e

Please sign in to comment.