forked from 1b-agent/opencadstudio-upstream
Reference panel: the palette launcher sits beside the title
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
95e2bae0d2
commit
13ccb82d8e
1 file changed
+5
-7
@@ -207,13 +207,11 @@ pub(super) fn group_title<'a>(title: &'static str, open: &Option<String>) -> Ele
|
|||||||
)
|
)
|
||||||
.delay(Duration::from_millis(400))
|
.delay(Duration::from_millis(400))
|
||||||
.style(tip_style);
|
.style(tip_style);
|
||||||
row![
|
// Shrink-sized: a Fill here would make the panel claim the whole row.
|
||||||
iced::widget::Space::new().width(Fill),
|
row![title_button, launcher]
|
||||||
title_button,
|
.spacing(6)
|
||||||
container(launcher).width(Fill).align_x(iced::Right)
|
.align_y(iced::Center)
|
||||||
]
|
.into()
|
||||||
.align_y(iced::Center)
|
|
||||||
.into()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn tool_button(tool: &Tool, active: bool, panel_id: &'static str) -> Element<'static, Message> {
|
fn tool_button(tool: &Tool, active: bool, panel_id: &'static str) -> Element<'static, Message> {
|
||||||
|
|||||||
Reference in new issue
Block a user