use iced::{self, window, Application, Font, Settings};
mod gandalf;
mod input;
mod programs;
mod theme;
pub const FONT_REGULAR: Font = Font::External {
name: "default",
bytes: include_bytes!("../fonts/FiraCode-Regular.ttf"),
};
pub const FONT_MEDIUM: Font = Font::External {
name: "default",
bytes: include_bytes!("../fonts/FiraCode-Medium.ttf"),
};
pub const FONT_BOLD: Font = Font::External {
name: "default",
bytes: include_bytes!("../fonts/FiraCode-Bold.ttf"),
};
pub fn main() -> iced::Result {
gandalf::Gandalf::run(Settings {
id: Some("gandalf".to_owned()),
window: window::Settings {
size: (1, 1),
position: window::Position::Specific(0, 0),
min_size: None,
max_size: None,
visible: true,
resizable: false,
decorations: false,
transparent: true,
always_on_top: true,
icon: None,
},
flags: (),
default_font: Some(include_bytes!("../fonts/FiraCode-Regular.ttf")),
default_text_size: 30,
text_multithreading: true,
antialiasing: true,
exit_on_close_request: false,
try_opengles_first: false,
})
}