diff options
author | Neil <nyamatongwe@gmail.com> | 2021-04-25 09:52:20 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-04-25 09:52:20 +1000 |
commit | 81f7847af4cc9f51f02ab191c73f394c457518bd (patch) | |
tree | ef214ea786c00e9618756c26b99299ac1fa58bf6 /src/CallTip.cxx | |
parent | 241f33a38ca0887d1a47399de1bcf7ba0d544c41 (diff) | |
download | scintilla-mirror-81f7847af4cc9f51f02ab191c73f394c457518bd.tar.gz |
Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.
Change ColourDesired to ColourAlpha in styles.
Remove ColourDesired.
Diffstat (limited to 'src/CallTip.cxx')
-rw-r--r-- | src/CallTip.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/CallTip.cxx b/src/CallTip.cxx index f9f3ce7f7..56cf3c2fd 100644 --- a/src/CallTip.cxx +++ b/src/CallTip.cxx @@ -54,15 +54,15 @@ CallTip::CallTip() noexcept { #ifdef __APPLE__ // proper apple colours for the default - colourBG = ColourDesired(0xff, 0xff, 0xc6); - colourUnSel = ColourDesired(0, 0, 0); + colourBG = ColourAlpha(0xff, 0xff, 0xc6); + colourUnSel = ColourAlpha(0, 0, 0); #else - colourBG = ColourDesired(0xff, 0xff, 0xff); - colourUnSel = ColourDesired(0x80, 0x80, 0x80); + colourBG = ColourAlpha(0xff, 0xff, 0xff); + colourUnSel = ColourAlpha(0x80, 0x80, 0x80); #endif - colourSel = ColourDesired(0, 0, 0x80); - colourShade = ColourDesired(0, 0, 0); - colourLight = ColourDesired(0xc0, 0xc0, 0xc0); + colourSel = ColourAlpha(0, 0, 0x80); + colourShade = ColourAlpha(0, 0, 0); + colourLight = ColourAlpha(0xc0, 0xc0, 0xc0); codePage = 0; clickPlace = 0; } @@ -93,7 +93,7 @@ constexpr bool IsArrowCharacter(char ch) noexcept { return (ch == 0) || (ch == '\001') || (ch == '\002'); } -void DrawArrow(Scintilla::Surface *surface, const PRectangle &rc, bool upArrow, ColourDesired colourBG, ColourDesired colourUnSel) { +void DrawArrow(Scintilla::Surface *surface, const PRectangle &rc, bool upArrow, ColourAlpha colourBG, ColourAlpha colourUnSel) { surface->FillRectangle(rc, colourBG); const PRectangle rcClientInner = Clamp(rc.Inset(1), Edge::right, rc.right - 2); surface->FillRectangle(rcClientInner, colourUnSel); @@ -348,7 +348,7 @@ bool CallTip::UseStyleCallTip() const noexcept { // It might be better to have two access functions for this and to use // them for all settings of colours. -void CallTip::SetForeBack(const ColourDesired &fore, const ColourDesired &back) noexcept { +void CallTip::SetForeBack(const ColourAlpha &fore, const ColourAlpha &back) noexcept { colourBG = back; colourUnSel = fore; } |