Skip to content

Commit

Permalink
Fix solarized color definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 5, 2020
1 parent 5e3214f commit 38a7b46
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions src/gui/qgscodeeditor.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -321,73 +321,73 @@ QColor QgsCodeEditor::defaultColor( QgsCodeEditor::ColorRole role, const QString
{ {
QStringLiteral( "solarized" ), QStringLiteral( "solarized" ),
{ {
{ColorRole::Default, QColor( "#627c84" ) }, {ColorRole::Default, QColor( "#586E75" ) },
{ColorRole::Keyword, QColor( "#b79b00" ) }, {ColorRole::Keyword, QColor( "#859900" ) },
{ColorRole::Class, QColor( "#008fd5" ) }, {ColorRole::Class, QColor( "#268BD2" ) },
{ColorRole::Method, QColor( "#008fd5" ) }, {ColorRole::Method, QColor( "#268BD2" ) },
{ColorRole::Decoration, QColor( "#b79b00" ) }, {ColorRole::Decoration, QColor( "#6C71C4" ) },
{ColorRole::Number, QColor( "#008fd5" ) }, {ColorRole::Number, QColor( "#2AA198" ) },
{ColorRole::Comment, QColor( "#93a2a3" ) }, {ColorRole::Comment, QColor( "#93A1A1" ) },
{ColorRole::CommentLine, QColor( "#93a2a3" ) }, {ColorRole::CommentLine, QColor( "#93A1A1" ) },
{ColorRole::CommentBlock, QColor( "#93a2a3" ) }, {ColorRole::CommentBlock, QColor( "#3D8080" ) },
{ColorRole::Background, QColor( "#fef6e4" ) }, {ColorRole::Background, QColor( "#FDF6E3" ) },
{ColorRole::Cursor, QColor( "#cfcfcf" ) }, {ColorRole::Cursor, QColor( "#DC322F" ) },
{ColorRole::CaretLine, QColor( "#f0e8d6" ) }, {ColorRole::CaretLine, QColor( "#EEE8D5" ) },
{ColorRole::Operator, QColor( "#b79b00" ) }, {ColorRole::Operator, QColor( "#586E75" ) },
{ColorRole::QuotedOperator, QColor( "#b79b00" ) }, {ColorRole::QuotedOperator, QColor( "#586E75" ) },
{ColorRole::Identifier, QColor( "#008fd5" ) }, {ColorRole::Identifier, QColor( "#586E75" ) },
{ColorRole::QuotedIdentifier, QColor( "#008fd5" ) }, {ColorRole::QuotedIdentifier, QColor( "#586E75" ) },
{ColorRole::Tag, QColor( "#008fd5" ) }, {ColorRole::Tag, QColor( "#2AA198" ) },
{ColorRole::UnknownTag, QColor( "#008fd5" ) }, {ColorRole::UnknownTag, QColor( "#2AA198" ) },
{ColorRole::SingleQuote, QColor( "#3da59e" ) }, {ColorRole::SingleQuote, QColor( "#3D8080" ) },
{ColorRole::DoubleQuote, QColor( "#3da59e" ) }, {ColorRole::DoubleQuote, QColor( "#3D8080" ) },
{ColorRole::TripleSingleQuote, QColor( "#3da59e" ) }, {ColorRole::TripleSingleQuote, QColor( "#3D8080" ) },
{ColorRole::TripleDoubleQuote, QColor( "#3da59e" ) }, {ColorRole::TripleDoubleQuote, QColor( "#3D8080" ) },
{ColorRole::MarginBackground, QColor( "#f0e8d6" ) }, {ColorRole::MarginBackground, QColor( "#EEE8D5" ) },
{ColorRole::MarginForeground, QColor( "#93a2a3" ) }, {ColorRole::MarginForeground, QColor( "#93A1A1" ) },
{ColorRole::SelectionBackground, QColor( "#d7d7d7" ) }, {ColorRole::SelectionBackground, QColor( "#839496" ) },
{ColorRole::SelectionForeground, QColor( "#000000" ) }, {ColorRole::SelectionForeground, QColor( "#FDF6E3" ) },
{ColorRole::MatchedBraceBackground, QColor( "#b7f907" ) }, {ColorRole::MatchedBraceBackground, QColor( "#CBCCA3" ) },
{ColorRole::MatchedBraceForeground, QColor( "#363636" ) }, {ColorRole::MatchedBraceForeground, QColor( "#586E75" ) },
{ColorRole::Edge, QColor( "#f0e8d6" ) }, {ColorRole::Edge, QColor( "#EEE8D5" ) },
{ColorRole::Fold, QColor( "#f0e8d6" ) }, {ColorRole::Fold, QColor( "#FDF6E3" ) },
{ColorRole::Error, QColor( "#e31a1c" ) }, {ColorRole::Error, QColor( "#DC322F" ) },
}, },
}, },
{ {
QStringLiteral( "solarized_dark" ), QStringLiteral( "solarized_dark" ),
{ {
{ColorRole::Default, QColor( "#f6f3e8" ) }, {ColorRole::Default, QColor( "#839496" ) },
{ColorRole::Keyword, QColor( "#6cbcf7" ) }, {ColorRole::Keyword, QColor( "#859900" ) },
{ColorRole::Class, QColor( "#b3e765" ) }, {ColorRole::Class, QColor( "#268BD2" ) },
{ColorRole::Method, QColor( "#ed5d36" ) }, {ColorRole::Method, QColor( "#268BD2" ) },
{ColorRole::Decoration, QColor( "#6cbcf7" ) }, {ColorRole::Decoration, QColor( "#94558D" ) },
{ColorRole::Number, QColor( "#ed5d36" ) }, {ColorRole::Number, QColor( "#2AA198" ) },
{ColorRole::Comment, QColor( "#b3e765" ) }, {ColorRole::Comment, QColor( "#2AA198" ) },
{ColorRole::CommentLine, QColor( "#b3e765" ) }, {ColorRole::CommentLine, QColor( "#2AA198" ) },
{ColorRole::CommentBlock, QColor( "#aeaeae" ) }, {ColorRole::CommentBlock, QColor( "#2AA198" ) },
{ColorRole::Background, QColor( "#1f1f1f" ) }, {ColorRole::Background, QColor( "#002B36" ) },
{ColorRole::Cursor, QColor( "#cfcfcf" ) }, {ColorRole::Cursor, QColor( "#DC322F" ) },
{ColorRole::CaretLine, QColor( "#363636" ) }, {ColorRole::CaretLine, QColor( "#073642" ) },
{ColorRole::Operator, QColor( "#6cbcf7" ) }, {ColorRole::Operator, QColor( "#839496" ) },
{ColorRole::QuotedOperator, QColor( "#6cbcf7" ) }, {ColorRole::QuotedOperator, QColor( "#839496" ) },
{ColorRole::Identifier, QColor( "#b3e765" ) }, {ColorRole::Identifier, QColor( "#839496" ) },
{ColorRole::QuotedIdentifier, QColor( "#b3e765" ) }, {ColorRole::QuotedIdentifier, QColor( "#839496" ) },
{ColorRole::Tag, QColor( "#ed5d36" ) }, {ColorRole::Tag, QColor( "#268BD2" ) },
{ColorRole::UnknownTag, QColor( "#ed5d36" ) }, {ColorRole::UnknownTag, QColor( "#268BD2" ) },
{ColorRole::SingleQuote, QColor( "#65b042" ) }, {ColorRole::SingleQuote, QColor( "#3D8080" ) },
{ColorRole::DoubleQuote, QColor( "#65b042" ) }, {ColorRole::DoubleQuote, QColor( "#3D8080" ) },
{ColorRole::TripleSingleQuote, QColor( "#65b042" ) }, {ColorRole::TripleSingleQuote, QColor( "#3D8080" ) },
{ColorRole::TripleDoubleQuote, QColor( "#65b042" ) }, {ColorRole::TripleDoubleQuote, QColor( "#3D8080" ) },
{ColorRole::MarginBackground, QColor( "#000000" ) }, {ColorRole::MarginBackground, QColor( "#073642" ) },
{ColorRole::MarginForeground, QColor( "#9d9d9d" ) }, {ColorRole::MarginForeground, QColor( "#586E75" ) },
{ColorRole::SelectionBackground, QColor( "#d7d7d7" ) }, {ColorRole::SelectionBackground, QColor( "#073642" ) },
{ColorRole::SelectionForeground, QColor( "#000000" ) }, {ColorRole::SelectionForeground, QColor( "#002B36" ) },
{ColorRole::MatchedBraceBackground, QColor( "#b7f907" ) }, {ColorRole::MatchedBraceBackground, QColor( "#1F4D2C" ) },
{ColorRole::MatchedBraceForeground, QColor( "#363636" ) }, {ColorRole::MatchedBraceForeground, QColor( "#839496" ) },
{ColorRole::Edge, QColor( "#3a3a3a" ) }, {ColorRole::Edge, QColor( "#586E75" ) },
{ColorRole::Fold, QColor( "#3a3a3a" ) }, {ColorRole::Fold, QColor( "#002B36" ) },
{ColorRole::Error, QColor( "#e31a1c" ) }, {ColorRole::Error, QColor( "#DC322F" ) },
} }
} }
}; };
Expand Down

0 comments on commit 38a7b46

Please sign in to comment.