Color borders of Checkbox and Radio in styling example
This commit is contained in:
parent
f7a8b6983c
commit
08faaaf623
1 changed files with 6 additions and 6 deletions
|
|
@ -311,9 +311,9 @@ mod style {
|
||||||
fn active(&self) -> radio::Style {
|
fn active(&self) -> radio::Style {
|
||||||
radio::Style {
|
radio::Style {
|
||||||
background: Background::Color(SURFACE),
|
background: Background::Color(SURFACE),
|
||||||
dot_color: Color::WHITE,
|
dot_color: ACTIVE,
|
||||||
border_width: 0,
|
border_width: 1,
|
||||||
border_color: Color::TRANSPARENT,
|
border_color: ACTIVE,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -496,10 +496,10 @@ mod style {
|
||||||
fn active(&self) -> checkbox::Style {
|
fn active(&self) -> checkbox::Style {
|
||||||
checkbox::Style {
|
checkbox::Style {
|
||||||
background: Background::Color(SURFACE),
|
background: Background::Color(SURFACE),
|
||||||
checkmark_color: Color::WHITE,
|
checkmark_color: ACTIVE,
|
||||||
border_radius: 2,
|
border_radius: 2,
|
||||||
border_width: 0,
|
border_width: 1,
|
||||||
border_color: Color::TRANSPARENT,
|
border_color: ACTIVE,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue