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:
commit
12c0c18d66
|
@ -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>,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue