Skip to content

Commit 5da0ff3

Browse files
Régis Haubourgnyalldawson
Régis Haubourg
authored andcommitted
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)
1 parent dbf64a4 commit 5da0ff3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/gui/qgsoptionsdialoghighlightwidgetsimpl.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class GUI_EXPORT QgsOptionsDialogHighlightLabel : public QgsOptionsDialogHighlig
5151
virtual bool highlightText( const QString &text ) override;
5252
virtual void reset() override;
5353
QPointer<QLabel> mLabel;
54-
QString mStyleSheet = QStringLiteral( /*!search!*/"QLabel { background-color: yellow; color: blue;}/*!search!*/" );
54+
QString mStyleSheet = QStringLiteral( /*!search!*/"QLabel { background-color: rgb(255, 251, 190); color: black;}/*!search!*/" );
5555
};
5656

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

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

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

120120
/**

0 commit comments

Comments
 (0)