mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
use markup in tooltip
This commit is contained in:
parent
cb08217ffa
commit
d6dc6acf04
@ -79,12 +79,12 @@ impl Gemini {
|
||||
.iter()
|
||||
.filter(|this| this.profile_identity_gemini_id == identity.id)
|
||||
{
|
||||
auth_scope.push(auth.scope.clone())
|
||||
auth_scope.push(format!("<small>{}</small>", auth.scope.clone()))
|
||||
}
|
||||
|
||||
// Build tooltip
|
||||
let mut tooltip = format!(
|
||||
"Valid:\n{}\n{}",
|
||||
"<b>valid</b>\n<small>{}</small> - <small>{}</small>",
|
||||
certificate
|
||||
.not_valid_before()
|
||||
.unwrap()
|
||||
@ -98,7 +98,7 @@ impl Gemini {
|
||||
);
|
||||
|
||||
if auth_scope.len() > 0 {
|
||||
tooltip.push_str(&format!("\n\nScope:\n{}", auth_scope.join("\n")));
|
||||
tooltip.push_str(&format!("\n\n<b>scope</b>\n{}", auth_scope.join("\n")));
|
||||
}
|
||||
|
||||
// Append record option
|
||||
|
@ -66,7 +66,7 @@ impl List {
|
||||
let subtitle = child.last_child().unwrap().downcast::<Label>().unwrap();
|
||||
|
||||
subtitle.set_label(&item.subtitle());
|
||||
subtitle.set_tooltip_text(Some(&item.tooltip()));
|
||||
subtitle.set_tooltip_markup(Some(&item.tooltip()));
|
||||
});
|
||||
|
||||
// Init main `DropDown`
|
||||
|
Loading…
x
Reference in New Issue
Block a user