Skip to content

Commit

Permalink
Improves background color for search result in general option dialog
Browse files Browse the repository at this point in the history
fixes 18142 by a lighter yellow background and keeping a black font
  • Loading branch information
Régis Haubourg authored and nyalldawson committed Mar 12, 2018
1 parent 08332e7 commit 5efa7bb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/qgsoptionsdialoghighlightwidgetsimpl.h
Expand Up @@ -51,7 +51,7 @@ class GUI_EXPORT QgsOptionsDialogHighlightLabel : public QgsOptionsDialogHighlig
virtual bool highlightText( const QString &text ) override;
virtual void reset() override;
QPointer<QLabel> mLabel;
QString mStyleSheet = QStringLiteral( /*!search!*/"QLabel { background-color: yellow; color: blue;}/*!search!*/" );
QString mStyleSheet = QStringLiteral( /*!search!*/"QLabel { background-color: rgb(255, 251, 190); color: black;}/*!search!*/" );
};

/**
Expand All @@ -72,7 +72,7 @@ class GUI_EXPORT QgsOptionsDialogHighlightCheckBox : public QgsOptionsDialogHigh
virtual bool highlightText( const QString &text ) override;
virtual void reset() override;
QPointer<QCheckBox> mCheckBox;
QString mStyleSheet = QStringLiteral( "/*!search!*/QCheckBox { background-color: yellow; color: blue;}/*!search!*/" );
QString mStyleSheet = QStringLiteral( "/*!search!*/QCheckBox { background-color: rgb(255, 251, 190); color: black;}/*!search!*/" );
};

/**
Expand All @@ -93,7 +93,7 @@ class GUI_EXPORT QgsOptionsDialogHighlightButton : public QgsOptionsDialogHighli
virtual bool highlightText( const QString &text ) override;
virtual void reset() override;
QPointer<QAbstractButton> mButton;
QString mStyleSheet = QStringLiteral( "/*!search!*/QAbstractButton { background-color: yellow; color: blue;}/*!search!*/" );
QString mStyleSheet = QStringLiteral( "/*!search!*/QAbstractButton { background-color: rgb(255, 251, 190); color: black;}/*!search!*/" );
};

/**
Expand All @@ -114,7 +114,7 @@ class GUI_EXPORT QgsOptionsDialogHighlightGroupBox : public QgsOptionsDialogHigh
virtual bool highlightText( const QString &text ) override;
virtual void reset() override;
QPointer<QGroupBox> mGroupBox;
QString mStyleSheet = QStringLiteral( "/*!search!*/QGroupBox::title { background-color: yellow; color: blue;}/*!search!*/" );
QString mStyleSheet = QStringLiteral( "/*!search!*/QGroupBox::title { background-color: rgb(255, 251, 190); color: black;}/*!search!*/" );
};

/**
Expand Down

0 comments on commit 5efa7bb

Please sign in to comment.