GUI plugins #9
1 changed files with 5 additions and 0 deletions
pinakes-plugin-api: add widgets field to manifest UI section
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I6fae2dc3c09702aa5a54d1e17a8175516a6a6964
commit
aa2a81e354
|
|
@ -11,6 +11,7 @@ use crate::{
|
|||
FilesystemCapability,
|
||||
NetworkCapability,
|
||||
UiPage,
|
||||
UiWidget,
|
||||
};
|
||||
|
||||
/// Plugin manifest file format (TOML)
|
||||
|
|
@ -35,6 +36,10 @@ pub struct UiSection {
|
|||
/// UI pages defined by this plugin
|
||||
#[serde(default)]
|
||||
pub pages: Vec<UiPageEntry>,
|
||||
|
||||
/// Widgets to inject into existing host pages
|
||||
#[serde(default)]
|
||||
pub widgets: Vec<UiWidget>,
|
||||
}
|
||||
|
||||
/// Entry for a UI page in the manifest - can be inline or file reference
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue