aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Dußin2020-11-20 20:32:25 +0100
committerArne Dußin2020-11-20 20:32:25 +0100
commitd6a0708b995b6c0e12ed8890c678c180f859de51 (patch)
tree17d1584a811a584a14951a9767cdf118cc9e19d4 /src
parentf11b278dda63c851e74fdf3ef2c942192ca6b875 (diff)
downloadgraf_karto-d6a0708b995b6c0e12ed8890c678c180f859de51.tar.gz
graf_karto-d6a0708b995b6c0e12ed8890c678c180f859de51.zip
Change to different GUI style
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);