From 2be7b3483fa3af03093c9455db7ee8ca069d8aa3 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Tue, 12 Mar 2024 13:27:44 +0000 Subject: [PATCH] Test fix --- crates/kas-core/src/theme/draw.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/kas-core/src/theme/draw.rs b/crates/kas-core/src/theme/draw.rs index 316b1bae9..926ccf42b 100644 --- a/crates/kas-core/src/theme/draw.rs +++ b/crates/kas-core/src/theme/draw.rs @@ -526,8 +526,7 @@ mod test { let _scale = draw.size_cx().scale_factor(); - let text = crate::text::Text::new("sample"); - let class = TextClass::Label(false); - draw.text_selected(Rect::ZERO, &text, .., class) + let text = crate::theme::Text::new("sample", TextClass::Label(false)); + draw.text_selected(Rect::ZERO, &text, ..) } }