Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/src/widget/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ where
}

/// The appearance of some text.
#[derive(Debug, Clone, Copy, Default)]
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Style {
/// The [`Color`] of the text.
///
Expand Down
2 changes: 1 addition & 1 deletion widget/src/checkbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ pub enum Status {
}

/// The style of a checkbox.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the checkbox.
pub background: Background,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ pub fn visible_bounds(id: Id) -> Task<Option<Rectangle>> {
}

/// The appearance of a container.
#[derive(Debug, Clone, Copy, Default)]
#[derive(Debug, Clone, Copy, PartialEq, Default)]
pub struct Style {
/// The text [`Color`] of the container.
pub text_color: Option<Color>,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/overlay/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ where
}

/// The appearance of a [`Menu`].
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the menu.
pub background: Background,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/pick_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ pub enum Status {
}

/// The appearance of a pick list.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The text [`Color`] of the pick list.
pub text_color: Color,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ where
}

/// The appearance of a progress bar.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the progress bar.
pub background: Background,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/radio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ pub enum Status {
}

/// The appearance of a radio button.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the radio button.
pub background: Background,
Expand Down
4 changes: 2 additions & 2 deletions widget/src/rule.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ where
}

/// The appearance of a rule.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The color of the rule.
pub color: Color,
Expand All @@ -200,7 +200,7 @@ pub struct Style {
}

/// The fill mode of a rule.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum FillMode {
/// Fill the whole length of the container.
Full,
Expand Down
6 changes: 3 additions & 3 deletions widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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>,
Expand All @@ -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,
Expand Down
8 changes: 4 additions & 4 deletions widget/src/slider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ pub enum Status {
}

/// The appearance of a slider.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The colors of the rail of the slider.
pub rail: Rail,
Expand All @@ -582,7 +582,7 @@ impl Style {
}

/// The appearance of a slider rail
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Rail {
/// The backgrounds of the rail of the slider.
pub backgrounds: (Background, Background),
Expand All @@ -593,7 +593,7 @@ pub struct Rail {
}

/// The appearance of the handle of a slider.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Handle {
/// The shape of the handle.
pub shape: HandleShape,
Expand All @@ -606,7 +606,7 @@ pub struct Handle {
}

/// The shape of the handle of a slider.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub enum HandleShape {
/// A circular handle.
Circle {
Expand Down
2 changes: 1 addition & 1 deletion widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ pub enum Status {
}

/// The appearance of a text input.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the text input.
pub background: Background,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/text_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,7 @@ pub enum Status {
}

/// The appearance of a text input.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The [`Background`] of the text input.
pub background: Background,
Expand Down
2 changes: 1 addition & 1 deletion widget/src/toggler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ pub enum Status {
}

/// The appearance of a toggler.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct Style {
/// The background [`Color`] of the toggler.
pub background: Color,
Expand Down