chore: cleanup the ui

This commit is contained in:
2025-12-17 13:14:46 +03:00
parent b4ca5e1912
commit 58eff4d97e
19 changed files with 856 additions and 259 deletions

View File

@@ -1,6 +1,7 @@
#ifndef CLRSYNC_GUI_SETTINGS_WINDOW_HPP
#define CLRSYNC_GUI_SETTINGS_WINDOW_HPP
#include "core/palette/palette.hpp"
#include <string>
#include <vector>
@@ -17,6 +18,17 @@ private:
void load_settings();
void save_settings();
void apply_settings();
void render_general_tab();
void render_appearance_tab();
void render_status_messages();
void render_action_buttons();
void show_help_marker(const char* desc);
void reset_to_defaults();
public:
void set_palette(const clrsync::core::palette& palette) {
m_current_palette = palette;
}
bool m_visible{false};
@@ -29,6 +41,10 @@ private:
int m_selected_font_idx;
std::string m_error_message;
bool m_settings_changed;
int m_current_tab;
clrsync::core::palette m_current_palette;
};
#endif // CLRSYNC_GUI_SETTINGS_WINDOW_HPP