From 833538ee7f3a60a839304762dfc29b0881d19094 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 7 Mar 2024 20:11:32 +0100 Subject: Leverage `DefaultStyle` traits instead of `Default` --- winit/src/multi_window/window_manager.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'winit/src/multi_window/window_manager.rs') diff --git a/winit/src/multi_window/window_manager.rs b/winit/src/multi_window/window_manager.rs index 2800e923..71c1688b 100644 --- a/winit/src/multi_window/window_manager.rs +++ b/winit/src/multi_window/window_manager.rs @@ -2,7 +2,7 @@ use crate::core::mouse; use crate::core::window::Id; use crate::core::{Point, Size}; use crate::graphics::Compositor; -use crate::multi_window::{Application, State, Style}; +use crate::multi_window::{Application, DefaultStyle, State}; use std::collections::BTreeMap; use std::sync::Arc; @@ -12,7 +12,7 @@ use winit::monitor::MonitorHandle; pub struct WindowManager where C: Compositor, - Style: Default, + A::Theme: DefaultStyle, { aliases: BTreeMap, entries: BTreeMap>, @@ -22,7 +22,7 @@ impl WindowManager where A: Application, C: Compositor, - Style: Default, + A::Theme: DefaultStyle, { pub fn new() -> Self { Self { @@ -108,7 +108,7 @@ impl Default for WindowManager where A: Application, C: Compositor, - Style: Default, + A::Theme: DefaultStyle, { fn default() -> Self { Self::new() @@ -120,7 +120,7 @@ pub struct Window where A: Application, C: Compositor, - Style: Default, + A::Theme: DefaultStyle, { pub raw: Arc, pub state: State, @@ -135,7 +135,7 @@ impl Window where A: Application, C: Compositor, - Style: Default, + A::Theme: DefaultStyle, { pub fn position(&self) -> Option { self.raw -- cgit