From 002f1a013736a89223dc1ede2724f8492e12ce1f Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 11 May 2021 10:06:28 +1000 Subject: Implement SCI_GETELEMENTBASECOLOUR to return the default values for element colours. --- doc/ScintillaDoc.html | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index 7e120c44c..fcce51dd0 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -128,7 +128,7 @@

Scintilla Documentation

-

Last edited 10 May 2021 NH

+

Last edited 11 May 2021 NH

Scintilla 5 has moved the lexers from Scintilla into a new Lexilla project.
@@ -3247,6 +3247,7 @@ struct Sci_TextToFind { SCI_RESETELEMENTCOLOUR(int element)
SCI_GETELEMENTISSET(int element) → bool
SCI_GETELEMENTALLOWSTRANSLUCENT(int element) → bool
+ SCI_GETELEMENTBASECOLOUR(int element) → colouralpha

@@ -3275,6 +3276,18 @@ struct Sci_TextToFind { and newer versions of Scintilla may implement translucency for elements that did not previously support it.

+

+ SCI_GETELEMENTBASECOLOUR(int element) → colouralpha
+ Returns the default colour of an element. + This may be a value defined by Scintilla or it may be derived from the operating system or platform. + Which values are set from the operating system may differ between operating systems and operating system versions. + When undefined the return value is 0 which is equivalent to completely transparent black. + These colours may be useful when defining styles with similarities such as synthesizing dark + mode styles that use the same colours as the system

+

On Win32, autocompletion list colours like SC_ELEMENT_LIST are currently available. + On Cocoa, selection background colours like SC_ELEMENT_SELECTION_BACK are currently available. +

+ -- cgit v1.2.3