aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 6aa459895..f553f4205 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -256,10 +256,10 @@ void ViewStyle::Init(size_t stylesSize_) {
CalculateMarginWidthAndMask();
textStart = marginInside ? fixedColumnWidth : leftMarginWidth;
zoomLevel = 0;
- viewWhitespace = wsInvisible;
- tabDrawMode = tdLongArrow;
+ viewWhitespace = WhiteSpace::invisible;
+ tabDrawMode = TabDrawMode::longArrow;
whitespaceSize = 1;
- viewIndentationGuides = ivNone;
+ viewIndentationGuides = IndentView::none;
viewEOL = false;
extraFontFlag = 0;
extraAscent = 0;
@@ -491,13 +491,13 @@ bool ViewStyle::SelectionBackgroundDrawn() const noexcept {
}
bool ViewStyle::WhitespaceBackgroundDrawn() const noexcept {
- return (viewWhitespace != wsInvisible) && (whitespaceColours.back.isSet);
+ return (viewWhitespace != WhiteSpace::invisible) && (whitespaceColours.back.isSet);
}
bool ViewStyle::WhiteSpaceVisible(bool inIndent) const noexcept {
- return (!inIndent && viewWhitespace == wsVisibleAfterIndent) ||
- (inIndent && viewWhitespace == wsVisibleOnlyInIndent) ||
- viewWhitespace == wsVisibleAlways;
+ return (!inIndent && viewWhitespace == WhiteSpace::visibleAfterIndent) ||
+ (inIndent && viewWhitespace == WhiteSpace::visibleOnlyInIndent) ||
+ viewWhitespace == WhiteSpace::visibleAlways;
}
ColourDesired ViewStyle::WrapColour() const noexcept {