dash-frontend: Application list

This commit is contained in:
Aleksander
2025-09-28 13:13:37 +02:00
parent eb12a6a319
commit b5a3ba2954
18 changed files with 907 additions and 115 deletions

View File

@@ -308,7 +308,7 @@ impl Display {
}
pub fn tick_render(&mut self, renderer: &mut GlesRenderer, time_ms: u64) -> anyhow::Result<()> {
renderer.bind(&mut self.gles_texture)?;
renderer.bind(self.gles_texture.clone())?;
let size = Size::from((i32::from(self.width), i32::from(self.height)));
let damage: Rectangle<i32, smithay::utils::Physical> = Rectangle::from_size(size);

View File

@@ -6,6 +6,7 @@ use wgui::{
drawing::Color,
event::{self, CallbackMetadata, EventListenerKind},
layout::LayoutParams,
parser::Fetchable,
renderer_vk::util,
taffy::{self, prelude::length},
widget::{
@@ -163,7 +164,7 @@ where
}
let template_key = format!("Key{:?}", key.cap_type);
gui_state_key.process_template(
gui_state_key.instantiate_template(
&parse_doc_params,
&template_key,
&mut panel.layout,

View File

@@ -39,8 +39,9 @@ where
let mut params: HashMap<Rc<str>, Rc<str>> = HashMap::new();
params.insert("display".into(), (idx + 1).to_string().into());
params.insert("handle".into(), handle.0.to_string().into());
parser_state
.process_template(doc_params, "Set", layout, listeners, widget, params)?;
parser_state.instantiate_template(
doc_params, "Set", layout, listeners, widget, params,
)?;
}
Ok(())
},