Open gioxc88 opened 2 years ago
In the code above, you have set dark_bg and light_bg with the same colour...
of course I have but it doesn't change to anything anyway :)
I misunderstood your question. The Overlay widget in the above code was a workaround (at that time) for hiding the Voila background colour surrounding the ipyvuetify rendering when using ipyvuetify with the Voila lab template.
Is your issue about changing the colour of the ipyvuetify dark or light theme?
Yes correct Thanks
Then, you can override the vuetify CSS setting by adding an internal CSS in an HTML style
element:
css = v.Html(
tag='style',
children=['.vuetify-styles .theme--dark.v-application {background: #7FFF00}'
' .vuetify-styles .theme--light.v-application {background: #7FFF00}']
)
v.Container(children=[css,v.Btn()])
Following this example from https://stackoverflow.com/questions/65033675/how-to-switch-from-light-to-dark-theme-in-ipyvuetify it doesn't change the coloou. Is there any other way to do it?
Thanks