From 6a7cac4480d15c5737fd5c25a4b0fa3c937d935b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 25 Sep 2011 09:50:39 +1000 Subject: Palette support removed. --- src/ViewStyle.cxx | 115 +++++++++++++++++++----------------------------------- 1 file changed, 41 insertions(+), 74 deletions(-) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 08164f648..ab3c68907 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -150,40 +150,40 @@ ViewStyle::ViewStyle(const ViewStyle &source) { } selforeset = source.selforeset; - selforeground.desired = source.selforeground.desired; - selAdditionalForeground.desired = source.selAdditionalForeground.desired; + selforeground = source.selforeground; + selAdditionalForeground = source.selAdditionalForeground; selbackset = source.selbackset; - selbackground.desired = source.selbackground.desired; - selAdditionalBackground.desired = source.selAdditionalBackground.desired; - selbackground2.desired = source.selbackground2.desired; + selbackground = source.selbackground; + selAdditionalBackground = source.selAdditionalBackground; + selbackground2 = source.selbackground2; selAlpha = source.selAlpha; selAdditionalAlpha = source.selAdditionalAlpha; selEOLFilled = source.selEOLFilled; foldmarginColourSet = source.foldmarginColourSet; - foldmarginColour.desired = source.foldmarginColour.desired; + foldmarginColour = source.foldmarginColour; foldmarginHighlightColourSet = source.foldmarginHighlightColourSet; - foldmarginHighlightColour.desired = source.foldmarginHighlightColour.desired; + foldmarginHighlightColour = source.foldmarginHighlightColour; hotspotForegroundSet = source.hotspotForegroundSet; - hotspotForeground.desired = source.hotspotForeground.desired; + hotspotForeground = source.hotspotForeground; hotspotBackgroundSet = source.hotspotBackgroundSet; - hotspotBackground.desired = source.hotspotBackground.desired; + hotspotBackground = source.hotspotBackground; hotspotUnderline = source.hotspotUnderline; hotspotSingleLine = source.hotspotSingleLine; whitespaceForegroundSet = source.whitespaceForegroundSet; - whitespaceForeground.desired = source.whitespaceForeground.desired; + whitespaceForeground = source.whitespaceForeground; whitespaceBackgroundSet = source.whitespaceBackgroundSet; - whitespaceBackground.desired = source.whitespaceBackground.desired; - selbar.desired = source.selbar.desired; - selbarlight.desired = source.selbarlight.desired; - caretcolour.desired = source.caretcolour.desired; - additionalCaretColour.desired = source.additionalCaretColour.desired; + whitespaceBackground = source.whitespaceBackground; + selbar = source.selbar; + selbarlight = source.selbarlight; + caretcolour = source.caretcolour; + additionalCaretColour = source.additionalCaretColour; showCaretLineBackground = source.showCaretLineBackground; - caretLineBackground.desired = source.caretLineBackground.desired; + caretLineBackground = source.caretLineBackground; caretLineAlpha = source.caretLineAlpha; - edgecolour.desired = source.edgecolour.desired; + edgecolour = source.edgecolour; edgeState = source.edgeState; caretStyle = source.caretStyle; caretWidth = source.caretWidth; @@ -248,35 +248,35 @@ void ViewStyle::Init(size_t stylesSize_) { spaceWidth = 8; selforeset = false; - selforeground.desired = ColourDesired(0xff, 0, 0); - selAdditionalForeground.desired = ColourDesired(0xff, 0, 0); + selforeground = ColourDesired(0xff, 0, 0); + selAdditionalForeground = ColourDesired(0xff, 0, 0); selbackset = true; - selbackground.desired = ColourDesired(0xc0, 0xc0, 0xc0); - selAdditionalBackground.desired = ColourDesired(0xd7, 0xd7, 0xd7); - selbackground2.desired = ColourDesired(0xb0, 0xb0, 0xb0); + selbackground = ColourDesired(0xc0, 0xc0, 0xc0); + selAdditionalBackground = ColourDesired(0xd7, 0xd7, 0xd7); + selbackground2 = ColourDesired(0xb0, 0xb0, 0xb0); selAlpha = SC_ALPHA_NOALPHA; selAdditionalAlpha = SC_ALPHA_NOALPHA; selEOLFilled = false; foldmarginColourSet = false; - foldmarginColour.desired = ColourDesired(0xff, 0, 0); + foldmarginColour = ColourDesired(0xff, 0, 0); foldmarginHighlightColourSet = false; - foldmarginHighlightColour.desired = ColourDesired(0xc0, 0xc0, 0xc0); + foldmarginHighlightColour = ColourDesired(0xc0, 0xc0, 0xc0); whitespaceForegroundSet = false; - whitespaceForeground.desired = ColourDesired(0, 0, 0); + whitespaceForeground = ColourDesired(0, 0, 0); whitespaceBackgroundSet = false; - whitespaceBackground.desired = ColourDesired(0xff, 0xff, 0xff); - selbar.desired = Platform::Chrome(); - selbarlight.desired = Platform::ChromeHighlight(); - styles[STYLE_LINENUMBER].fore.desired = ColourDesired(0, 0, 0); - styles[STYLE_LINENUMBER].back.desired = Platform::Chrome(); - caretcolour.desired = ColourDesired(0, 0, 0); - additionalCaretColour.desired = ColourDesired(0x7f, 0x7f, 0x7f); + whitespaceBackground = ColourDesired(0xff, 0xff, 0xff); + selbar = Platform::Chrome(); + selbarlight = Platform::ChromeHighlight(); + styles[STYLE_LINENUMBER].fore = ColourDesired(0, 0, 0); + styles[STYLE_LINENUMBER].back = Platform::Chrome(); + caretcolour = ColourDesired(0, 0, 0); + additionalCaretColour = ColourDesired(0x7f, 0x7f, 0x7f); showCaretLineBackground = false; - caretLineBackground.desired = ColourDesired(0xff, 0xff, 0); + caretLineBackground = ColourDesired(0xff, 0xff, 0); caretLineAlpha = SC_ALPHA_NOALPHA; - edgecolour.desired = ColourDesired(0xc0, 0xc0, 0xc0); + edgecolour = ColourDesired(0xc0, 0xc0, 0xc0); edgeState = EDGE_NONE; caretStyle = CARETSTYLE_LINE; caretWidth = 1; @@ -284,9 +284,9 @@ void ViewStyle::Init(size_t stylesSize_) { someStylesForceCase = false; hotspotForegroundSet = false; - hotspotForeground.desired = ColourDesired(0, 0, 0xff); + hotspotForeground = ColourDesired(0, 0, 0xff); hotspotBackgroundSet = false; - hotspotBackground.desired = ColourDesired(0xff, 0xff, 0xff); + hotspotBackground = ColourDesired(0xff, 0xff, 0xff); hotspotUnderline = true; hotspotSingleLine = true; @@ -328,39 +328,6 @@ void ViewStyle::Init(size_t stylesSize_) { braceBadLightIndicator = 0; } -void ViewStyle::RefreshColourPalette(Palette &pal, bool want) { - unsigned int i; - for (i=0; ifrNext) { @@ -378,8 +345,8 @@ void ViewStyle::CreateFont(const FontSpecification &fs) { void ViewStyle::Refresh(Surface &surface) { delete frFirst; frFirst = NULL; - selbar.desired = Platform::Chrome(); - selbarlight.desired = Platform::ChromeHighlight(); + selbar = Platform::Chrome(); + selbarlight = Platform::ChromeHighlight(); for (unsigned int i=0; i