diff options
Diffstat (limited to 'src/preferences')
| -rw-r--r-- | src/preferences/EditorPrefs.hpp | 8 |
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); } |
