@@ -5,7 +5,7 @@ use palette::{
55 color_difference:: Wcag21RelativeContrast as _, DarkenAssign as _, IntoColor as _,
66 LightenAssign as _,
77} ;
8- use termwiz :: cell :: Cell ;
8+ use shadow_terminal :: termwiz ;
99
1010/// This is the default colour for when an opaque cell is over a "blank" cell.
1111///
@@ -27,7 +27,7 @@ enum Kind {
2727/// having a dedicated module hopefully makes things a bit simpler.
2828pub ( crate ) struct Blender < ' cell > {
2929 /// The normal underlying cell
30- cell : & ' cell mut Cell ,
30+ cell : & ' cell mut termwiz :: cell :: Cell ,
3131 /// The true colour value to use when the cell doesn't have a colour.
3232 default_colour : termwiz:: color:: SrgbaTuple ,
3333 /// The opacity of the cell above.
@@ -37,7 +37,7 @@ pub(crate) struct Blender<'cell> {
3737impl < ' cell > Blender < ' cell > {
3838 /// Instantiate
3939 pub const fn new (
40- cell : & ' cell mut Cell ,
40+ cell : & ' cell mut termwiz :: cell :: Cell ,
4141 maybe_default_bg_colour : Option < termwiz:: color:: SrgbaTuple > ,
4242 cell_above_opacity : f32 ,
4343 ) -> Self {
@@ -104,7 +104,7 @@ impl<'cell> Blender<'cell> {
104104 }
105105
106106 /// Blend the cell's colours with the cell above.
107- pub fn blend_all ( & mut self , cell_above : & Cell ) {
107+ pub fn blend_all ( & mut self , cell_above : & termwiz :: cell :: Cell ) {
108108 let character_above = cell_above. str ( ) ;
109109 let character_above_is_empty = character_above. is_empty ( ) || character_above == " " ;
110110 if character_above_is_empty {
@@ -269,7 +269,7 @@ mod test {
269269 async fn blend_pixels (
270270 maybe_first : Option < ( usize , usize , crate :: surface:: Colour ) > ,
271271 maybe_second : Option < ( usize , usize , crate :: surface:: Colour ) > ,
272- ) -> Cell {
272+ ) -> termwiz :: cell :: Cell {
273273 let mut renderer = make_renderer ( ) . await ;
274274 let mut tattoy_below = crate :: surface:: Surface :: new ( "below" . into ( ) , 1 , 1 , 1 , 1.0 ) ;
275275 if let Some ( first) = maybe_first {
0 commit comments