summaryrefslogtreecommitdiffstats
path: root/style
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-19 20:48:50 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-19 20:48:50 +0200
commitf806d001e6fb44b5a45029ca257261e6e0d4d4b2 (patch)
tree4a9292fde7f8db76915d3596d326eb71ff7b92a9 /style
parentc0a141ab026f5686d6bd92c8807b174396cb9105 (diff)
downloadiced-f806d001e6fb44b5a45029ca257261e6e0d4d4b2.tar.gz
iced-f806d001e6fb44b5a45029ca257261e6e0d4d4b2.tar.bz2
iced-f806d001e6fb44b5a45029ca257261e6e0d4d4b2.zip
Introduce new `iced_highlighter` subcrate
Diffstat (limited to 'style')
-rw-r--r--style/src/text_editor.rs16
1 files changed, 1 insertions, 15 deletions
diff --git a/style/src/text_editor.rs b/style/src/text_editor.rs
index f1c31287..f6bae7e6 100644
--- a/style/src/text_editor.rs
+++ b/style/src/text_editor.rs
@@ -1,6 +1,5 @@
//! Change the appearance of a text editor.
-use crate::core::text::highlighter;
-use crate::core::{self, Background, BorderRadius, Color};
+use crate::core::{Background, BorderRadius, Color};
/// The appearance of a text input.
#[derive(Debug, Clone, Copy)]
@@ -46,16 +45,3 @@ pub trait StyleSheet {
/// Produces the style of a disabled text input.
fn disabled(&self, style: &Self::Style) -> Appearance;
}
-
-pub trait Highlight<Font = core::Font, Theme = crate::Theme> {
- fn format(&self, theme: &Theme) -> highlighter::Format<Font>;
-}
-
-impl<Font, Theme> Highlight<Font, Theme> for () {
- fn format(&self, _theme: &Theme) -> highlighter::Format<Font> {
- highlighter::Format {
- color: None,
- font: None,
- }
- }
-}