impl Clone and Copy for all Style types in iced_style
This commit is contained in:
parent
8d882d787e
commit
2969558afd
|
@ -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>,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue