mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-06-25 12:07:49 +02:00
Switched to ImGui::TextUnfort
This commit is contained in:
@ -22,7 +22,7 @@ namespace credits {
|
||||
ImGui::BeginPopupModal("Credits", NULL, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove);
|
||||
|
||||
ImGui::PushFont(style::hugeFont);
|
||||
ImGui::Text("SDR++ ");
|
||||
ImGui::TextUnformatted("SDR++ ");
|
||||
ImGui::PopFont();
|
||||
ImGui::SameLine();
|
||||
ImGui::Image(icons::LOGO, ImVec2(128, 128));
|
||||
@ -30,29 +30,29 @@ namespace credits {
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
|
||||
ImGui::Text("This software is brought to you by Alexandre Rouma (ON5RYZ) with the help of\n\n");
|
||||
ImGui::TextUnformatted("This software is brought to you by Alexandre Rouma (ON5RYZ) with the help of\n\n");
|
||||
|
||||
ImGui::Columns(4, "CreditColumns", true);
|
||||
|
||||
ImGui::Text("Contributors");
|
||||
ImGui::TextUnformatted("Contributors");
|
||||
for (int i = 0; i < sdrpp_credits::contributorCount; i++) {
|
||||
ImGui::BulletText("%s", sdrpp_credits::contributors[i]);
|
||||
}
|
||||
|
||||
ImGui::NextColumn();
|
||||
ImGui::Text("Libraries");
|
||||
ImGui::TextUnformatted("Libraries");
|
||||
for (int i = 0; i < sdrpp_credits::libraryCount; i++) {
|
||||
ImGui::BulletText("%s", sdrpp_credits::libraries[i]);
|
||||
}
|
||||
|
||||
ImGui::NextColumn();
|
||||
ImGui::Text("Hardware Donators");
|
||||
ImGui::TextUnformatted("Hardware Donators");
|
||||
for (int i = 0; i < sdrpp_credits::hardwareDonatorCount; i++) {
|
||||
ImGui::BulletText("%s", sdrpp_credits::hardwareDonators[i]);
|
||||
}
|
||||
|
||||
ImGui::NextColumn();
|
||||
ImGui::Text("Patrons");
|
||||
ImGui::TextUnformatted("Patrons");
|
||||
for (int i = 0; i < sdrpp_credits::patronCount; i++) {
|
||||
ImGui::BulletText("%s", sdrpp_credits::patrons[i]);
|
||||
}
|
||||
@ -62,7 +62,7 @@ namespace credits {
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Text("SDR++ v" VERSION_STR " (Built at " __TIME__ ", " __DATE__ ")");
|
||||
ImGui::TextUnformatted("SDR++ v" VERSION_STR " (Built at " __TIME__ ", " __DATE__ ")");
|
||||
|
||||
ImGui::EndPopup();
|
||||
ImGui::PopStyleColor();
|
||||
|
@ -30,40 +30,11 @@ namespace LoadingScreen {
|
||||
ImGui::BeginPopupModal("Credits", NULL, ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoBackground);
|
||||
|
||||
ImGui::PushFont(style::hugeFont);
|
||||
ImGui::Text("SDR++ ");
|
||||
ImGui::TextUnformatted("SDR++ ");
|
||||
ImGui::PopFont();
|
||||
ImGui::SameLine();
|
||||
ImGui::Image(icons::LOGO, ImVec2(128, 128));
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
|
||||
// ImGui::Text("This software is brought to you by\n\n");
|
||||
|
||||
// ImGui::Columns(3, "CreditColumns", true);
|
||||
|
||||
// ImGui::Text("Contributors");
|
||||
// for (int i = 0; i < sdrpp_credits::contributorCount; i++) {
|
||||
// ImGui::BulletText("%s", sdrpp_credits::contributors[i]);
|
||||
// }
|
||||
|
||||
// ImGui::NextColumn();
|
||||
// ImGui::Text("Libraries");
|
||||
// for (int i = 0; i < sdrpp_credits::libraryCount; i++) {
|
||||
// ImGui::BulletText("%s", sdrpp_credits::libraries[i]);
|
||||
// }
|
||||
|
||||
// ImGui::NextColumn();
|
||||
// ImGui::Text("Patrons");
|
||||
// for (int i = 0; i < sdrpp_credits::patronCount; i++) {
|
||||
// ImGui::BulletText("%s", sdrpp_credits::patrons[i]);
|
||||
// }
|
||||
|
||||
// ImGui::Columns(1, "CreditColumnsEnd", true);
|
||||
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
ImVec2 origPos = ImGui::GetCursorPos();
|
||||
ImGui::SetCursorPosY(origPos.y + 50);
|
||||
ImGui::Text("%s", msg.c_str());
|
||||
|
@ -601,7 +601,7 @@ void MainWindow::draw() {
|
||||
ImGui::BeginChild("WaterfallControls");
|
||||
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - (ImGui::CalcTextSize("Zoom").x / 2.0));
|
||||
ImGui::Text("Zoom");
|
||||
ImGui::TextUnformatted("Zoom");
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - 10);
|
||||
if (ImGui::VSliderFloat("##_7_", ImVec2(20.0, 150.0), &bw, 1.0, 0.0, "")) {
|
||||
double factor = (double)bw * (double)bw;
|
||||
@ -620,7 +620,7 @@ void MainWindow::draw() {
|
||||
ImGui::NewLine();
|
||||
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - (ImGui::CalcTextSize("Max").x / 2.0));
|
||||
ImGui::Text("Max");
|
||||
ImGui::TextUnformatted("Max");
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - 10);
|
||||
if (ImGui::VSliderFloat("##_8_", ImVec2(20.0, 150.0), &fftMax, 0.0, -160.0f, "")) {
|
||||
fftMax = std::max<float>(fftMax, fftMin + 10);
|
||||
@ -632,7 +632,7 @@ void MainWindow::draw() {
|
||||
ImGui::NewLine();
|
||||
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - (ImGui::CalcTextSize("Min").x / 2.0));
|
||||
ImGui::Text("Min");
|
||||
ImGui::TextUnformatted("Min");
|
||||
ImGui::SetCursorPosX((ImGui::GetWindowSize().x / 2.0) - 10);
|
||||
if (ImGui::VSliderFloat("##_9_", ImVec2(20.0, 150.0), &fftMin, 0.0, -160.0f, "")) {
|
||||
fftMin = std::min<float>(fftMax - 10, fftMin);
|
||||
|
@ -56,7 +56,7 @@ namespace module_manager_menu {
|
||||
confirmOpened = true;
|
||||
}
|
||||
ImGui::SetCursorPos(ImVec2(origPos.x + 2, origPos.y - 5));
|
||||
ImGui::Text("_");
|
||||
ImGui::TextUnformatted("_");
|
||||
}
|
||||
ImGui::EndTable();
|
||||
}
|
||||
|
@ -668,7 +668,7 @@ namespace SmGui {
|
||||
}
|
||||
|
||||
void Text(const char* str) {
|
||||
if (!options::opts.serverMode) { ImGui::Text("%s", str); return; }
|
||||
if (!options::opts.serverMode) { ImGui::TextUnformatted(str); return; }
|
||||
if (rdl) {
|
||||
rdl->pushStep(DRAW_STEP_TEXT, false);
|
||||
rdl->pushString(str);
|
||||
|
@ -449,8 +449,8 @@ namespace ImGui {
|
||||
ImGui::Text("SNR: %0.1fdB", snr);
|
||||
}
|
||||
else {
|
||||
ImGui::Text("Strength: ---.-dBFS");
|
||||
ImGui::Text("SNR: ---.-dB");
|
||||
ImGui::TextUnformatted("Strength: ---.-dBFS");
|
||||
ImGui::TextUnformatted("SNR: ---.-dB");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user