GUI: fix classic pattern headers
This commit is contained in:
parent
b8c374977c
commit
d78ffa60cc
|
@ -619,7 +619,7 @@ void FurnaceGUI::drawPattern() {
|
||||||
ImGui::ItemSize(size,ImGui::GetStyle().FramePadding.y);
|
ImGui::ItemSize(size,ImGui::GetStyle().FramePadding.y);
|
||||||
if (ImGui::ItemAdd(rect,ImGui::GetID(chanID))) {
|
if (ImGui::ItemAdd(rect,ImGui::GetID(chanID))) {
|
||||||
bool hovered=ImGui::ItemHoverable(rect,ImGui::GetID(chanID));
|
bool hovered=ImGui::ItemHoverable(rect,ImGui::GetID(chanID));
|
||||||
ImU32 col=(hovered || (!mobileUI && ImGui::IsMouseDown(ImGuiMouseButton_Left)))?ImGui::GetColorU32(ImGuiCol_HeaderHovered):ImGui::GetColorU32(ImGuiCol_Header);
|
ImU32 col=(hovered || (mobileUI && ImGui::IsMouseDown(ImGuiMouseButton_Left)))?ImGui::GetColorU32(ImGuiCol_HeaderHovered):ImGui::GetColorU32(ImGuiCol_Header);
|
||||||
dl->AddRectFilled(rect.Min,rect.Max,col);
|
dl->AddRectFilled(rect.Min,rect.Max,col);
|
||||||
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
dl->AddText(ImVec2(minLabelArea.x,rect.Min.y),ImGui::GetColorU32(channelTextColor(i)),chanID);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue