more pushdestcolor

This commit is contained in:
Eknous-P 2023-08-26 15:37:28 +04:00
parent f0bcb1c06a
commit 3c38a79801
3 changed files with 8 additions and 4 deletions

View file

@ -504,7 +504,7 @@ void FurnaceGUI::drawInsList(bool asChild) {
} }
ImGui::SameLine(); ImGui::SameLine();
pushDestColor(); pushDestColor();
if (ImGui::Button(ICON_FA_TIMES "##InsDelete")) { if (ImGui::Button(ICON_FA_MINUS "##InsDelete")) {
if (settings.unifiedDataView) { if (settings.unifiedDataView) {
switch (lastAssetType) { switch (lastAssetType) {
case 0: case 0:
@ -749,7 +749,7 @@ void FurnaceGUI::drawWaveList(bool asChild) {
} }
ImGui::SameLine(); ImGui::SameLine();
pushDestColor(); pushDestColor();
if (ImGui::Button(ICON_FA_TIMES "##WaveDelete")) { if (ImGui::Button(ICON_FA_MINUS "##WaveDelete")) {
doAction(GUI_ACTION_WAVE_LIST_DELETE); doAction(GUI_ACTION_WAVE_LIST_DELETE);
} }
popDestColor(); popDestColor();
@ -901,7 +901,7 @@ void FurnaceGUI::drawSampleList(bool asChild) {
} }
ImGui::SameLine(); ImGui::SameLine();
pushDestColor(); pushDestColor();
if (ImGui::Button(ICON_FA_TIMES "##SampleDelete")) { if (ImGui::Button(ICON_FA_MINUS "##SampleDelete")) {
doAction(GUI_ACTION_SAMPLE_LIST_DELETE); doAction(GUI_ACTION_SAMPLE_LIST_DELETE);
} }
popDestColor(); popDestColor();

View file

@ -115,10 +115,12 @@ void FurnaceGUI::drawOrderButtons() {
} }
NEXT_BUTTON; NEXT_BUTTON;
pushDestColor();
if (ImGui::Button(ICON_FA_MINUS)) { handleUnimportant if (ImGui::Button(ICON_FA_MINUS)) { handleUnimportant
// remove this order row // remove this order row
doAction(GUI_ACTION_ORDERS_REMOVE); doAction(GUI_ACTION_ORDERS_REMOVE);
} }
popDestColor();
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Remove order"); ImGui::SetTooltip("Remove order");
} }

View file

@ -102,10 +102,12 @@ void FurnaceGUI::drawSysManager() {
} }
ImGui::SameLine(); ImGui::SameLine();
ImGui::BeginDisabled(e->song.systemLen<=1); ImGui::BeginDisabled(e->song.systemLen<=1);
if (ImGui::Button(ICON_FA_TIMES "##SysRemove")) { pushDestColor();
if (ImGui::Button(ICON_FA_MINUS "##SysRemove")) {
sysToDelete=i; sysToDelete=i;
showWarning("Are you sure you want to remove this chip?",GUI_WARN_SYSTEM_DEL); showWarning("Are you sure you want to remove this chip?",GUI_WARN_SYSTEM_DEL);
} }
popDestColor();
if (ImGui::IsItemHovered()) { if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Remove"); ImGui::SetTooltip("Remove");
} }