summaryrefslogtreecommitdiffstats
path: root/style/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-04-28 19:41:40 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-28 19:41:40 +0200
commit57a276e16539d6aeca0619e0c5e36d0b1c1b5ef9 (patch)
tree79dfb92903f27f2f743f4c3bcf49cf9956cab8cd /style/src
parentc31ab8eee6a49a48b4e6ad92207b8ee0360a0eff (diff)
parent47016a37dfe51ebc3cdf290d8afb34ceadb8edae (diff)
downloadiced-57a276e16539d6aeca0619e0c5e36d0b1c1b5ef9.tar.gz
iced-57a276e16539d6aeca0619e0c5e36d0b1c1b5ef9.tar.bz2
iced-57a276e16539d6aeca0619e0c5e36d0b1c1b5ef9.zip
Merge pull request #1814 from ids1024/advanced-text
Do not require `Copy` for text `StyleSheet::Style`
Diffstat (limited to '')
-rw-r--r--style/src/text.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/style/src/text.rs b/style/src/text.rs
deleted file mode 100644
index d5a16bef..00000000
--- a/style/src/text.rs
+++ /dev/null
@@ -1,20 +0,0 @@
-//! Change the appearance of text.
-use crate::core::Color;
-
-/// The style sheet of some text.
-pub trait StyleSheet {
- /// The supported style of the [`StyleSheet`].
- type Style: Default + Copy;
-
- /// Produces the [`Appearance`] of some text.
- fn appearance(&self, style: Self::Style) -> Appearance;
-}
-
-/// The apperance of some text.
-#[derive(Debug, Clone, Copy, Default)]
-pub struct Appearance {
- /// The [`Color`] of the text.
- ///
- /// The default, `None`, means using the inherited color.
- pub color: Option<Color>,
-}