mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-07-10 02:55:22 +02:00
Updated ImGui + Fixed bugs in the frequency manager + new features
This commit is contained in:
@ -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