mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
trailing commans
This commit is contained in:
@@ -21,22 +21,86 @@ BORDER_CHARS: dict[
|
||||
] = {
|
||||
# Three tuples for the top, middle, and bottom rows.
|
||||
# The sub-tuples are the characters for the left, center, and right borders.
|
||||
"": ((" ", " ", " "), (" ", " ", " "), (" ", " ", " ")),
|
||||
"ascii": (("+", "-", "+"), ("|", " ", "|"), ("+", "-", "+")),
|
||||
"none": ((" ", " ", " "), (" ", " ", " "), (" ", " ", " ")),
|
||||
"hidden": ((" ", " ", " "), (" ", " ", " "), (" ", " ", " ")),
|
||||
"blank": ((" ", " ", " "), (" ", " ", " "), (" ", " ", " ")),
|
||||
"round": (("╭", "─", "╮"), ("│", " ", "│"), ("╰", "─", "╯")),
|
||||
"solid": (("┌", "─", "┐"), ("│", " ", "│"), ("└", "─", "┘")),
|
||||
"double": (("╔", "═", "╗"), ("║", " ", "║"), ("╚", "═", "╝")),
|
||||
"dashed": (("┏", "╍", "┓"), ("╏", " ", "╏"), ("┗", "╍", "┛")),
|
||||
"heavy": (("┏", "━", "┓"), ("┃", " ", "┃"), ("┗", "━", "┛")),
|
||||
"inner": (("▗", "▄", "▖"), ("▐", " ", "▌"), ("▝", "▀", "▘")),
|
||||
"outer": (("▛", "▀", "▜"), ("▌", " ", "▐"), ("▙", "▄", "▟")),
|
||||
"hkey": (("▔", "▔", "▔"), (" ", " ", " "), ("▁", "▁", "▁")),
|
||||
"vkey": (("▏", " ", "▕"), ("▏", " ", "▕"), ("▏", " ", "▕")),
|
||||
"tall": (("▊", "▔", "▎"), ("▊", " ", "▎"), ("▊", "▁", "▎")),
|
||||
"wide": (("▁", "▁", "▁"), ("▎", " ", "▋"), ("▔", "▔", "▔")),
|
||||
"": (
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
),
|
||||
"ascii": (
|
||||
("+", "-", "+"),
|
||||
("|", " ", "|"),
|
||||
("+", "-", "+"),
|
||||
),
|
||||
"none": (
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
),
|
||||
"hidden": (
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
),
|
||||
"blank": (
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
(" ", " ", " "),
|
||||
),
|
||||
"round": (
|
||||
("╭", "─", "╮"),
|
||||
("│", " ", "│"),
|
||||
("╰", "─", "╯"),
|
||||
),
|
||||
"solid": (
|
||||
("┌", "─", "┐"),
|
||||
("│", " ", "│"),
|
||||
("└", "─", "┘"),
|
||||
),
|
||||
"double": (
|
||||
("╔", "═", "╗"),
|
||||
("║", " ", "║"),
|
||||
("╚", "═", "╝"),
|
||||
),
|
||||
"dashed": (
|
||||
("┏", "╍", "┓"),
|
||||
("╏", " ", "╏"),
|
||||
("┗", "╍", "┛"),
|
||||
),
|
||||
"heavy": (
|
||||
("┏", "━", "┓"),
|
||||
("┃", " ", "┃"),
|
||||
("┗", "━", "┛"),
|
||||
),
|
||||
"inner": (
|
||||
("▗", "▄", "▖"),
|
||||
("▐", " ", "▌"),
|
||||
("▝", "▀", "▘"),
|
||||
),
|
||||
"outer": (
|
||||
("▛", "▀", "▜"),
|
||||
("▌", " ", "▐"),
|
||||
("▙", "▄", "▟"),
|
||||
),
|
||||
"hkey": (
|
||||
("▔", "▔", "▔"),
|
||||
(" ", " ", " "),
|
||||
("▁", "▁", "▁"),
|
||||
),
|
||||
"vkey": (
|
||||
("▏", " ", "▕"),
|
||||
("▏", " ", "▕"),
|
||||
("▏", " ", "▕"),
|
||||
),
|
||||
"tall": (
|
||||
("▊", "▔", "▎"),
|
||||
("▊", " ", "▎"),
|
||||
("▊", "▁", "▎"),
|
||||
),
|
||||
"wide": (
|
||||
("▁", "▁", "▁"),
|
||||
("▎", " ", "▋"),
|
||||
("▔", "▔", "▔"),
|
||||
),
|
||||
}
|
||||
|
||||
# Some of the borders are on the widget background and some are on the background of the parent
|
||||
|
||||
Reference in New Issue
Block a user