From 90790d3aa45f742114877b0f879b491872cff7a8 Mon Sep 17 00:00:00 2001 From: PatR Date: Sun, 1 Nov 2020 13:46:16 -0800 Subject: [PATCH] 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. --- win/Qt/qt_stat.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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 };