Fix building with -Werror, hopefully.

This commit is contained in:
Zachary Hall 2024-04-10 13:25:18 -07:00
parent b84fec3175
commit b9f624dd71
2 changed files with 6 additions and 6 deletions

View file

@ -252,10 +252,10 @@ void MainLoop::GuiFunction() {
}
}
static string filter = "";
ImGui::Text(_TR_CTX("Preference | Theme selector | Filter label", "Filter:")); ImGui::SameLine();
ImGui::TextUnformatted(_TR_CTX("Preference | Theme selector | Filter label", "Filter:")); ImGui::SameLine();
ImGui::SetNextItemWidth(ImGui::GetWindowWidth() - ImGui::GetCursorPosX() - ImGui::GetStyle().WindowPadding.x);
ImGui::InputText("##FilterInput", &filter);
ImGui::Text(_TR_CTX("Preferences | Theme selector | Selector label", "Select a theme..."));
ImGui::TextUnformatted(_TR_CTX("Preferences | Theme selector | Selector label", "Select a theme..."));
ImVec2 ChildSize = ImVec2(ImGui::GetWindowWidth() - (ImGui::GetStyle().WindowPadding.x * 2.0f), -ImGui::GetFrameHeightWithSpacing());
if (ImGui::BeginChildFrame(ImGui::GetID("##ThemesContainer"), ChildSize)) {
ImVec2 TableSize = ImVec2(0, 0);
@ -303,11 +303,11 @@ void MainLoop::GuiFunction() {
ImGui::PushFont(title);
static const string APP_NAME_STR = _TR_CTX("Application name.", "Looper");
ImGui::SetCursorPosX((ImGui::GetWindowWidth() - ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, 0.0f, APP_NAME_STR.c_str()).x) / 2.0f);
ImGui::Text(APP_NAME_STR.c_str());
ImGui::TextUnformatted(APP_NAME_STR.c_str());
ImGui::PopFont();
static const string VER_STRING = _TR_CTX("Version string format specifier", "Version ") + string(TAG) + _TRS_CTX("Suffix to the version string in the about window, if needed", " ");
ImGui::SetCursorPosX((ImGui::GetWindowWidth() - ImGui::GetFont()->CalcTextSizeA(ImGui::GetFontSize(), FLT_MAX, 0.0f, VER_STRING.c_str()).x) / 2.0f);
ImGui::Text(VER_STRING.c_str());
ImGui::TextUnformatted(VER_STRING.c_str());
ImGui::NewLine();
auto &license_data = get_license_data();
// Left