From bfb892b0fc8c93e97f2adf47bc7b1314ca3eaba6 Mon Sep 17 00:00:00 2001 From: citrons Date: Mon, 27 Jan 2025 00:19:52 -0600 Subject: TUI library --- tui/style.go | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 tui/style.go (limited to 'tui/style.go') diff --git a/tui/style.go b/tui/style.go new file mode 100644 index 0000000..dedd287 --- /dev/null +++ b/tui/style.go @@ -0,0 +1,32 @@ +package tui + +type Style struct { + Fg int32 + Bg int32 + Truecolor bool + Bold bool + Italic bool + Underline bool + Strikethrough bool +} + +const ( + Black = iota + Red + Green + Yellow + Blue + Magenta + Cyan + White + BrightBlack + BrightRed + BrightGreen + BrightYellow + BrightBlue + BrightMagenta + BrightCyan + BrightWhite +) + +var DefaultStyle = Style {Fg: BrightWhite, Bg: Black} -- cgit v1.2.3