Skip to content

Commit

Permalink
impl Clone and Copy for all Style types in iced_style
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Jan 29, 2021
1 parent 8d882d7 commit 2969558
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion style/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use iced_core::{Background, Color, Vector};

/// The appearance of a button.
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Style {
pub shadow_offset: Vector,
pub background: Option<Background>,
Expand Down
2 changes: 1 addition & 1 deletion style/src/checkbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use iced_core::{Background, Color};

/// The appearance of a checkbox.
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Style {
pub background: Background,
pub checkmark_color: Color,
Expand Down
2 changes: 1 addition & 1 deletion style/src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use iced_core::{Background, Color};

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

/// The appearance of a radio button.
#[derive(Debug)]
#[derive(Debug, Clone, Copy)]
pub struct Style {
pub background: Background,
pub dot_color: Color,
Expand Down

0 comments on commit 2969558

Please sign in to comment.