rh1
September 13, 2024, 8:39am
1
Dear All
is it possible to customize hamburger icon and busy indicator for example change the color or size
if I put header color as white the hamburger and busy indicator icon is difficult to see
thanks
Not that I know of; there might be a push to replace templates with native Panel components.
opened 09:21AM - 10 Sep 24 UTC
type: feature
@philippjfr mentioned that the current generation of Panel templates are backed … by Jinja2 templates initially because of a limitation in Bokeh where there can't be too many nested shadow roots(?), or else it would lag.
Now, I think this limitation is fixed(?). If so, we can steer away from Jinja2 templates and re-create them using native Panel components, with the benefit that it's usable in notebooks and there's no need to learn a separate template concept. Also, we can experiment with much more variety of templates easily.
The few things that I can think of that are not available are a collapsible sidebar component and ability to swap between light/dark theme.
cc @MarcSkovMadsen
Okay it might be possible if you set raw_css
As a workaround you can use css
DISABLE_HEADER_CSS = """
nav#header {
display: none;
}
"""
pn.extension(raw_css=[DISABLE_HEADER_CSS])
A full example would look like
import hvplot.pandas
import numpy as np
import panel as pn
import pandas as pd
DISABLE_HEADER_CSS = """
nav#header {
display: none;
}
"""
pn.extension(raw_css=[DISABLE_HEADER_CSS])
xs = np.linspace(0, np.pi)
freq = pn.widgets.FloatSlider(name="Frequency", start=0, end=10, value=2)
phase = pn.widgets.FloatSlider(…
rh1
September 23, 2024, 6:34am
4
Hi @ahuang11
thanks for your advise. I have used css for changing color hamburger icon as below:
#sidebar-button .pn-bar {
background-color: #00008B; /* Dark blue color */
transition: background-color 0.3s ease; /* Smooth color change on hover */
}
However still don’t get how to change color of busy indicator.
thank you
One way is to just invert the color perhaps:
filter: invert(100%);
More ideas css - How can I change the color of an 'svg' element? - Stack Overflow
rh1
September 25, 2024, 9:02am
6
thanks @ahuang11 for your advise