aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 1ebcbfe..6c9a0ec 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,9 +19,11 @@ use config::Config;
use editor::Editor;
use gui::ToolSidebar;
use raylib::prelude::*;
+use std::ffi::CString;
use std::io;
use transform::Transform;
+pub const GUI_STYLE: &str = "assets/style/cyber.rgs";
pub const CONFIG_FILE: &str = "config.ron";
fn main() {
@@ -53,6 +55,11 @@ fn main() {
}
};
+ // Load the preferred gui style
+ rl.gui_load_style(Some(
+ &CString::new(GUI_STYLE).expect("Could not create C string from style file name"),
+ ));
+
let mut editor = Editor::new(&mut rl, &thread, config);
let tool_sidebar = ToolSidebar::new(&mut rl, &thread);