1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

refactor: Use repolish instead of setting same stylesheet

This commit is contained in:
Diadlo 2017-10-27 21:01:07 +03:00
parent 1f8a5619c8
commit 8aa372854f
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -161,7 +161,7 @@ void ChatFormHeader::showOutgoingCall(bool video)
{ {
QPushButton* btn = video ? videoButton : callButton; QPushButton* btn = video ? videoButton : callButton;
btn->setObjectName("yellow"); btn->setObjectName("yellow");
btn->setStyleSheet(video ? STYLE_SHEET(videoButton) : STYLE_SHEET(callButton)); Style::repolish(btn);
btn->setToolTip(video ? tr("Cancel video call") : tr("Cancel audio call")); btn->setToolTip(video ? tr("Cancel video call") : tr("Cancel audio call"));
} }
@ -201,8 +201,8 @@ void ChatFormHeader::updateCallButtons(bool online, bool audio, bool video)
videoButton->setToolTip(videoAvaliable ? tr("Start video call") : tr("Can't start video call")); videoButton->setToolTip(videoAvaliable ? tr("Start video call") : tr("Can't start video call"));
} }
callButton->setStyleSheet(STYLE_SHEET(callButton)); Style::repolish(callButton);
videoButton->setStyleSheet(STYLE_SHEET(videoButton)); Style::repolish(videoButton);
} }
void ChatFormHeader::updateMuteMicButton(bool active, bool inputMuted) void ChatFormHeader::updateMuteMicButton(bool active, bool inputMuted)
@ -216,7 +216,7 @@ void ChatFormHeader::updateMuteMicButton(bool active, bool inputMuted)
micButton->setToolTip(tr("Microphone can be muted only during a call")); micButton->setToolTip(tr("Microphone can be muted only during a call"));
} }
micButton->setStyleSheet(STYLE_SHEET(micButton)); Style::repolish(micButton);
} }
void ChatFormHeader::updateMuteVolButton(bool active, bool outputMuted) void ChatFormHeader::updateMuteVolButton(bool active, bool outputMuted)
@ -230,7 +230,7 @@ void ChatFormHeader::updateMuteVolButton(bool active, bool outputMuted)
volButton->setToolTip(tr("Sound can be disabled only during a call")); volButton->setToolTip(tr("Sound can be disabled only during a call"));
} }
volButton->setStyleSheet(STYLE_SHEET(volButton)); Style::repolish(volButton);
} }
void ChatFormHeader::setAvatar(const QPixmap &img) void ChatFormHeader::setAvatar(const QPixmap &img)