summaryrefslogtreecommitdiff
path: root/wx+/graph.h
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-09-17 08:06:14 -0400
committerB Stack <bgstack15@gmail.com>2019-09-17 08:06:14 -0400
commitca250bf14979d359a82d5baf11ae9587d5605594 (patch)
treefc3041d022fee1abfc6df2ffd903fd7662b0b0d9 /wx+/graph.h
parentadd upstream 10.15 (diff)
downloadFreeFileSync-ca250bf14979d359a82d5baf11ae9587d5605594.tar.gz
FreeFileSync-ca250bf14979d359a82d5baf11ae9587d5605594.tar.bz2
FreeFileSync-ca250bf14979d359a82d5baf11ae9587d5605594.zip
add upstream 10.16
Diffstat (limited to 'wx+/graph.h')
-rw-r--r--wx+/graph.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/wx+/graph.h b/wx+/graph.h
index f1ae5d5a..f1f0c76c 100644
--- a/wx+/graph.h
+++ b/wx+/graph.h
@@ -264,7 +264,8 @@ public:
MainAttributes& setCornerText(const wxString& txt, PosCorner pos) { cornerTexts[pos] = txt; return *this; }
- MainAttributes& setBackgroundColor(const wxColor& col) { backgroundColor = col; return *this; }
+ //accessibility: always set both colors
+ MainAttributes& setBaseColors(const wxColor& text, const wxColor& back) { colorText = text; colorBack = back; return *this; }
MainAttributes& setSelectionMode(SelMode mode) { mouseSelMode = mode; return *this; }
@@ -287,10 +288,13 @@ public:
std::map<PosCorner, wxString> cornerTexts;
- wxColor backgroundColor = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
+ wxColor colorText = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOWTEXT);
+ wxColor colorBack = wxSystemSettings::GetColour(wxSYS_COLOUR_WINDOW);
+
SelMode mouseSelMode = SELECT_RECTANGLE;
};
+
void setAttributes(const MainAttributes& newAttr) { attr_ = newAttr; Refresh(); }
MainAttributes getAttributes() const { return attr_; }
bgstack15