mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-09 12:37:41 +03:00
init
This commit is contained in:
30
src/gui/settings_window.hpp
Normal file
30
src/gui/settings_window.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef CLRSYNC_GUI_SETTINGS_WINDOW_HPP
|
||||
#define CLRSYNC_GUI_SETTINGS_WINDOW_HPP
|
||||
|
||||
#include <string>
|
||||
|
||||
class settings_window
|
||||
{
|
||||
public:
|
||||
settings_window();
|
||||
void render();
|
||||
void show() { m_visible = true; }
|
||||
void hide() { m_visible = false; }
|
||||
bool is_visible() const { return m_visible; }
|
||||
|
||||
private:
|
||||
void load_settings();
|
||||
void save_settings();
|
||||
void apply_settings();
|
||||
|
||||
bool m_visible{false};
|
||||
|
||||
char m_default_theme[128];
|
||||
char m_palettes_path[512];
|
||||
char m_font[128];
|
||||
int m_font_size;
|
||||
|
||||
std::string m_error_message;
|
||||
};
|
||||
|
||||
#endif // CLRSYNC_GUI_SETTINGS_WINDOW_HPP
|
||||
Reference in New Issue
Block a user