Skip to content

Commit edbae14

Browse files
committed
example: pass brand colors along to plotting code (instead of repeating them)
1 parent 339a9aa commit edbae14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/brand/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ def server(input, output, session):
252252
@render.plot
253253
def plot1():
254254
colors = {
255-
"foreground": "#000000",
256-
"background": "#FFFFFF",
257-
"primary": "#4463ff",
255+
"foreground": theme.brand.color.foreground,
256+
"background": theme.brand.color.background,
257+
"primary": theme.brand.color.primary,
258258
}
259259

260260
if theme.brand.color:

0 commit comments

Comments
 (0)