Change layout theme with button

Hello lovely people.

I’m trying to add a button that changes the plot layout, any ideas on why the following code doesn’t work?

fig = go.Figure()
fig.update_layout(updatemenus=[
    go.layout.Updatemenu(
        buttons=[
            go.layout.updatemenu.Button(
                args=[{"theme": "plotly_dark"}],
                label="Dark mode",
                method="relayout"
            )
        ],
        type="buttons",
        x=0.5, y=1.1,
        showactive=True,
    )
])
fig.show("browser")