Skip to content

Commit

Permalink
Added a new minimalist table style
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 25, 2023
1 parent b2ec0f5 commit 7a3f4d6
Showing 1 changed file with 23 additions and 20 deletions.
43 changes: 23 additions & 20 deletions src/core/escritoire.scala
Original file line number Diff line number Diff line change
Expand Up @@ -244,35 +244,38 @@ case class Table
next #:: rows(0, Array.fill[Int](cols.length)(0))

package tableStyles:
given default: TableStyle =
TableStyle(1, '│', '│', '│', '┌', '┬', '┐', '└', '┴', '┘', '├', '┼', '┤', '─', '─', '─')
given default: TableStyle =
TableStyle(1, '│', '│', '│', '┌', '┬', '┐', '└', '┴', '┘', '├', '┼', '┤', '─', '─', '─')

given horizontal: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', '─', ' ', ' ', '─', ' ', ' ', '─', ' ', '─', '─', '─')
given horizontal: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', '─', ' ', ' ', '─', ' ', ' ', '─', ' ', '─', '─', '─')

given horizontalGaps: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '─', '')
given minimalist: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '─', ' ')

given horizontalDots: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', '', ' ', ' ', '', ' ', ' ', '', ' ', '', '', '')
given horizontalGaps: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', '')

given doubled: TableStyle =
TableStyle(1, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '')
given horizontalDots: TableStyle =
TableStyle(1, ' ', ' ', ' ', ' ', '', ' ', ' ', '', ' ', ' ', '', ' ', '', '', '')

given rounded: TableStyle =
TableStyle(1, '', '│', '', '', '', '', '', '', '', '', '┼', '', '', '─', '')
given doubled: TableStyle =
TableStyle(1, '', '│', '', '', '', '', '', '', '', '', '┼', '', '', '─', '')

given dotted: TableStyle =
TableStyle(1, '', '', '', '', '┬', '', '', '┴', '', '├', '┼', '┤', '', '', '')
given rounded: TableStyle =
TableStyle(1, '', '', '', '', '┬', '', '', '┴', '', '├', '┼', '┤', '', '', '')

given outline: TableStyle =
TableStyle(1, '┊', '┊', '┊', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '╌', '╌', '╌')
given dotted: TableStyle =
TableStyle(1, '┊', '┊', '┊', '', '', '', '', '', '', '', '', '', '╌', '╌', '╌')

given ascii: TableStyle =
TableStyle(1, '|', '|', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '-', '-', '-')
given outline: TableStyle =
TableStyle(1, '', '', '', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '', '', '')

given borderless: TableStyle =
TableStyle(0, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ')
given ascii: TableStyle =
TableStyle(1, '|', '|', '|', '+', '+', '+', '+', '+', '+', '+', '+', '+', '-', '-', '-')

given borderless: TableStyle =
TableStyle(0, ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ')

case class TableStyle
(pad: Int, left: Char, sep: Char, right: Char, topLeft: Char, topSep: Char, topRight: Char,
Expand Down

0 comments on commit 7a3f4d6

Please sign in to comment.