Replies: 1 comment
-
Hi @Kowersky, I assume you mean the "falsy" state, not the situation when the UI element is disabled. ui.add_css('''
.custom-toggle .q-toggle__inner--falsy .q-toggle__track {
background-color: red;
}
.custom-toggle .q-toggle__inner--falsy .q-toggle__thumb::after {
background-color: LightBlue;
}
''')
ui.switch('Hello, world!').classes('custom-toggle') |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
Hi. I need to set custom color when the switch is disabled like this.
And i need to change this color
Beta Was this translation helpful? Give feedback.
All reactions