@@ -508,7 +508,7 @@ func (ps *UI) drawPackageListContent(packages []Package, pkgwidth int) {
508508 ps .tablePackages .SetCell (i + 1 , 0 , & tview.TableCell {
509509 Text : pkg .Name ,
510510 Color : tcell .ColorWhite ,
511- BackgroundColor : tcell . ColorBlack ,
511+ BackgroundColor : ps . conf . Colors (). DefaultBackground ,
512512 MaxWidth : pkgwidth ,
513513 }).
514514 SetCell (i + 1 , 1 , & tview.TableCell {
@@ -517,6 +517,7 @@ func (ps *UI) drawPackageListContent(packages []Package, pkgwidth int) {
517517 BackgroundColor : ps .conf .Colors ().DefaultBackground ,
518518 }).
519519 SetCell (i + 1 , 2 , & tview.TableCell {
520+ Color : ps .conf .Colors ().DefaultBackground ,
520521 Text : ps .getInstalledStateText (pkg .IsInstalled ),
521522 Expansion : 1000 ,
522523 Reference : pkg .IsInstalled ,
@@ -765,9 +766,11 @@ func (ps *UI) getInstalledStateText(isInstalled bool) string {
765766 colStrInstalled = "[white:black:b]"
766767 }
767768
768- ret := "[white:black:-]" + glyphs . PrefixState + colStrInstalled + installed + "[white:black:-]" + glyphs . SuffixState
769+ whiteBlack := "[white:black:-]"
769770 if ps .conf .Colors ().DefaultBackground == tcell .ColorDefault {
770- ret = strings . Replace ( ret , ":black:" , ":-:" , - 1 )
771+ whiteBlack = "[white:-:-]"
771772 }
773+ ret := whiteBlack + glyphs .PrefixState + colStrInstalled + installed + whiteBlack + glyphs .SuffixState
774+
772775 return ret
773776}
0 commit comments