GUI: custom sample editor icons, part 1

This commit is contained in:
tildearrow 2023-08-16 04:16:31 -05:00
parent a1bc1a66a3
commit 6c44614279
6 changed files with 698 additions and 2251 deletions

View file

@ -24,6 +24,7 @@
#include <math.h>
#include "../ta-log.h"
#include "IconsFontAwesome4.h"
#include "furIcons.h"
#include "misc/cpp/imgui_stdlib.h"
#include <fmt/printf.h>
#include "guiConst.h"
@ -940,21 +941,21 @@ void FurnaceGUI::drawSampleEdit() {
ImGui::EndPopup();
}
sameLineMaybe();
if (ImGui::Button(ICON_FA_ARROWS_V "##SNormalize")) {
if (ImGui::Button(ICON_FUR_SAMPLE_NORMALIZE "##SNormalize")) {
doAction(GUI_ACTION_SAMPLE_NORMALIZE);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Normalize");
}
sameLineMaybe();
if (ImGui::Button(ICON_FA_ARROW_UP "##SFadeIn")) {
if (ImGui::Button(ICON_FUR_SAMPLE_FADEIN "##SFadeIn")) {
doAction(GUI_ACTION_SAMPLE_FADE_IN);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Fade in");
}
sameLineMaybe();
if (ImGui::Button(ICON_FA_ARROW_DOWN "##SFadeOut")) {
if (ImGui::Button(ICON_FUR_SAMPLE_FADEOUT "##SFadeOut")) {
doAction(GUI_ACTION_SAMPLE_FADE_OUT);
}
if (ImGui::IsItemHovered()) {
@ -992,7 +993,7 @@ void FurnaceGUI::drawSampleEdit() {
ImGui::EndPopup();
}
sameLineMaybe();
if (ImGui::Button(ICON_FA_ERASER "##SSilence")) {
if (ImGui::Button(ICON_FUR_SAMPLE_APPLY_SILENCE "##SSilence")) {
doAction(GUI_ACTION_SAMPLE_SILENCE);
}
if (ImGui::IsItemHovered()) {
@ -1029,14 +1030,14 @@ void FurnaceGUI::drawSampleEdit() {
ImGui::SetTooltip("Invert");
}
sameLineMaybe();
if (ImGui::Button(ICON_FA_LEVEL_DOWN "##SSign")) {
if (ImGui::Button(ICON_FUR_SAMPLE_SIGN "##SSign")) {
doAction(GUI_ACTION_SAMPLE_SIGN);
}
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Signed/unsigned exchange");
}
sameLineMaybe();
ImGui::Button(ICON_FA_INDUSTRY "##SFilter");
ImGui::Button(ICON_FUR_SAMPLE_FILTER "##SFilter");
if (ImGui::IsItemHovered()) {
ImGui::SetTooltip("Apply filter");
}