aboutsummaryrefslogtreecommitdiff
path: root/src/preferences
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-01-09 15:22:31 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2023-01-09 15:22:31 +0100
commit30b7577ab321e70b5ebb2c4ec1b9edfe1d3c0a44 (patch)
tree246eacdaeedc72618d604298867a95aae97c5588 /src/preferences
parent518edf6f3050022fa4d1a15d147efe6665459863 (diff)
Binding of CGEditor's settings
Diffstat (limited to 'src/preferences')
-rw-r--r--src/preferences/EditorPrefs.hpp8
1 files changed, 8 insertions, 0 deletions
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);
}