mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-28 12:04:13 +00:00
add tooltips
This commit is contained in:
parent
3dfcbc279d
commit
00afa70d5d
@ -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();
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user