From bbf31baee5ad22c08155f24d93e8e2a8d16eddb3 Mon Sep 17 00:00:00 2001 From: reya Date: Wed, 4 Mar 2026 15:59:38 +0700 Subject: [PATCH] chore: fix missing dep import for windows --- crates/title_bar/src/lib.rs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/crates/title_bar/src/lib.rs b/crates/title_bar/src/lib.rs index 388ff07..426bd43 100644 --- a/crates/title_bar/src/lib.rs +++ b/crates/title_bar/src/lib.rs @@ -1,14 +1,12 @@ -use gpui::prelude::FluentBuilder; #[cfg(target_os = "linux")] use gpui::MouseButton; -#[cfg(not(target_os = "windows"))] -use gpui::Pixels; +use gpui::prelude::FluentBuilder; use gpui::{ - px, AnyElement, Context, Decorations, Hsla, InteractiveElement as _, IntoElement, - ParentElement, Render, StatefulInteractiveElement as _, Styled, Window, WindowControlArea, + AnyElement, Context, Decorations, Hsla, InteractiveElement as _, IntoElement, ParentElement, + Pixels, Render, StatefulInteractiveElement as _, Styled, Window, WindowControlArea, px, }; -use smallvec::{smallvec, SmallVec}; -use theme::{ActiveTheme, PlatformKind, CLIENT_SIDE_DECORATION_ROUNDING}; +use smallvec::{SmallVec, smallvec}; +use theme::{ActiveTheme, CLIENT_SIDE_DECORATION_ROUNDING, PlatformKind}; use ui::h_flex; #[cfg(target_os = "linux")]