From 45ad4f55d790978423d5aba65823dd4c5c9fa4e5 Mon Sep 17 00:00:00 2001 From: aiongg Date: Sat, 21 Nov 2026 06:46:13 +0000 Subject: [PATCH] FloatingGroup::scale is a declared prop (display scale, pixels per point) --- crates/ui-panels/src/docking/floating.rs | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/crates/ui-panels/src/docking/floating.rs b/crates/ui-panels/src/docking/floating.rs index fc6369b3b..ba0c58ef9 100644 --- a/crates/ui-panels/src/docking/floating.rs +++ b/crates/ui-panels/src/docking/floating.rs @@ -277,8 +277,9 @@ pub struct FloatingGroup<'a> { placed: Option, /// The width a resize gave the collapsed column this pass. collapsed_width: Option, - /// The display scale of the OS window the group shows in, which sizes the rule under its title row; unset, the - /// running window's. + /// The display scale of the OS window the group shows in (`native::pixels_per_point`), when it differs from the + /// running window's: its chrome, the rule under its title row included, is sized at that scale. + #[prop(quantity = "display scale, pixels per point")] scale: Option, /// Starts the window-unit drag; set by `window_of`. start_drag: Option>, @@ -363,14 +364,6 @@ impl<'a> FloatingGroup<'a> { self } - /// The display scale of the OS window the group shows in (`native::pixels_per_point`), when it differs from the - /// running window's: its chrome is sized at that scale. - #[must_use] - pub fn scale(mut self, pixels_per_point: f32) -> Self { - self.scale = Some(pixels_per_point); - self - } - /// The action parts at the end of the title row, in reading order. #[must_use] pub fn actions(mut self, actions: impl IntoIterator) -> Self {