plotly / dash-daq

Control components for Dash
MIT License
141 stars 40 forks source link

thermometer scale font not honoring theme #187

Closed tim-oe closed 1 month ago

tim-oe commented 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

thermometer

tim-oe commented 1 month ago

using the gauge component works as expected dark gauge

tim-oe commented 1 month ago

digging into the darkthemeProvider seems to have done the trick

image