From 1aeb317f2dbfb63215e6226073e67878ffa6503b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 6 Dec 2024 04:06:41 +0100 Subject: Add image and hash snapshot-based testing to `iced_test` --- winit/src/program/window_manager.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'winit/src/program/window_manager.rs') diff --git a/winit/src/program/window_manager.rs b/winit/src/program/window_manager.rs index 10a973fe..451b2caf 100644 --- a/winit/src/program/window_manager.rs +++ b/winit/src/program/window_manager.rs @@ -1,9 +1,10 @@ use crate::core::mouse; +use crate::core::theme; use crate::core::time::Instant; use crate::core::window::Id; use crate::core::{Point, Size}; use crate::graphics::Compositor; -use crate::program::{DefaultStyle, Program, State}; +use crate::program::{Program, State}; use std::collections::BTreeMap; use std::sync::Arc; @@ -14,7 +15,7 @@ pub struct WindowManager where P: Program, C: Compositor, - P::Theme: DefaultStyle, + P::Theme: theme::Base, { aliases: BTreeMap, entries: BTreeMap>, @@ -24,7 +25,7 @@ impl WindowManager where P: Program, C: Compositor, - P::Theme: DefaultStyle, + P::Theme: theme::Base, { pub fn new() -> Self { Self { @@ -132,7 +133,7 @@ impl Default for WindowManager where P: Program, C: Compositor, - P::Theme: DefaultStyle, + P::Theme: theme::Base, { fn default() -> Self { Self::new() @@ -144,7 +145,7 @@ pub struct Window where P: Program, C: Compositor, - P::Theme: DefaultStyle, + P::Theme: theme::Base, { pub raw: Arc, pub state: State

, @@ -160,7 +161,7 @@ impl Window where P: Program, C: Compositor, - P::Theme: DefaultStyle, + P::Theme: theme::Base, { pub fn position(&self) -> Option { self.raw -- cgit