Skip to content

Commit

Permalink
Merge pull request #720 from taiki-e/style-clone
Browse files Browse the repository at this point in the history
impl Clone and Copy for all Style types in iced_style
  • Loading branch information
hecrj authored Jan 29, 2021
2 parents c7898a1 + 2969558 commit 12c0c18
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 12c0c18

Please sign in to comment.