impl Clone and Copy for all Style types in iced_style

This commit is contained in:
Taiki Endo 2021-01-29 14:08:14 +09:00
parent 8d882d787e
commit 2969558afd
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
use iced_core::{Background, Color, Vector}; use iced_core::{Background, Color, Vector};
/// The appearance of a button. /// The appearance of a button.
#[derive(Debug)] #[derive(Debug, Clone, Copy)]
pub struct Style { pub struct Style {
pub shadow_offset: Vector, pub shadow_offset: Vector,
pub background: Option<Background>, pub background: Option<Background>,

View File

@ -2,7 +2,7 @@
use iced_core::{Background, Color}; use iced_core::{Background, Color};
/// The appearance of a checkbox. /// The appearance of a checkbox.
#[derive(Debug)] #[derive(Debug, Clone, Copy)]
pub struct Style { pub struct Style {
pub background: Background, pub background: Background,
pub checkmark_color: Color, pub checkmark_color: Color,

View File

@ -2,7 +2,7 @@
use iced_core::{Background, Color}; use iced_core::{Background, Color};
/// The appearance of a progress bar. /// The appearance of a progress bar.
#[derive(Debug)] #[derive(Debug, Clone, Copy)]
pub struct Style { pub struct Style {
pub background: Background, pub background: Background,
pub bar: Background, pub bar: Background,

View File

@ -2,7 +2,7 @@
use iced_core::{Background, Color}; use iced_core::{Background, Color};
/// The appearance of a radio button. /// The appearance of a radio button.
#[derive(Debug)] #[derive(Debug, Clone, Copy)]
pub struct Style { pub struct Style {
pub background: Background, pub background: Background,
pub dot_color: Color, pub dot_color: Color,