Closed tim-oe closed 1 month ago
this could be because i am new to dash.
i'm creating the dash object, and i'm setting darkly theme
app = Dash(name, external_stylesheets=[dbc.themes.DARKLY])
i'm adding a thermometer gauge
` def cpuTemp(self, data: PIMetrics) -> daq.Thermometer:
color = "blue" if data.cpu_temp_c >= 30 and data.cpu_temp_c < 60: color = "yellow" elif data.cpu_temp_c >= 60: color = "red" return daq.Thermometer( label="cpu temp", min=10, max=80, color=color, value=data.cpu_temp_c, showCurrentValue=True, units="C" )
`
the scale font color is not honoring the them and is black
using the gauge component works as expected
digging into the darkthemeProvider seems to have done the trick
this could be because i am new to dash.
i'm creating the dash object, and i'm setting darkly theme
app = Dash(name, external_stylesheets=[dbc.themes.DARKLY])
i'm adding a thermometer gauge
` def cpuTemp(self, data: PIMetrics) -> daq.Thermometer:
`
the scale font color is not honoring the them and is black