From 2c841231583ff1dd8bff4d469f9a5d62a1f6ea5d Mon Sep 17 00:00:00 2001 From: Ryzerth Date: Mon, 14 Dec 2020 17:18:43 +0100 Subject: [PATCH] modified soapy menu --- core/src/gui/dialogs/credits.cpp | 1 + core/src/gui/dialogs/loading_screen.cpp | 1 + soapy_source/src/main.cpp | 8 +++----- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/gui/dialogs/credits.cpp b/core/src/gui/dialogs/credits.cpp index 143f92a5..d1f5d1bd 100644 --- a/core/src/gui/dialogs/credits.cpp +++ b/core/src/gui/dialogs/credits.cpp @@ -32,6 +32,7 @@ namespace credits { // Contributors ImGui::Text("Contributors"); ImGui::BulletText("Ryzerth (Creator)"); + ImGui::BulletText("Alexsey Shestacov"); ImGui::BulletText("aosync"); ImGui::BulletText("Benjamin Kyd"); ImGui::BulletText("Tobias Mädel"); diff --git a/core/src/gui/dialogs/loading_screen.cpp b/core/src/gui/dialogs/loading_screen.cpp index 0cd897bb..48220714 100644 --- a/core/src/gui/dialogs/loading_screen.cpp +++ b/core/src/gui/dialogs/loading_screen.cpp @@ -44,6 +44,7 @@ namespace LoadingScreen { // Contributors ImGui::Text("Contributors"); ImGui::BulletText("Ryzerth (Creator)"); + ImGui::BulletText("Alexsey Shestacov"); ImGui::BulletText("aosync"); ImGui::BulletText("Benjamin Kyd"); ImGui::BulletText("Tobias Mädel"); diff --git a/soapy_source/src/main.cpp b/soapy_source/src/main.cpp index 7a818d7d..4d117360 100644 --- a/soapy_source/src/main.cpp +++ b/soapy_source/src/main.cpp @@ -288,16 +288,14 @@ private: config.release(true); } - ImGui::Text("Sample rate"); - ImGui::SameLine(); - ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX()); if (ImGui::Combo(CONCAT("##_sr_select_", _this->name), &_this->srId, _this->txtSrList.c_str())) { _this->selectSampleRate(_this->sampleRates[_this->srId]); _this->saveCurrent(); } - if (ImGui::Button(CONCAT("Refresh##_dev_select_", _this->name), - ImVec2(menuWidth - ImGui::GetCursorPosX(), 0.0))) { + ImGui::SameLine(); + float refreshBtnWdith = menuWidth - ImGui::GetCursorPosX(); + if (ImGui::Button(CONCAT("Refresh##_dev_select_", _this->name), ImVec2(refreshBtnWdith, 0))) { _this->refresh(); _this->selectDevice(config.conf["device"]); }