klonyyy / STMViewer

Real-time STM32 variable & trace viewer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dimm start button when depressed

dzid26 opened this issue · comments

Tiny issue.

I have delay before acquisition starts. I found myself clicking the button multiple times because of delayed reaction.

Use different colors for the button active to give instant feedback that the button is depressed.

STMViewer/src/Gui/Gui.cpp

Lines 220 to 222 in 4d22bcd

ImGui::PushStyleColor(ImGuiCol_Button, color);
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, color);
ImGui::PushStyleColor(ImGuiCol_ButtonActive, color);