mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 07:16:05 +02:00
add heavy & none table border options (#2686)
This commit is contained in:
@ -536,6 +536,66 @@ impl Theme {
|
||||
print_bottom_border: true,
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub fn heavy() -> Theme {
|
||||
Theme {
|
||||
top_left: '┏',
|
||||
middle_left: '┣',
|
||||
bottom_left: '┗',
|
||||
top_center: '┳',
|
||||
center: '╋',
|
||||
bottom_center: '┻',
|
||||
top_right: '┓',
|
||||
middle_right: '┫',
|
||||
bottom_right: '┛',
|
||||
top_horizontal: '━',
|
||||
middle_horizontal: '━',
|
||||
bottom_horizontal: '━',
|
||||
|
||||
left_vertical: '┃',
|
||||
center_vertical: '┃',
|
||||
right_vertical: '┃',
|
||||
|
||||
separate_header: true,
|
||||
separate_rows: false,
|
||||
|
||||
print_left_border: true,
|
||||
print_right_border: true,
|
||||
print_top_border: true,
|
||||
print_bottom_border: true,
|
||||
}
|
||||
}
|
||||
#[allow(unused)]
|
||||
pub fn none() -> Theme {
|
||||
Theme {
|
||||
top_left: ' ',
|
||||
middle_left: ' ',
|
||||
bottom_left: ' ',
|
||||
top_center: ' ',
|
||||
center: ' ',
|
||||
bottom_center: ' ',
|
||||
top_right: ' ',
|
||||
middle_right: ' ',
|
||||
bottom_right: ' ',
|
||||
|
||||
top_horizontal: ' ',
|
||||
middle_horizontal: ' ',
|
||||
bottom_horizontal: ' ',
|
||||
|
||||
left_vertical: ' ',
|
||||
center_vertical: ' ',
|
||||
right_vertical: ' ',
|
||||
|
||||
separate_header: false,
|
||||
separate_rows: false,
|
||||
|
||||
print_left_border: false,
|
||||
print_right_border: false,
|
||||
print_top_border: false,
|
||||
print_bottom_border: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Table {
|
||||
|
Reference in New Issue
Block a user