From 0dddd3c7c6117879e4edfa87de056c71e48686f0 Mon Sep 17 00:00:00 2001 From: brunoherbelin Date: Sat, 9 May 2026 00:01:08 +0200 Subject: [PATCH] Pedantic GUI aligment and color corrections --- src/Navigator.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/Navigator.cpp b/src/Navigator.cpp index f58a0c0..2d5b8b3 100644 --- a/src/Navigator.cpp +++ b/src/Navigator.cpp @@ -2521,7 +2521,9 @@ void Navigator::RenderMainPannelSession() // path display + folder choose button std::string label = BaseToolkit::truncated(Settings::application.recentExportFolder.path, 23); ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); - ImGuiToolkit::InputText("##export_path", &label, ImGuiInputTextFlags_ReadOnly); + ImGui::PushStyleColor(ImGuiCol_FrameBg, ImGui::GetColorU32(ImGuiCol_FrameBgHovered)); + ImGuiToolkit::InputText("##session_export_path", &label, ImGuiInputTextFlags_ReadOnly); + ImGui::PopStyleColor(); if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", Settings::application.recentExportFolder.path.c_str()); ImVec2 pos_bottom = ImGui::GetCursorPos(); @@ -3006,7 +3008,10 @@ void Navigator::RenderMainPannelPlaylist() // path display + folder choose button std::string label = BaseToolkit::truncated(Settings::application.recentExportFolder.path, 23); ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); + ImGui::PushStyleColor(ImGuiCol_FrameBg, ImGui::GetColorU32(ImGuiCol_FrameBgHovered)); ImGuiToolkit::InputText("##export_path", &label, ImGuiInputTextFlags_ReadOnly); + ImGui::PopStyleColor(); + if (ImGui::IsItemHovered()) ImGui::SetTooltip("%s", Settings::application.recentExportFolder.path.c_str()); pos_bottom = ImGui::GetCursorPos(); @@ -3592,9 +3597,9 @@ void Navigator::RenderMainPannelSettings() const float w = IMGUI_RIGHT_ALIGN - ImGui::GetFrameHeightWithSpacing(); ImGuiToolkit::ButtonOpenUrl( "Edit", Settings::application.control.osc_filename.c_str(), ImVec2(w, 0) ); ImGui::SameLine(0, 6); - if ( ImGuiToolkit::IconButton(15, 12, "Reload") ) + if ( ImGuiToolkit::IconButton(5, 15, "Reload") ) Control::manager().init(); - ImGui::SameLine(); + ImGui::SameLine(0, 3); ImGui::Text("Translator"); ImGuiToolkit::Spacing(); } @@ -3679,9 +3684,9 @@ void Navigator::RenderMainPannelSettings() gamepadmappingdialog.open(); } ImGui::SameLine(0, 6); - if ( ImGuiToolkit::IconButton(15, 12, "Reload") ) + if ( ImGuiToolkit::IconButton(5, 15, "Reload") ) Control::manager().loadGamepadMappings(); - ImGui::SameLine(); + ImGui::SameLine(0, 3); if ( ImGuiToolkit::IconButton(ICON_FA_EXTERNAL_LINK_ALT, "Search online") ) SystemToolkit::open("https://github.com/mdqinc/SDL_GameControllerDB");