impr: Better pattern background coloring in pattern data view

This commit is contained in:
WerWolv 2023-12-18 12:02:33 +01:00
parent 478d6118d8
commit 521ee5fe2d

View file

@ -233,7 +233,7 @@ namespace hex::plugin::builtin::ui {
void PatternDrawer::drawFavoriteColumn(const pl::ptrn::Pattern& pattern) {
if (this->m_rowColoring)
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, pattern.getColor() & 0x4FFFFFFF);
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, (pattern.getColor() & 0x00'FF'FF'FF) | 0x30'00'00'00);
if (!this->m_showFavoriteStars) {
ImGui::TableNextColumn();