diff options
| author | Arne Dußin | 2020-11-20 20:32:25 +0100 |
|---|---|---|
| committer | Arne Dußin | 2020-11-20 20:32:25 +0100 |
| commit | d6a0708b995b6c0e12ed8890c678c180f859de51 (patch) | |
| tree | 17d1584a811a584a14951a9767cdf118cc9e19d4 /src | |
| parent | f11b278dda63c851e74fdf3ef2c942192ca6b875 (diff) | |
| download | graf_karto-d6a0708b995b6c0e12ed8890c678c180f859de51.tar.gz graf_karto-d6a0708b995b6c0e12ed8890c678c180f859de51.zip | |
Change to different GUI style
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 7 |
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); |
