Browse Source

style: add labels.css

reviewable/pr5191/r5
TriKriSta 7 years ago
parent
commit
4b2942d51d
  1. 1
      res.qrc
  2. 6
      src/widget/form/searchsettingsform.cpp
  3. 9
      ui/chatForm/labels.css

1
res.qrc

@ -55,6 +55,7 @@
<file>ui/chatForm/buttons.css</file> <file>ui/chatForm/buttons.css</file>
<file>ui/chatForm/fullScreenButtons.css</file> <file>ui/chatForm/fullScreenButtons.css</file>
<file>ui/chatForm/callButton.svg</file> <file>ui/chatForm/callButton.svg</file>
<file>ui/chatForm/labels.css</file>
<file>ui/chatForm/micButton.svg</file> <file>ui/chatForm/micButton.svg</file>
<file>ui/chatForm/micButtonRed.svg</file> <file>ui/chatForm/micButtonRed.svg</file>
<file>ui/chatForm/videoButton.svg</file> <file>ui/chatForm/videoButton.svg</file>

6
src/widget/form/searchsettingsform.cpp

@ -16,7 +16,7 @@ SearchSettingsForm::SearchSettingsForm(QWidget *parent) :
ui->choiceDateButton->setObjectName(QStringLiteral("choiceDateButton")); ui->choiceDateButton->setObjectName(QStringLiteral("choiceDateButton"));
ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css"))); ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css")));
ui->startDateLabel->setStyleSheet(QStringLiteral("QLabel{color: #ddd;}")); // TODO: need use a style file (.css) ui->startDateLabel->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/labels.css")));
connect(ui->startSearchComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged), connect(ui->startSearchComboBox, static_cast<void(QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
this, &SearchSettingsForm::onStartSearchSelected); this, &SearchSettingsForm::onStartSearchSelected);
@ -94,8 +94,6 @@ void SearchSettingsForm::onStartSearchSelected(const int index)
ui->choiceDateButton->setProperty("state", QStringLiteral("green")); ui->choiceDateButton->setProperty("state", QStringLiteral("green"));
ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css"))); ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css")));
ui->startDateLabel->setStyleSheet(QStringLiteral("QLabel{color: #000;}"));
if (startDate.isNull()) { if (startDate.isNull()) {
startDate = QDate::currentDate(); startDate = QDate::currentDate();
updateStartDateLabel(); updateStartDateLabel();
@ -107,8 +105,6 @@ void SearchSettingsForm::onStartSearchSelected(const int index)
ui->choiceDateButton->setProperty("state", QString()); ui->choiceDateButton->setProperty("state", QString());
ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css"))); ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css")));
ui->startDateLabel->setStyleSheet(QStringLiteral("QLabel{color: #ddd;}"));
} }
setUpdate(true); setUpdate(true);

9
ui/chatForm/labels.css

@ -0,0 +1,9 @@
QLabel
{
color: #000;
}
QLabel:disabled
{
color: #ddd;
}
Loading…
Cancel
Save