From ce836b2746ff46fed7cb0a97116a9fe2705d2e99 Mon Sep 17 00:00:00 2001 From: Fabian Keller Date: Tue, 22 Oct 2024 10:01:58 +0200 Subject: [PATCH] Use consistent symbol to refer to winit window --- src/window.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/window.rs b/src/window.rs index 422fd48e8..bc7cfd6ed 100644 --- a/src/window.rs +++ b/src/window.rs @@ -31,7 +31,7 @@ use kludgine::app::winit::event::{ use kludgine::app::winit::keyboard::{ Key, KeyLocation, ModifiersState, NamedKey, NativeKeyCode, PhysicalKey, SmolStr, }; -use kludgine::app::winit::window::{self, Cursor, Fullscreen, Icon, WindowButtons, WindowLevel}; +use kludgine::app::winit::window::{Cursor, Fullscreen, Icon, WindowButtons, WindowLevel}; use kludgine::app::{winit, WindowAttributes, WindowBehavior as _}; use kludgine::cosmic_text::{fontdb, Family, FamilyOwned}; use kludgine::drawing::Drawing; @@ -3177,16 +3177,16 @@ impl Not for ThemeMode { } } -impl From for ThemeMode { - fn from(value: window::Theme) -> Self { +impl From for ThemeMode { + fn from(value: winit::window::Theme) -> Self { match value { - window::Theme::Light => Self::Light, - window::Theme::Dark => Self::Dark, + winit::window::Theme::Light => Self::Light, + winit::window::Theme::Dark => Self::Dark, } } } -impl From for window::Theme { +impl From for winit::window::Theme { fn from(value: ThemeMode) -> Self { match value { ThemeMode::Light => Self::Light,