1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#pragma once
#include <filesystem>
#include <string>
namespace Hsdbg
{
struct Preferences
{
std::string theme = "midnight";
float ui_scale = 1.0f;
float accent[3] = { 0.302f, 0.714f, 0.769f };
float rounding = 6.0f;
bool show_mascot = true;
float mascot_scale = 1.6f;
bool syntax_highlighting = true;
bool show_line_numbers = true;
bool highlight_current_line = true;
float color_keyword[3] = { 0.337f, 0.612f, 0.839f };
float color_type[3] = { 0.306f, 0.788f, 0.690f };
float color_string[3] = { 0.808f, 0.569f, 0.471f };
float color_number[3] = { 0.710f, 0.808f, 0.659f };
float color_comment[3] = { 0.416f, 0.600f, 0.333f };
float color_preprocessor[3] = { 0.773f, 0.525f, 0.753f };
float color_current_line[3] = { 0.227f, 0.282f, 0.180f };
bool stop_at_entry = false;
bool step_by_instruction = false;
bool show_fps = true;
};
auto load_preferences(const std::filesystem::path& path) -> Preferences;
auto save_preferences(const std::filesystem::path& path, const Preferences& preferences) -> void;
}
|