core: implement fluent builder for data builders
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use std::rc::Rc;
|
||||
|
||||
use gpui::prelude::FluentBuilder as _;
|
||||
use gpui::prelude::FluentBuilder;
|
||||
use gpui::{
|
||||
AnimationExt as _, App, Bounds, ElementId, Entity, InteractiveElement as _, IntoElement,
|
||||
KeyDownEvent, ParentElement as _, Point, RenderOnce, Role, SharedString, SpringAnimation,
|
||||
@@ -60,6 +60,9 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
// SegmentedOption is a data builder, not an element, adopt the combinators explicitly.
|
||||
impl<T> FluentBuilder for SegmentedOption<T> {}
|
||||
|
||||
/// A pill strip of mutually exclusive choices.
|
||||
#[derive(IntoElement)]
|
||||
#[must_use]
|
||||
|
||||
Reference in New Issue
Block a user