mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-15 17:09:56 +00:00
UI Nits: Named Search Input Box
The named search dialog box uses the same style sheet as the search box, which looks odd in a dialog box. This patch ensures the stylesheet is only applied to the search box and not any children.
This commit is contained in:
@@ -66,21 +66,22 @@ SearchBox::SearchBox(MainWindow *main, QWidget *parent)
|
||||
#ifdef Q_OS_MAC
|
||||
setAttribute(Qt::WA_MacShowFocusRect, 0);
|
||||
#endif
|
||||
setObjectName("SearchBox");
|
||||
setStyleSheet(QString( //"QLineEdit { padding-right: %1px; } "
|
||||
"QLineEdit {"
|
||||
"QLineEdit#SearchBox {"
|
||||
" selection-color: white; "
|
||||
//" border: 0px groove gray;"
|
||||
" border-radius: 5px;"
|
||||
" padding: 0px %1px;"
|
||||
"}"
|
||||
"QLineEdit:focus {"
|
||||
"QLineEdit#SearchBox:focus {"
|
||||
" selection-color: white; "
|
||||
//" border: 0px groove gray;"
|
||||
" border-radius: 5px;"
|
||||
" padding: 0px %1px;"
|
||||
"}"
|
||||
""
|
||||
"QLineEdit:edit-focus {"
|
||||
"QLineEdit#SearchBox:edit-focus {"
|
||||
" selection-color: white; "
|
||||
//" border: 0px groove gray;"
|
||||
" border-radius: 5px;"
|
||||
|
||||
Reference in New Issue
Block a user