diff options
author | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2003-03-20 11:22:14 +0000 |
commit | ca17c0cc2e37c264782d3f1db49278366e562dcb (patch) | |
tree | 269e3f31c3495acbd880f76129f6f16b0a51da96 /src/ViewStyle.cxx | |
parent | 79fee676f20f4847e666bff5d73bfe029b24aca0 (diff) | |
download | scintilla-mirror-ca17c0cc2e37c264782d3f1db49278366e562dcb.tar.gz |
Patch from Simon Steele to implement the hotspot style and associated
notifications.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r-- | src/ViewStyle.cxx | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 1e335ddfa..eb8e54f2f 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -79,6 +79,12 @@ ViewStyle::ViewStyle(const ViewStyle &source) { foldmarginHighlightColourSet = source.foldmarginHighlightColourSet; foldmarginHighlightColour.desired = source.foldmarginHighlightColour.desired; + hotspotForegroundSet = source.hotspotForegroundSet; + hotspotForeground.desired = source.hotspotForeground.desired; + hotspotBackgroundSet = source.hotspotBackgroundSet; + hotspotBackground.desired = source.hotspotBackground.desired; + hotspotUnderline = source.hotspotUnderline; + whitespaceForegroundSet = source.whitespaceForegroundSet; whitespaceForeground.desired = source.whitespaceForeground.desired; whitespaceBackgroundSet = source.whitespaceBackgroundSet; @@ -153,6 +159,12 @@ void ViewStyle::Init() { caretWidth = 1; someStylesProtected = false; + hotspotForegroundSet = false; + hotspotForeground.desired = ColourDesired(0, 0, 0xff); + hotspotBackgroundSet = false; + hotspotBackground.desired = ColourDesired(0xff, 0xff, 0xff); + hotspotUnderline = true; + leftMarginWidth = 1; rightMarginWidth = 1; ms[0].symbol = false; @@ -206,6 +218,8 @@ void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { pal.WantFind(caretcolour, want); pal.WantFind(caretLineBackground, want); pal.WantFind(edgecolour, want); + pal.WantFind(hotspotForeground, want); + pal.WantFind(hotspotBackground, want); } void ViewStyle::Refresh(Surface &surface) { @@ -248,7 +262,7 @@ void ViewStyle::ResetDefaultStyle() { ColourDesired(0xff,0xff,0xff), Platform::DefaultFontSize(), fontNames.Save(Platform::DefaultFont()), SC_CHARSET_DEFAULT, - false, false, false, false, Style::caseMixed, true, true); + false, false, false, false, Style::caseMixed, true, true, false); } void ViewStyle::ClearStyles() { |