mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +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};
|
use std::{cell::RefCell, rc::Rc};
|
||||||
|
|
||||||
const LABEL: &str = "Choose file..";
|
const LABEL: &str = "Choose file..";
|
||||||
|
const TOOLTIP_TEXT: &str = "Import existing identity from file";
|
||||||
const MARGIN: i32 = 8;
|
const MARGIN: i32 = 8;
|
||||||
|
|
||||||
pub struct File {
|
pub struct File {
|
||||||
@ -28,6 +29,7 @@ impl File {
|
|||||||
let gobject = Button::builder()
|
let gobject = Button::builder()
|
||||||
.label(LABEL)
|
.label(LABEL)
|
||||||
.margin_top(MARGIN)
|
.margin_top(MARGIN)
|
||||||
|
.tooltip_text(TOOLTIP_TEXT)
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -9,7 +9,8 @@ use gtk::{
|
|||||||
};
|
};
|
||||||
use std::{cell::RefCell, fs::File, io::Write, rc::Rc};
|
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;
|
const MARGIN: i32 = 8;
|
||||||
|
|
||||||
pub struct Save {
|
pub struct Save {
|
||||||
@ -29,6 +30,7 @@ impl Save {
|
|||||||
let gobject = Button::builder()
|
let gobject = Button::builder()
|
||||||
.label(LABEL)
|
.label(LABEL)
|
||||||
.margin_top(MARGIN)
|
.margin_top(MARGIN)
|
||||||
|
.tooltip_text(TOOLTIP_TEXT)
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user