Mobydick-Linux-Scaricare-Mu.../src/ui/mod.rs

16 lines
267 B
Rust
Raw Normal View History

2019-02-05 14:11:02 +01:00
use gtk::prelude::*;
pub mod card;
pub mod dl_list;
2019-02-05 14:11:02 +01:00
pub mod login_page;
pub mod main_page;
2019-02-05 17:32:26 +01:00
pub mod network_image;
2019-02-05 14:11:02 +01:00
fn title(text: &str) -> gtk::Label {
2020-08-28 16:06:31 +02:00
let lbl = gtk::Label::new(text);
if let Some(c) = lbl.get_style_context() {
c.add_class("h2")
}
lbl
2019-02-05 14:11:02 +01:00
}