gui housekeeping

This commit is contained in:
scawful
2024-08-13 01:09:18 -04:00
parent f1f2a7a25f
commit 3c433e5fd5
4 changed files with 6 additions and 15 deletions

View File

@@ -7,6 +7,7 @@ namespace yaze {
namespace app {
namespace gui {
// TODO: Add more display settings to popup windows.
void BeginWindowWithDisplaySettings(const char* id, bool* active,
const ImVec2& size,
ImGuiWindowFlags flags) {
@@ -418,6 +419,7 @@ void TextWithSeparators(const absl::string_view& text) {
ImGui::Separator();
}
// TODO: Make the ColorsYaze style into a configuration file.
void ColorsYaze() {
ImGuiStyle* style = &ImGui::GetStyle();
ImVec4* colors = style->Colors;
@@ -517,14 +519,6 @@ void ColorsYaze() {
colors[ImGuiCol_ModalWindowDimBg] = ImVec4(0.20f, 0.20f, 0.20f, 0.35f);
}
void RenderTabItem(const std::string& title,
const std::function<void()>& render_func) {
if (ImGui::BeginTabItem(title.c_str())) {
render_func();
ImGui::EndTabItem();
}
}
// ============================================================================
// 65816 LanguageDefinition
// ============================================================================