mirror of
https://github.com/alexpasmantier/television.git
synced 2025-06-07 12:05:34 +00:00
formatting
This commit is contained in:
parent
e36f0d450f
commit
597838d56f
@ -42,7 +42,10 @@ impl Layout {
|
||||
|
||||
/// TODO: add diagram
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn all_panes_centered(dimensions: Dimensions, area: Rect) -> Self {
|
||||
pub(crate) fn all_panes_centered(
|
||||
dimensions: Dimensions,
|
||||
area: Rect,
|
||||
) -> Self {
|
||||
let main_block = centered_rect(dimensions.x, dimensions.y, area);
|
||||
// split the main block into two vertical chunks
|
||||
let chunks = layout::Layout::default()
|
||||
@ -75,7 +78,10 @@ impl Layout {
|
||||
|
||||
/// TODO: add diagram
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn results_only_centered(dimensions: Dimensions, area: Rect) -> Self {
|
||||
pub(crate) fn results_only_centered(
|
||||
dimensions: Dimensions,
|
||||
area: Rect,
|
||||
) -> Self {
|
||||
let main_block = centered_rect(dimensions.x, dimensions.y, area);
|
||||
// split the main block into two vertical chunks
|
||||
let chunks = layout::Layout::default()
|
||||
|
Loading…
x
Reference in New Issue
Block a user