diff options
Diffstat (limited to 'src/gui/tool_sidebar.rs')
| -rw-r--r-- | src/gui/tool_sidebar.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/tool_sidebar.rs b/src/gui/tool_sidebar.rs index e6b8867..78041e7 100644 --- a/src/gui/tool_sidebar.rs +++ b/src/gui/tool_sidebar.rs @@ -3,7 +3,7 @@ // TODO: Currently, the keyboard shortcuts for tools are handled by the editor, but a lot speaks for // them being handled by the ToolSidebar instead. -use crate::math::{Rect, Surface, Vec2}; +use crate::math::{ExactSurface, Rect, Vec2}; use crate::tool::ToolType; use crate::Editor; use raylib::core::texture::Texture2D; @@ -30,6 +30,9 @@ impl ToolSidebar { } fn panel_rect(screen_height: u16) -> Rect<f32> { + /* The width is currently hardcoded as 104, which is + * 64 (button-size) + 20 left gap + 20 right gap + */ Rect::new(0., 0., 104., screen_height as f32) } |
