diff options
author | 2021-10-18 15:19:04 +0700 | |
---|---|---|
committer | 2021-10-18 15:19:04 +0700 | |
commit | edea093350e1b576e2b7db50c525e7fa5c3bea9f (patch) | |
tree | bcc93c11a804d04e5842cef6c2088911fd4ef822 /graphics/src/defaults.rs | |
parent | 54a9a232f8110364972a8eef966b7b7477573f4f (diff) | |
download | iced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.tar.gz iced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.tar.bz2 iced-edea093350e1b576e2b7db50c525e7fa5c3bea9f.zip |
Move `Defaults` from `iced_graphics` to `iced_native`
Diffstat (limited to '')
-rw-r--r-- | graphics/src/defaults.rs | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/graphics/src/defaults.rs b/graphics/src/defaults.rs deleted file mode 100644 index 11718a87..00000000 --- a/graphics/src/defaults.rs +++ /dev/null @@ -1,32 +0,0 @@ -//! Use default styling attributes to inherit styles. -use iced_native::Color; - -/// Some default styling attributes. -#[derive(Debug, Clone, Copy)] -pub struct Defaults { - /// Text styling - pub text: Text, -} - -impl Default for Defaults { - fn default() -> Defaults { - Defaults { - text: Text::default(), - } - } -} - -/// Some default text styling attributes. -#[derive(Debug, Clone, Copy)] -pub struct Text { - /// The default color of text - pub color: Color, -} - -impl Default for Text { - fn default() -> Text { - Text { - color: Color::BLACK, - } - } -} |