Skip to content
Permalink
Browse files

Show default color option in code editor color buttons

So that if you start tweaking a standard color scheme you can undo
the changes you've made to one class of color
  • Loading branch information
nyalldawson committed Oct 5, 2020
1 parent 425dfcc commit 5e3214ff9c0448ade87b7eb8fb4b68ca47a722bd
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/options/qgscodeeditoroptions.cpp
@@ -69,6 +69,7 @@ QgsCodeEditorOptionsWidget::QgsCodeEditorOptionsWidget( QWidget *parent )
for ( auto it = mColorButtonMap.constBegin(); it != mColorButtonMap.constEnd(); ++it )
{
it.value()->setColor( QgsCodeEditor::color( it.key() ) );
it.value()->setDefaultColor( it.value()->color() );
}

mColorSchemeComboBox->addItem( tr( "Default" ), QString() );
@@ -96,6 +97,7 @@ QgsCodeEditorOptionsWidget::QgsCodeEditorOptionsWidget( QWidget *parent )
for ( auto it = mColorButtonMap.constBegin(); it != mColorButtonMap.constEnd(); ++it )
{
it.value()->setColor( QgsCodeEditor::defaultColor( it.key(), theme ) );
it.value()->setDefaultColor( it.value()->color() );
}
mBlockCustomColorChange = false;
}

0 comments on commit 5e3214f

Please sign in to comment.
You can’t perform that action at this time.