Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use edge color for tab indentation guide in code editors
  • Loading branch information
nyalldawson committed Oct 11, 2020
1 parent 18bfe1f commit e29f17c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/codeeditors/qgscodeeditor.cpp
Expand Up @@ -201,6 +201,8 @@ void QgsCodeEditor::runPostLexerConfigurationTasks()
SendScintilla( SCI_MARKERSETBACK, SC_MARKNUM_FOLDEROPEN, lexerColor( QgsCodeEditorColorScheme::ColorRole::FoldIconForeground ) );
SendScintilla( SCI_MARKERSETFORE, SC_MARKNUM_FOLDER, lexerColor( QgsCodeEditorColorScheme::ColorRole::FoldIconHalo ) );
SendScintilla( SCI_MARKERSETBACK, SC_MARKNUM_FOLDER, lexerColor( QgsCodeEditorColorScheme::ColorRole::FoldIconForeground ) );
SendScintilla( SCI_STYLESETFORE, STYLE_INDENTGUIDE, lexerColor( QgsCodeEditorColorScheme::ColorRole::Edge ) );
SendScintilla( SCI_STYLESETBACK, STYLE_INDENTGUIDE, lexerColor( QgsCodeEditorColorScheme::ColorRole::Edge ) );
}

void QgsCodeEditor::setSciWidget()
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgscodeditorsettings.ui
Expand Up @@ -702,7 +702,7 @@
<item row="7" column="4">
<widget class="QLabel" name="label_38">
<property name="text">
<string>Edge</string>
<string>Edge/indentation guide</string>
</property>
</widget>
</item>
Expand Down

0 comments on commit e29f17c

Please sign in to comment.