From: PatR Date: Sun, 1 Nov 2020 21:46:16 +0000 (-0800) Subject: Qt hitpointbar coloring X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90790d3aa45f742114877b0f879b491872cff7a8;p=nethack Qt hitpointbar coloring A couple of colors used by the Qt hitpointbar didn't look very good. Switch to lighter green because the named value for that is too dark. It was using the wrong value for orange; the right one isn't too dark after all. --- diff --git a/win/Qt/qt_stat.cpp b/win/Qt/qt_stat.cpp index cfccb439d..7b918e070 100644 --- a/win/Qt/qt_stat.cpp +++ b/win/Qt/qt_stat.cpp @@ -431,11 +431,12 @@ void NetHackQtStatusWindow::HitpointBar() *barcolors[6][2] = { { "black", "black" }, // 100% /* second black never shown */ { "blue", "darkBlue" }, //75..99 - // gray is darker than darkGray for some reason (at least on OSX)... - // green and orange would look better if they were lighter/brighter - { "green", "gray" }, //50..74 + /* gray is darker than darkGray for some reason (at least on OSX); + default green is too dark compared to blue, yellow, orange, + and red so is changed here to green.lighter(150) */ + { "#00c000", "gray" }, //50..74 /* "green"=="#008000" */ { "yellow", "darkGray" }, //25..49 - { "#ff7f00", "lightGray" }, //10..24 /* #ff7f00=="orange" */ + { "orange", "lightGray" }, //10..24 { "red", "white" }, // 0..9 };