Fix issue with frame deselection on spritesheet editor (???) + work on themes

This commit is contained in:
2025-11-15 11:01:27 -05:00
parent cbbf81b739
commit b9f195ab89
13 changed files with 81 additions and 22 deletions

View File

@@ -367,6 +367,15 @@ namespace anm2ed::imgui
ImGui::Checkbox("Vsync", &editSettings.isVsync);
ImGui::SetItemTooltip("Toggle vertical sync; synchronizes program update rate with monitor refresh rate.");
ImGui::SeparatorText("Theme");
for (int i = 0; i < theme::COUNT; i++)
{
if (i == theme::LIGHT) continue; // TODO; light mode is jank rn so i am soft disabling it
ImGui::RadioButton(theme::STRINGS[i], &editSettings.theme, i);
ImGui::SameLine();
}
}
ImGui::EndChild();
@@ -492,6 +501,7 @@ namespace anm2ed::imgui
if (ImGui::Button("Save", widgetSize))
{
settings = editSettings;
imgui::theme_set((theme::Type)editSettings.theme);
manager.chords_set(settings);
configurePopup.close();
}