mirror of
https://github.com/jwinterm/grim.git
synced 2026-11-25 23:43:53 +01:00
node: handle statuses, added base ui
This commit is contained in:
@@ -56,3 +56,11 @@ impl App {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn is_dual_panel_mode(frame: &mut Frame) -> bool {
|
||||
is_landscape(frame) && frame.info().window_info.size.x > 400.0
|
||||
}
|
||||
|
||||
pub fn is_landscape(frame: &mut Frame) -> bool {
|
||||
return frame.info().window_info.size.x > frame.info().window_info.size.y
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user