mirror of
https://github.com/nushell/nushell
synced 2024-11-15 09:27:08 +00:00
with_love table theme (#2468)
This commit is contained in:
parent
8192360b20
commit
3f443f40d0
3 changed files with 36 additions and 0 deletions
|
@ -70,6 +70,7 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme {
|
||||||
Ok(m) if m == "compact" => nu_table::Theme::compact(),
|
Ok(m) if m == "compact" => nu_table::Theme::compact(),
|
||||||
Ok(m) if m == "light" => nu_table::Theme::light(),
|
Ok(m) if m == "light" => nu_table::Theme::light(),
|
||||||
Ok(m) if m == "thin" => nu_table::Theme::thin(),
|
Ok(m) if m == "thin" => nu_table::Theme::thin(),
|
||||||
|
Ok(m) if m == "with_love" => nu_table::Theme::with_love(),
|
||||||
Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(),
|
Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(),
|
||||||
_ => nu_table::Theme::compact(),
|
_ => nu_table::Theme::compact(),
|
||||||
})
|
})
|
||||||
|
|
|
@ -95,6 +95,7 @@ pub fn table_mode(config: &NuConfig) -> nu_table::Theme {
|
||||||
Ok(m) if m == "compact" => nu_table::Theme::compact(),
|
Ok(m) if m == "compact" => nu_table::Theme::compact(),
|
||||||
Ok(m) if m == "light" => nu_table::Theme::light(),
|
Ok(m) if m == "light" => nu_table::Theme::light(),
|
||||||
Ok(m) if m == "thin" => nu_table::Theme::thin(),
|
Ok(m) if m == "thin" => nu_table::Theme::thin(),
|
||||||
|
Ok(m) if m == "with_love" => nu_table::Theme::with_love(),
|
||||||
Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(),
|
Ok(m) if m == "compact_double" => nu_table::Theme::compact_double(),
|
||||||
_ => nu_table::Theme::compact(),
|
_ => nu_table::Theme::compact(),
|
||||||
})
|
})
|
||||||
|
|
|
@ -114,6 +114,7 @@ impl Theme {
|
||||||
print_bottom_border: true,
|
print_bottom_border: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub fn thin() -> Theme {
|
pub fn thin() -> Theme {
|
||||||
Theme {
|
Theme {
|
||||||
|
@ -144,6 +145,7 @@ impl Theme {
|
||||||
print_bottom_border: true,
|
print_bottom_border: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub fn light() -> Theme {
|
pub fn light() -> Theme {
|
||||||
Theme {
|
Theme {
|
||||||
|
@ -174,6 +176,7 @@ impl Theme {
|
||||||
print_bottom_border: true,
|
print_bottom_border: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub fn compact() -> Theme {
|
pub fn compact() -> Theme {
|
||||||
Theme {
|
Theme {
|
||||||
|
@ -203,6 +206,37 @@ impl Theme {
|
||||||
print_bottom_border: true,
|
print_bottom_border: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(unused)]
|
||||||
|
pub fn with_love() -> 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: false,
|
||||||
|
print_right_border: false,
|
||||||
|
print_top_border: true,
|
||||||
|
print_bottom_border: true,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#[allow(unused)]
|
#[allow(unused)]
|
||||||
pub fn compact_double() -> Theme {
|
pub fn compact_double() -> Theme {
|
||||||
Theme {
|
Theme {
|
||||||
|
|
Loading…
Reference in a new issue