28 lines
832 B
Rust
28 lines
832 B
Rust
|
|
mod app;
|
||
|
|
mod file_editor_state;
|
||
|
|
mod file_tree;
|
||
|
|
mod highlighter;
|
||
|
|
mod recent_projects;
|
||
|
|
mod syntax_highlight;
|
||
|
|
mod theme;
|
||
|
|
mod ui;
|
||
|
|
|
||
|
|
use app::Editor;
|
||
|
|
use theme::storybook_theme;
|
||
|
|
|
||
|
|
// Embed Monaspace Neon fonts
|
||
|
|
const MONASPACE_NEON_REGULAR: &[u8] = include_bytes!("../assets/fonts/MonaspaceNeonNF-Regular.otf");
|
||
|
|
const MONASPACE_NEON_BOLD: &[u8] = include_bytes!("../assets/fonts/MonaspaceNeonNF-Bold.otf");
|
||
|
|
const MONASPACE_NEON_ITALIC: &[u8] = include_bytes!("../assets/fonts/MonaspaceNeonNF-Italic.otf");
|
||
|
|
|
||
|
|
fn main() -> iced::Result {
|
||
|
|
iced::application(|| Editor::default(), Editor::update, Editor::view)
|
||
|
|
.title(Editor::title)
|
||
|
|
.subscription(Editor::subscription)
|
||
|
|
.theme(Editor::theme)
|
||
|
|
.font(MONASPACE_NEON_REGULAR)
|
||
|
|
.font(MONASPACE_NEON_BOLD)
|
||
|
|
.font(MONASPACE_NEON_ITALIC)
|
||
|
|
.run()
|
||
|
|
}
|