refactor split off application state file

This commit is contained in:
2022-02-03 13:29:10 +01:00
parent a62b40f822
commit ccdd562766
3 changed files with 67 additions and 58 deletions

11
src/constants.rs Normal file
View File

@@ -0,0 +1,11 @@
pub const MARGIN_TOP: i32 = 32;
pub const MARGIN_BOTTOM: i32 = 32;
pub const MARGIN_LEFT: i32 = 16;
pub const MARGIN_RIGHT_SCALE_ADDITIONAL: i32 = 38;
pub const NONE_STRING_OPTION: Option<String> = None;
pub const TOGGLE_NEIGHBOURS_TEXT_TOGGLED: &str = "Hide Neighbours";
pub const TOGGLE_NEIGHBOURS_TEXT: &str = "Show Neighbours";
pub const SCALE_STEP: f64 = 1.0;