Skip to content
Permalink
Browse files

Improves background color for search result in general option dialog

fixes 18142 by a lighter yellow background and keeping a black font

(cherry-picked from 5efa7bb)
  • Loading branch information
haubourg authored and nyalldawson committed Mar 15, 2018
1 parent dbf64a4 commit 5da0ff331f256c7aceb7514d2f146d5dea227d7c
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/gui/qgsoptionsdialoghighlightwidgetsimpl.h
@@ -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!*/" );
};

/**
@@ -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!*/" );
};

/**
@@ -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!*/" );
};

/**
@@ -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!*/" );
};

/**

0 comments on commit 5da0ff3

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