aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe <rbo@gmx.us>2024-05-17 20:20:20 +0200
committerJoe <rbo@gmx.us>2024-05-17 20:20:20 +0200
commit75bd6e4781f95e3fe2fe3e95cdce00ee509c72da (patch)
tree16487d8fe7e9b6d02bbf73061ff0c74138a7eede
parentfucking great (diff)
downloadhardflip-75bd6e4781f95e3fe2fe3e95cdce00ee509c72da.tar.gz
hardflip-75bd6e4781f95e3fe2fe3e95cdce00ee509c72da.tar.bz2
hardflip-75bd6e4781f95e3fe2fe3e95cdce00ee509c72da.tar.xz
hardflip-75bd6e4781f95e3fe2fe3e95cdce00ee509c72da.tar.zst
hardflip-75bd6e4781f95e3fe2fe3e95cdce00ee509c72da.zip
cool
-rw-r--r--src/c_defs.go6
-rw-r--r--src/i_ui.go12
2 files changed, 13 insertions, 5 deletions
diff --git a/src/c_defs.go b/src/c_defs.go
index b2e7320..cb249e0 100644
--- a/src/c_defs.go
+++ b/src/c_defs.go
@@ -277,6 +277,7 @@ const (
COLOR_MAGENTA
COLOR_CYAN
COLOR_WHITE
+ COLOR_GRAY
COLOR_BOLD_BLACK
COLOR_BOLD_RED
COLOR_BOLD_GREEN
@@ -285,7 +286,8 @@ const (
COLOR_BOLD_MAGENTA
COLOR_BOLD_CYAN
COLOR_BOLD_WHITE
- COLORS_MAX = COLOR_BOLD_WHITE
+ COLOR_BOLD_GRAY
+ COLORS_MAX = COLOR_BOLD_GRAY
)
var COLORS = [COLORS_MAX + 1]string{
@@ -298,6 +300,7 @@ var COLORS = [COLORS_MAX + 1]string{
"magenta",
"cyan",
"white",
+ "gray",
"boldblack",
"boldred",
"boldgreen",
@@ -306,4 +309,5 @@ var COLORS = [COLORS_MAX + 1]string{
"boldmagenta",
"boldcyan",
"boldwhite",
+ "boldgray",
}
diff --git a/src/i_ui.go b/src/i_ui.go
index c639e39..21df155 100644
--- a/src/i_ui.go
+++ b/src/i_ui.go
@@ -721,7 +721,7 @@ func i_init_styles(ui *HardUI, styles HardStyle) {
case COLORS[COLOR_DEFAULT]:
ui.style[i] = tmp.Foreground(tcell.ColorReset)
case COLORS[COLOR_BLACK]:
- ui.style[i] = tmp.Foreground(tcell.ColorBlack).Dim(true)
+ ui.style[i] = tmp.Foreground(tcell.ColorBlack)
case COLORS[COLOR_RED]:
ui.style[i] = tmp.Foreground(tcell.ColorRed).Dim(true)
case COLORS[COLOR_GREEN]:
@@ -731,13 +731,15 @@ func i_init_styles(ui *HardUI, styles HardStyle) {
case COLORS[COLOR_BLUE]:
ui.style[i] = tmp.Foreground(tcell.ColorBlue).Dim(true)
case COLORS[COLOR_MAGENTA]:
- ui.style[i] = tmp.Foreground(tcell.ColorPurple).Dim(true)
+ ui.style[i] = tmp.Foreground(tcell.ColorPurple)
case COLORS[COLOR_CYAN]:
ui.style[i] = tmp.Foreground(tcell.ColorTeal)
case COLORS[COLOR_WHITE]:
ui.style[i] = tmp.Foreground(tcell.ColorWhite).Dim(true)
+ case COLORS[COLOR_GRAY]:
+ ui.style[i] = tmp.Foreground(tcell.ColorGray)
case COLORS[COLOR_BOLD_BLACK]:
- ui.style[i] = tmp.Foreground(tcell.ColorBlack).Dim(true).Bold(true)
+ ui.style[i] = tmp.Foreground(tcell.ColorBlack).Bold(true)
case COLORS[COLOR_BOLD_RED]:
ui.style[i] = tmp.Foreground(tcell.ColorRed).Dim(true).Bold(true)
case COLORS[COLOR_BOLD_GREEN]:
@@ -747,11 +749,13 @@ func i_init_styles(ui *HardUI, styles HardStyle) {
case COLORS[COLOR_BOLD_BLUE]:
ui.style[i] = tmp.Foreground(tcell.ColorBlue).Dim(true).Bold(true)
case COLORS[COLOR_BOLD_MAGENTA]:
- ui.style[i] = tmp.Foreground(tcell.ColorPurple).Dim(true).Bold(true)
+ ui.style[i] = tmp.Foreground(tcell.ColorPurple).Bold(true)
case COLORS[COLOR_BOLD_CYAN]:
ui.style[i] = tmp.Foreground(tcell.ColorTeal).Dim(true).Bold(true)
case COLORS[COLOR_BOLD_WHITE]:
ui.style[i] = tmp.Foreground(tcell.ColorWhite).Dim(true).Bold(true)
+ case COLORS[COLOR_BOLD_GRAY]:
+ ui.style[i] = tmp.Foreground(tcell.ColorGray).Bold(true)
default:
ui.style[i] = tmp.Foreground(tcell.ColorReset)
}