feat: moved a2ui surface to a separate panel

This commit is contained in:
Georg Bauer
2026-07-27 12:58:46 +02:00
parent ef1c574a7f
commit f69623ad02
5 changed files with 93 additions and 17 deletions

View File

@@ -6,6 +6,30 @@ use std::collections::{BTreeSet, HashMap, HashSet};
use time::{Month, OffsetDateTime};
impl App {
pub(super) fn a2ui_detail(&self) -> Element<'_, Message> {
let content = self.displayed_a2ui_surface().unwrap_or_else(|| {
container(
column![
text("No A2UI surface").size(24),
text("Interactive surfaces from DS4 will appear here.")
.size(14)
.color(muted_text()),
]
.spacing(8)
.align_x(Alignment::Center),
)
.center_x(Length::Fill)
.center_y(Length::Fill)
.into()
});
container(content)
.max_width(860)
.center_x(Length::Fill)
.height(Length::Fill)
.padding(24)
.into()
}
pub(crate) fn sync_a2ui_renderer_state(&mut self) {
let mut markdown = HashMap::new();
let mut editors = HashMap::new();