ui: Fixed various background color issues with the new hex editor view
Closes #533
This commit is contained in:
parent
a5d202ffc8
commit
141ee62af9
@ -662,11 +662,14 @@ namespace hex::plugin::builtin {
|
||||
|
||||
if ((byteAddress >= selectionMin && byteAddress <= selectionMax)) {
|
||||
if (color.has_value())
|
||||
color = ((ImAlphaBlendColors(color.value(), this->m_selectionColor)) & 0x00FFFFFF) | (this->m_selectionColor & 0xFF000000);
|
||||
color = (ImAlphaBlendColors(color.value(), this->m_selectionColor)) & 0x00FFFFFF;
|
||||
else
|
||||
color = this->m_selectionColor;
|
||||
}
|
||||
|
||||
if (color.has_value())
|
||||
color = *color | (this->m_selectionColor & 0xFF000000);
|
||||
|
||||
return color;
|
||||
}();
|
||||
|
||||
|
@ -260,8 +260,9 @@ namespace hex::plugin::builtin {
|
||||
|
||||
this->drawPatternTooltip(child);
|
||||
|
||||
ImGui::PushStyleColor(ImGuiCol_TableRowBg, pattern->getColor());
|
||||
ImGui::PushStyleColor(ImGuiCol_TableRowBgAlt, pattern->getColor());
|
||||
auto tooltipColor = (child->getColor() & 0x00FF'FFFF) | 0x7000'0000;
|
||||
ImGui::PushStyleColor(ImGuiCol_TableRowBg, tooltipColor);
|
||||
ImGui::PushStyleColor(ImGuiCol_TableRowBgAlt, tooltipColor);
|
||||
ImGui::EndTable();
|
||||
ImGui::PopStyleColor(2);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user