]> granicus.if.org Git - nethack/commitdiff
Qt hitpointbar coloring
authorPatR <rankin@nethack.org>
Sun, 1 Nov 2020 21:46:16 +0000 (13:46 -0800)
committerPatR <rankin@nethack.org>
Sun, 1 Nov 2020 21:46:16 +0000 (13:46 -0800)
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

index cfccb439d1ab6b960432d723c00b6a5829e86c22..7b918e070efc7c289386ca9ff838b0dfb15b93bb 100644 (file)
@@ -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
     };