aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-10 14:33:37 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-10 14:33:37 +1000
commit50f70a8bb42fc982350731da104b042ae75b1df2 (patch)
treeacf6c9406d410af6a408faec403542da158f51b2 /src/ViewStyle.h
parent843ce05440fcd4ba7d19f8b612ab526c88296ad0 (diff)
downloadscintilla-mirror-50f70a8bb42fc982350731da104b042ae75b1df2.tar.gz
Add elementBaseColours to hold default or system derived colours.
Editor::UpdateBaseElements can be overridden by platform layers to set base colours although they should also do this when they detect changes in system settings.
Diffstat (limited to 'src/ViewStyle.h')
-rw-r--r--src/ViewStyle.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ViewStyle.h b/src/ViewStyle.h
index 4118f0daf..a9fe58131 100644
--- a/src/ViewStyle.h
+++ b/src/ViewStyle.h
@@ -203,6 +203,7 @@ public:
using ElementMap = std::map<int, std::optional<ColourAlpha>>;
ElementMap elementColours;
+ ElementMap elementBaseColours;
std::set<int> elementAllowsTranslucent;
WrapAppearance wrap;
@@ -243,6 +244,9 @@ public:
std::optional<ColourAlpha> ElementColour(int element) const;
bool ElementAllowsTranslucent(int element) const;
+ void ResetElement(int element);
+ bool ElementIsSet(int element) const;
+ bool SetElementBase(int element, ColourAlpha colour);
bool SetWrapState(int wrapState_) noexcept;
bool SetWrapVisualFlags(int wrapVisualFlags_) noexcept;