summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2022-01-21 19:27:17 +0700
committerLibravatar GitHub <noreply@github.com>2022-01-21 19:27:17 +0700
commit04efd22dbaffbbb251c871aa7c1e81cdf31eb5f0 (patch)
tree992ba4bdf00ff84f9d068d40375ef75d6596df9c /examples
parent5a1638add8c42bd444448e35dbbbbcc23ebaa4d2 (diff)
parent93285d85b0413553286f8cc48cba4036260e5be1 (diff)
downloadiced-04efd22dbaffbbb251c871aa7c1e81cdf31eb5f0.tar.gz
iced-04efd22dbaffbbb251c871aa7c1e81cdf31eb5f0.tar.bz2
iced-04efd22dbaffbbb251c871aa7c1e81cdf31eb5f0.zip
Merge pull request #1209 from iced-rs/checkbox-radio-text-color
Remove ambiguous `text_color` attributes for `Checkbox` and `Radio`
Diffstat (limited to '')
-rw-r--r--examples/scrollable/src/style.rs1
-rw-r--r--examples/styling/src/main.rs3
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/scrollable/src/style.rs b/examples/scrollable/src/style.rs
index ec1f13db..0ed38b00 100644
--- a/examples/scrollable/src/style.rs
+++ b/examples/scrollable/src/style.rs
@@ -116,6 +116,7 @@ mod dark {
dot_color: ACTIVE,
border_width: 1.0,
border_color: ACTIVE,
+ text_color: None,
}
}
diff --git a/examples/styling/src/main.rs b/examples/styling/src/main.rs
index 065764b3..b4ef3e87 100644
--- a/examples/styling/src/main.rs
+++ b/examples/styling/src/main.rs
@@ -343,6 +343,7 @@ mod style {
dot_color: ACTIVE,
border_width: 1.0,
border_color: ACTIVE,
+ text_color: None,
}
}
@@ -528,10 +529,10 @@ mod style {
background: if is_checked { ACTIVE } else { SURFACE }
.into(),
checkmark_color: Color::WHITE,
- text_color: Color::BLACK,
border_radius: 2.0,
border_width: 1.0,
border_color: ACTIVE,
+ text_color: None,
}
}