Skip to content

Commit

Permalink
fix: show black as real black
Browse files Browse the repository at this point in the history
fixes #280
  • Loading branch information
dundee committed Feb 18, 2024
1 parent ba089e5 commit 4050b18
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tui/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (ui *UI) formatSize(size int64, reverseColor bool, transparentBg bool) stri
var color string
if reverseColor {
if ui.UseColors {
color = "[black:#2479d0:-]"
color = "[#000000:#2479d0:-]"
} else {
color = "[black:white:-]"
}
Expand Down
6 changes: 3 additions & 3 deletions tui/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (ui *UI) showDir() {
var footerNumberColor, footerTextColor string
if ui.UseColors {
footerNumberColor = "[#ffffff:#2479d0:b]"
footerTextColor = "[black:#2479d0:-]"
footerTextColor = "[#000000:#2479d0:-]"
} else {
footerNumberColor = "[black:white:b]"
footerTextColor = "[black:white:-]"
Expand All @@ -141,7 +141,7 @@ func (ui *UI) showDir() {
}

ui.footerLabel.SetText(
selected +
selected + footerTextColor +
" Total disk usage: " +
footerNumberColor +
ui.formatSize(totalUsage, true, false) +
Expand Down Expand Up @@ -195,7 +195,7 @@ func (ui *UI) showDevices() {
var footerNumberColor, footerTextColor string
if ui.UseColors {
footerNumberColor = "[#ffffff:#2479d0:b]"
footerTextColor = "[black:#2479d0:-]"
footerTextColor = "[#000000:#2479d0:-]"
} else {
footerNumberColor = "[black:white:b]"
footerTextColor = "[black:white:-]"
Expand Down

0 comments on commit 4050b18

Please sign in to comment.