Skip to content

Commit 1b2f1bb

Browse files
committed
Apply Vizzu theming even if style provided
1 parent 89e13f8 commit 1b2f1bb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/panel_material_ui/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ function apply_bokeh_theme(model, theme, dark, font_family, custom_theme=[]) {
794794
--mdc-theme-surface: ${elevation_color(elevation+1, theme, dark, true)};
795795
}
796796
`]
797-
} else if (model_type.endsWith("VizzuChart") && (model.style == null || Object.keys(model.style).length === 0)) {
797+
} else if (model_type.endsWith("VizzuChart")) {
798798
const view = Bokeh.index.find_one_by_id(model.id)
799799
const elevation = view ? find_on_parent(view, "elevation") : 0
800800
const background = elevation_color(elevation, theme, dark, true)
@@ -806,15 +806,15 @@ function apply_bokeh_theme(model, theme, dark, font_family, custom_theme=[]) {
806806
xAxis: {
807807
color: muted,
808808
label: {color: muted},
809-
interlacing: {color: background},
809+
interlacing: {color: surface}
810810
},
811811
yAxis: {
812812
color: muted,
813813
label: {color: muted},
814-
interlacing: {color: background},
814+
interlacing: {color: background}
815815
},
816816
marker: {
817-
label: {color: text},
817+
label: {color: text}
818818
},
819819
},
820820
title: {color: text},

0 commit comments

Comments
 (0)