From 12b4d441ca1357eb31b697d9c058c95c35a72c4b Mon Sep 17 00:00:00 2001 From: yggverse Date: Sat, 16 Nov 2024 21:41:07 +0200 Subject: [PATCH] add tooltip --- src/app/browser/window/tab/item/page/content/status/identity.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/browser/window/tab/item/page/content/status/identity.rs b/src/app/browser/window/tab/item/page/content/status/identity.rs index dc920431..2d06f3df 100644 --- a/src/app/browser/window/tab/item/page/content/status/identity.rs +++ b/src/app/browser/window/tab/item/page/content/status/identity.rs @@ -6,6 +6,7 @@ const DEFAULT_ICON_NAME: &str = "avatar-default-symbolic"; const DEFAULT_TITLE: &str = "Identity"; const DEFAULT_DESCRIPTION: &str = "Client certificate required to continue!"; const DEFAULT_BUTTON_LABEL: &str = "Select"; +const DEFAULT_BUTTON_TOOLTIP_TEXT: &str = "Select certificate"; const DEFAULT_BUTTON_CLASS: &str = "suggested-action"; /// Create new default preset for `Identity` @@ -15,6 +16,7 @@ pub fn new_gobject() -> StatusPage { let button = &Button::builder() .css_classes([DEFAULT_BUTTON_CLASS]) .label(DEFAULT_BUTTON_LABEL) + .tooltip_text(DEFAULT_BUTTON_TOOLTIP_TEXT) .halign(Align::Center) .build();