summary refs log tree commit diff
path: root/src/main.rs
blob: d7dd0a1b87515b270dd8916005e5b84c803b9d75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
static GLIB_LOGGER: glib::GlibLogger = glib::GlibLogger::new(
    glib::GlibLoggerFormat::Plain,
    glib::GlibLoggerDomain::CrateTarget,
);

fn main() {
    gettextrs::bindtextdomain(
        env!("CARGO_PKG_NAME"),
        env!("LOCALEDIR")
    ).expect("failed to bind text domain");
    gettextrs::bind_textdomain_codeset(env!("CARGO_PKG_NAME"), "UTF-8").unwrap();
    gettextrs::textdomain(env!("CARGO_PKG_NAME")).unwrap();

    log::set_logger(&GLIB_LOGGER).unwrap();
    log::set_max_level(log::LevelFilter::Debug);

    relm4_icons::initialize_icons();

    let app = relm4::RelmApp::new(bowl::APPLICATION_ID);
    relm4::set_global_css(".tag-pill button {
    min-height: 30px;
    min-width: 30px;
}");

    app.run_async::<bowl::App>(());
}