MCPcopy Create free account
hub / github.com/NetHack/NetHack / initHighlight

Method initHighlight

outdated/win/Qt3/qt3_win.cpp:2073–2086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2071 initHighlight();
2072}
2073void NetHackQtLabelledIcon::initHighlight()
2074{
2075 const QPalette& pal=palette();
2076 const QColorGroup& pa=pal.normal();
2077 //QColorGroup good(white,darkGreen,pa.light(),pa.dark(),pa.mid(),white,pa.base());
2078 QColorGroup good(black,green,pa.light(),pa.dark(),pa.mid(),black,pa.base());
2079 QColorGroup bad(white,red,pa.light(),pa.dark(),pa.mid(),white,pa.base());
2080 hl_good=pal.copy();
2081 hl_good.setNormal(good);
2082 hl_good.setActive(good);
2083 hl_bad=pal.copy();
2084 hl_bad.setNormal(bad);
2085 hl_bad.setActive(bad);
2086}
2087
2088void NetHackQtLabelledIcon::setLabel(const char* t, bool lower)
2089{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected