-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customize colors of Checkbox and Radio #320
Comments
possible workaround: Can you create a checkbox without a label and put it in a row with a text control with color of your choice? Wrap that together in a custom control? yeah not ideal but in theory... |
I'm sorry for your pain. It's not "that hard" to implement - you could just kindly ask, no need to complain right away. |
I think he/she meant the color of the checkbox itself, not that of the associated label. |
"Not that hard"? I am impressed! |
Added new properties:
Styled checkbox example: import flet
from flet import Checkbox, Page
def main(page: Page):
page.add(
Checkbox(label="Checkbox with default style"),
Checkbox(
label="Checkbox with constant fill color",
fill_color="red",
check_color="yellow",
),
Checkbox(
label="Checkbox with dynamic fill color",
fill_color={"hovered": "blue", "selected": "green", "": "red"},
),
)
flet.app(target=main) Styled radio example: import flet
from flet import Column, Page, Radio, RadioGroup
def main(page: Page):
page.add(
RadioGroup(
Column(
[
Radio(label="Radio with default style", value="1"),
Radio(
label="Radio with constant fill color",
value="2",
fill_color="red",
),
Radio(
label="Radio with dynamic fill color",
value="3",
fill_color={"hovered": "blue", "selected": "green", "": "red"},
),
]
)
)
)
flet.app(target=main) |
Como personalizar a cor da label do RADIO? Consegui entender que posso alterar a cor da seleção, mas quero entender como posso fazer isso com LABEL |
There is no
color
property in theCheckbox
control. Therefore, no way to customize the color of a checkbox.This gives me a lot of pain and just because of that I need to place my widgets on a dark card.
Is it THAT HARD to make colors customizable?
The text was updated successfully, but these errors were encountered: