mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-09 12:37:41 +03:00
chore: refactor
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "gui/views/preview_renderer.hpp"
|
||||
#include "gui/controllers/theme_applier.hpp"
|
||||
#include "gui/helpers/imgui_helpers.hpp"
|
||||
#include "gui/widgets/colors.hpp"
|
||||
#include "imgui.h"
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
@@ -236,7 +236,7 @@ void preview_renderer::render(const clrsync::core::palette ¤t)
|
||||
{
|
||||
if (current.colors().empty())
|
||||
{
|
||||
ImVec4 error_color = palette_utils::get_color(current, "error", "accent");
|
||||
ImVec4 error_color = clrsync::gui::widgets::palette_color(current, "error", "accent");
|
||||
ImGui::TextColored(error_color, "Current palette is empty");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user