Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

impl Clone and Copy for all Style types in iced_style #720

Merged
merged 1 commit into from
Jan 29, 2021
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 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