devtools: batch highlight only for non-group viewer

This commit is contained in:
Vinicius Rangel 2024-11-30 12:21:37 -03:00
parent 5462f67f0d
commit 35b397eae7
No known key found for this signature in database
GPG Key ID: A5B154D904B761D9

View File

@ -1306,7 +1306,7 @@ void CmdListViewer::Draw(bool only_batches_view) {
if (batch.id == batch_bp) { // highlight batch at breakpoint if (batch.id == batch_bp) { // highlight batch at breakpoint
PushStyleColor(ImGuiCol_Header, ImVec4{1.0f, 0.5f, 0.5f, 0.5f}); PushStyleColor(ImGuiCol_Header, ImVec4{1.0f, 0.5f, 0.5f, 0.5f});
} }
if (batch.id == highlight_batch) { if (batch.id == highlight_batch && !group_batches) {
PushStyleColor(ImGuiCol_Text, ImVec4{1.0f, 0.7f, 0.7f, 1.0f}); PushStyleColor(ImGuiCol_Text, ImVec4{1.0f, 0.7f, 0.7f, 1.0f});
} }
@ -1459,7 +1459,7 @@ void CmdListViewer::Draw(bool only_batches_view) {
} }
} }
if (batch.id == highlight_batch) { if (batch.id == highlight_batch && !group_batches) {
PopStyleColor(); PopStyleColor();
} }