core: implement fluent builder for data builders

This commit is contained in:
2026-11-15 19:43:37 +07:00
parent 3fe4ac4427
commit fd6a8c0342
9 changed files with 39 additions and 9 deletions
+4 -1
View File
@@ -1,6 +1,6 @@
use std::rc::Rc;
use gpui::prelude::FluentBuilder as _;
use gpui::prelude::FluentBuilder;
use gpui::{
App, ElementId, InteractiveElement as _, IntoElement, KeyDownEvent, ParentElement as _,
RenderOnce, Role, SharedString, StatefulInteractiveElement as _, StyleRefinement, Styled as _,
@@ -61,6 +61,9 @@ where
}
}
// SelectOption is a data builder, not an element, adopt the combinators explicitly.
impl<T> FluentBuilder for SelectOption<T> {}
/// A control that shows the chosen value and opens a menu of the choices.
#[derive(IntoElement)]
#[must_use]