mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
style: add labels.css
This commit is contained in:
parent
ea8bbfd8a5
commit
4b2942d51d
1
res.qrc
1
res.qrc
|
@ -55,6 +55,7 @@
|
|||
<file>ui/chatForm/buttons.css</file>
|
||||
<file>ui/chatForm/fullScreenButtons.css</file>
|
||||
<file>ui/chatForm/callButton.svg</file>
|
||||
<file>ui/chatForm/labels.css</file>
|
||||
<file>ui/chatForm/micButton.svg</file>
|
||||
<file>ui/chatForm/micButtonRed.svg</file>
|
||||
<file>ui/chatForm/videoButton.svg</file>
|
||||
|
|
|
@ -16,7 +16,7 @@ SearchSettingsForm::SearchSettingsForm(QWidget *parent) :
|
|||
ui->choiceDateButton->setObjectName(QStringLiteral("choiceDateButton"));
|
||||
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),
|
||||
this, &SearchSettingsForm::onStartSearchSelected);
|
||||
|
@ -94,8 +94,6 @@ void SearchSettingsForm::onStartSearchSelected(const int index)
|
|||
ui->choiceDateButton->setProperty("state", QStringLiteral("green"));
|
||||
ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css")));
|
||||
|
||||
ui->startDateLabel->setStyleSheet(QStringLiteral("QLabel{color: #000;}"));
|
||||
|
||||
if (startDate.isNull()) {
|
||||
startDate = QDate::currentDate();
|
||||
updateStartDateLabel();
|
||||
|
@ -107,8 +105,6 @@ void SearchSettingsForm::onStartSearchSelected(const int index)
|
|||
|
||||
ui->choiceDateButton->setProperty("state", QString());
|
||||
ui->choiceDateButton->setStyleSheet(Style::getStylesheet(QStringLiteral(":/ui/chatForm/buttons.css")));
|
||||
|
||||
ui->startDateLabel->setStyleSheet(QStringLiteral("QLabel{color: #ddd;}"));
|
||||
}
|
||||
|
||||
setUpdate(true);
|
||||
|
|
9
ui/chatForm/labels.css
Normal file
9
ui/chatForm/labels.css
Normal file
|
@ -0,0 +1,9 @@
|
|||
QLabel
|
||||
{
|
||||
color: #000;
|
||||
}
|
||||
|
||||
QLabel:disabled
|
||||
{
|
||||
color: #ddd;
|
||||
}
|
Loading…
Reference in New Issue
Block a user