feat: moved a2ui surface to a separate panel
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user