mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add tooltips
This commit is contained in:
parent
3dfcbc279d
commit
00afa70d5d
2 changed files with 5 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue