From 91a73b2689653819edc7700d45f4cbb1c6299e85 Mon Sep 17 00:00:00 2001 From: kunalgosar Date: Tue, 14 Feb 2017 16:13:24 -0800 Subject: [PATCH] Button styling --- interface/resources/styles/log_dialog.qss | 19 +++++++++++++------ interface/src/ui/BaseLogDialog.cpp | 4 ++-- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/interface/resources/styles/log_dialog.qss b/interface/resources/styles/log_dialog.qss index eb90400a85..1fc4df0717 100644 --- a/interface/resources/styles/log_dialog.qss +++ b/interface/resources/styles/log_dialog.qss @@ -35,12 +35,19 @@ QPushButton#searchButton { QPushButton#searchNextButton { font-family: Helvetica, Arial, sans-serif; - background-repeat: none; - background-position: left center; - background-origin: content; - padding-left: 10px; - background-color: #333333; - color: #BBBBBB; + text-align: center; + background-color: #CCCCCC; + color: #3d3d3d; + border-width: 0; + border-radius: 9px; + font-size: 11px; +} + +QPushButton#searchPrevButton { + font-family: Helvetica, Arial, sans-serif; + text-align: center; + background-color: #CCCCCC; + color: #3d3d3d; border-width: 0; border-radius: 9px; font-size: 11px; diff --git a/interface/src/ui/BaseLogDialog.cpp b/interface/src/ui/BaseLogDialog.cpp index ab0eaafd5f..7875333a4b 100644 --- a/interface/src/ui/BaseLogDialog.cpp +++ b/interface/src/ui/BaseLogDialog.cpp @@ -158,7 +158,7 @@ void BaseLogDialog::toggleSearchPrev() { QString selectedTerm = searchCursor.selectedText(); _logTextBox->find(selectedTerm, QTextDocument::FindBackward); } else { - handleSearchTextChanged(_searchTextBox.text()); + handleSearchTextChanged(_searchTextBox->text()); } } @@ -168,7 +168,7 @@ void BaseLogDialog::toggleSearchNext() { QString selectedTerm = searchCursor.selectedText(); _logTextBox->find(selectedTerm); } else { - handleSearchTextChanged(_searchTextBox.text()); + handleSearchTextChanged(_searchTextBox->text()); } }