From 30b7577ab321e70b5ebb2c4ec1b9edfe1d3c0a44 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Mon, 9 Jan 2023 15:22:31 +0100 Subject: Binding of CGEditor's settings --- src/preferences/EditorPrefs.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/preferences') diff --git a/src/preferences/EditorPrefs.hpp b/src/preferences/EditorPrefs.hpp index 4287410..d1c48d9 100644 --- a/src/preferences/EditorPrefs.hpp +++ b/src/preferences/EditorPrefs.hpp @@ -21,6 +21,10 @@ public: row_size->SetValue(config->Read("editor/row_size", 50)); col_size->SetValue(config->Read("editor/col_size", 100)); show_move_icons->SetValue(config->Read("editor/show_move_icons", true)); + color_margin->SetColour(wxColour(config->Read("editor/color_margin", "#F3F3F3"))); + color_scrollbar->SetColour(wxColour(config->Read("editor/color_scrollbar", "#838383"))); + color_scrollbarbg->SetColour(wxColour(config->Read("editor/color_scrollbarbg", "#FFFFFF"))); + color_commentbg->SetColour(wxColour(config->Read("editor/color_commentbg", "#ffffcc"))); CONFIG_CLOSE(config); return true; } @@ -30,6 +34,10 @@ public: config->Write("editor/row_size", row_size->GetValue()); config->Write("editor/col_size", col_size->GetValue()); config->Write("editor/show_move_icons", show_move_icons->GetValue()); + config->Write("editor/color_margin", color_margin->GetColour().GetAsString()); + config->Write("editor/color_scrollbar", color_scrollbar->GetColour().GetAsString()); + config->Write("editor/color_scrollbarbg", color_scrollbarbg->GetColour().GetAsString()); + config->Write("editor/color_commentbg", color_commentbg->GetColour().GetAsString()); CONFIG_CLOSE(config); } -- cgit v1.2.3