add tooltips

This commit is contained in:
yggverse 2024-11-29 03:58:30 +02:00
parent 3dfcbc279d
commit 00afa70d5d
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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();