From 00afa70d5d3c807aae21349c12d805f5171cecf1 Mon Sep 17 00:00:00 2001 From: yggverse Date: Fri, 29 Nov 2024 03:58:30 +0200 Subject: [PATCH] add tooltips --- .../window/tab/item/identity/gemini/widget/form/file.rs | 2 ++ .../window/tab/item/identity/gemini/widget/form/save.rs | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs index f440860f..b5d2166c 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/file.rs @@ -9,6 +9,7 @@ use gtk::{ use std::{cell::RefCell, rc::Rc}; const LABEL: &str = "Choose file.."; +const TOOLTIP_TEXT: &str = "Import existing identity from file"; const MARGIN: i32 = 8; pub struct File { @@ -28,6 +29,7 @@ impl File { let gobject = Button::builder() .label(LABEL) .margin_top(MARGIN) + .tooltip_text(TOOLTIP_TEXT) .visible(false) .build(); diff --git a/src/app/browser/window/tab/item/identity/gemini/widget/form/save.rs b/src/app/browser/window/tab/item/identity/gemini/widget/form/save.rs index aa80c339..372c5791 100644 --- a/src/app/browser/window/tab/item/identity/gemini/widget/form/save.rs +++ b/src/app/browser/window/tab/item/identity/gemini/widget/form/save.rs @@ -9,7 +9,8 @@ use gtk::{ }; use std::{cell::RefCell, fs::File, io::Write, rc::Rc}; -const LABEL: &str = "Export to file.."; +const LABEL: &str = "Export"; +const TOOLTIP_TEXT: &str = "Export selected identity to file"; const MARGIN: i32 = 8; pub struct Save { @@ -29,6 +30,7 @@ impl Save { let gobject = Button::builder() .label(LABEL) .margin_top(MARGIN) + .tooltip_text(TOOLTIP_TEXT) .visible(false) .build();