Merge pull request #720 from taiki-e/style-clone

impl Clone and Copy for all Style types in iced_style
This commit is contained in:
Héctor Ramón 2021-01-29 19:56:33 +01:00 committed by GitHub
commit 12c0c18d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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,