mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +00:00
begin Titan protocol implementation
This commit is contained in:
parent
236d941b37
commit
879fe7a6f6
37 changed files with 609 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue