summaryrefslogtreecommitdiffstats
path: root/widget/src/scrollable.rs
diff options
context:
space:
mode:
authorLibravatar BradySimon <bradytsimon@gmail.com>2024-10-12 19:55:41 -0400
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-10-14 20:59:32 +0200
commitf912d26d64c80fe767e97a0c79416d7398f04488 (patch)
tree7ab5b37c97532c2f65bae8783c6876dffa139ba4 /widget/src/scrollable.rs
parentc217500a5abd1fbfc1e598fb98dadd3ee85d8a51 (diff)
downloadiced-f912d26d64c80fe767e97a0c79416d7398f04488.tar.gz
iced-f912d26d64c80fe767e97a0c79416d7398f04488.tar.bz2
iced-f912d26d64c80fe767e97a0c79416d7398f04488.zip
Add `PartialEq` derives for widget styles
Diffstat (limited to 'widget/src/scrollable.rs')
-rw-r--r--widget/src/scrollable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index 6d7f251e..528d63c1 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -1856,7 +1856,7 @@ pub enum Status {
}
/// The appearance of a scrollable.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`container::Style`] of a scrollable.
pub container: container::Style,
@@ -1869,7 +1869,7 @@ pub struct Style {
}
/// The appearance of the scrollbar of a scrollable.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Rail {
/// The [`Background`] of a scrollbar.
pub background: Option<Background>,
@@ -1880,7 +1880,7 @@ pub struct Rail {
}
/// The appearance of the scroller of a scrollable.
-#[derive(Debug, Clone, Copy)]
+#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Scroller {
/// The [`Color`] of the scroller.
pub color: Color,