Skip to content

Commit bdb9359

Browse files
committed
Inline and remove highlightColor constant
1 parent 8c8f363 commit bdb9359

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

appOPHD/UI/ProductListBox.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ void ProductListBox::update()
6565

6666
renderer.clipRect(mRect);
6767

68-
constexpr Color highlightColor{0, 185, 0, 75};
69-
7068
for (std::size_t index = 0; index < mItems.size(); ++index)
7169
{
7270
const auto drawArea = itemDrawArea(index);
@@ -76,7 +74,7 @@ void ProductListBox::update()
7674
const auto& item = *static_cast<ProductListBoxItem*>(mItems[index]);
7775

7876
// Draw highlight rect so as not to tint/hue colors of everything else
79-
if (highlight) { renderer.drawBoxFilled(drawArea, highlightColor); }
77+
if (highlight) { renderer.drawBoxFilled(drawArea, {0, 185, 0, 75}); }
8078

8179
// Draw item borders and column breaks
8280
renderer.drawBox(drawArea.inset(2), constants::PrimaryColor);

0 commit comments

Comments
 (0)