pub fn centered_rect(percent_x: u16, percent_y: u16, r: Rect) -> Rect
Create a centered rect for dialogs