mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-01 22:57:49 +02:00
Updated ImGui + Fixed bugs in the frequency manager + new features
This commit is contained in:
@ -35,37 +35,40 @@ namespace LoadingScreen {
|
||||
ImGui::PopFont();
|
||||
ImGui::SameLine();
|
||||
ImGui::Image(icons::LOGO, ImVec2(128, 128));
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
|
||||
ImGui::Text("This software is brought to you by\n\n");
|
||||
// ImGui::Text("This software is brought to you by\n\n");
|
||||
|
||||
ImGui::Columns(3, "CreditColumns", true);
|
||||
// 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::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("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::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::Columns(1, "CreditColumnsEnd", true);
|
||||
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
// ImGui::Spacing();
|
||||
ImVec2 origPos = ImGui::GetCursorPos();
|
||||
ImGui::SetCursorPosY(origPos.y + 50);
|
||||
ImGui::Text("%s", msg.c_str());
|
||||
ImGui::SetCursorPos(origPos);
|
||||
|
||||
ImGui::EndPopup();
|
||||
ImGui::PopStyleVar(1);
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include <stdio.h>
|
||||
#include <GL/glew.h>
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <imgui_plot.h>
|
||||
#include <thread>
|
||||
#include <complex>
|
||||
#include <gui/widgets/waterfall.h>
|
||||
|
@ -6,20 +6,20 @@
|
||||
#include <fstream>
|
||||
|
||||
bool ThemeManager::loadThemesFromDir(std::string path) {
|
||||
// TEST JUST TO DUMP THE ORIGINAL THEME
|
||||
auto& style = ImGui::GetStyle();
|
||||
ImVec4* colors = style.Colors;
|
||||
// // TEST JUST TO DUMP THE ORIGINAL THEME
|
||||
// auto& style = ImGui::GetStyle();
|
||||
// ImVec4* colors = style.Colors;
|
||||
|
||||
printf("\n\n");
|
||||
for (auto [name, id] : IMGUI_COL_IDS) {
|
||||
ImVec4 col = colors[id];
|
||||
uint8_t r = 255 - (col.x * 255.0f);
|
||||
uint8_t g = 255 - (col.y * 255.0f);
|
||||
uint8_t b = 255 - (col.z * 255.0f);
|
||||
uint8_t a = col.w * 255.0f;
|
||||
printf("\"%s\": \"#%02X%02X%02X%02X\",\n", name.c_str(), r, g, b, a);
|
||||
}
|
||||
printf("\n\n");
|
||||
// printf("\n\n");
|
||||
// for (auto [name, id] : IMGUI_COL_IDS) {
|
||||
// ImVec4 col = colors[id];
|
||||
// uint8_t r = 255 - (col.x * 255.0f);
|
||||
// uint8_t g = 255 - (col.y * 255.0f);
|
||||
// uint8_t b = 255 - (col.z * 255.0f);
|
||||
// uint8_t a = col.w * 255.0f;
|
||||
// printf("\"%s\": \"#%02X%02X%02X%02X\",\n", name.c_str(), r, g, b, a);
|
||||
// }
|
||||
// printf("\n\n");
|
||||
|
||||
|
||||
if (!std::filesystem::is_directory(path)) {
|
||||
|
Reference in New Issue
Block a user