begin Titan protocol implementation

This commit is contained in:
yggverse 2025-01-14 04:53:08 +02:00
parent 236d941b37
commit 879fe7a6f6
37 changed files with 609 additions and 102 deletions

View file

@ -217,6 +217,10 @@ impl Widget {
self.entry.set_primary_icon_name(Some(name));
self.entry.set_primary_icon_tooltip_text(Some(tooltip));
}
PrimaryIcon::Titan { name, tooltip } => {
self.entry.set_primary_icon_name(Some(name));
self.entry.set_primary_icon_tooltip_text(Some(tooltip));
}
}
// Update progress

View file

@ -15,6 +15,10 @@ pub enum PrimaryIcon<'a> {
name: &'a str,
tooltip: &'a str,
},
Titan {
name: &'a str,
tooltip: &'a str,
},
}
pub fn from(request: &str) -> PrimaryIcon {
@ -39,6 +43,13 @@ pub fn from(request: &str) -> PrimaryIcon {
};
}
if request.starts_with("titan:") {
return PrimaryIcon::Titan {
name: "document-send-symbolic",
tooltip: "Titan input",
};
}
PrimaryIcon::Search {
name: "system-search-symbolic",
tooltip: "Search",