diff --git a/res.qrc b/res.qrc index a62fa5697..196a3b2e2 100644 --- a/res.qrc +++ b/res.qrc @@ -227,5 +227,7 @@ ui/window/applicationIcon.png ui/window/statusPanel.css ui/window/window.css + ui/acceptCall/acceptCall.png + ui/rejectCall/rejectCall.png diff --git a/src/widget/callconfirmwidget.cpp b/src/widget/callconfirmwidget.cpp index c1b7bcff2..2953cd30b 100644 --- a/src/widget/callconfirmwidget.cpp +++ b/src/widget/callconfirmwidget.cpp @@ -12,7 +12,7 @@ CallConfirmWidget::CallConfirmWidget(const QWidget *Anchor) : QWidget(Widget::getInstance()), anchor(Anchor), - rectW{130}, rectH{90}, + rectW{120}, rectH{85}, spikeW{30}, spikeH{15}, roundedFactor{15} { @@ -26,7 +26,15 @@ CallConfirmWidget::CallConfirmWidget(const QWidget *Anchor) : QLabel *callLabel = new QLabel(tr("Incoming call..."), this); callLabel->setAlignment(Qt::AlignHCenter); QDialogButtonBox *buttonBox = new QDialogButtonBox(Qt::Horizontal, this); - QPushButton *accept = new QPushButton("Accept", this), *reject = new QPushButton("Reject", this); + QPushButton *accept = new QPushButton(this), *reject = new QPushButton(this); + accept->setFlat(true); + reject->setFlat(true); + accept->setStyleSheet("QPushButton{border:none;}"); + reject->setStyleSheet("QPushButton{border:none;}"); + accept->setIcon(QIcon(":/ui/acceptCall/acceptCall.png")); + reject->setIcon(QIcon(":/ui/rejectCall/rejectCall.png")); + accept->setIconSize(accept->size()); + reject->setIconSize(reject->size()); buttonBox->addButton(accept, QDialogButtonBox::AcceptRole); buttonBox->addButton(reject, QDialogButtonBox::RejectRole); diff --git a/ui/acceptCall/acceptCall.png b/ui/acceptCall/acceptCall.png new file mode 100644 index 000000000..c892aba9b Binary files /dev/null and b/ui/acceptCall/acceptCall.png differ diff --git a/ui/rejectCall/rejectCall.png b/ui/rejectCall/rejectCall.png new file mode 100644 index 000000000..a0480be5c Binary files /dev/null and b/ui/rejectCall/rejectCall.png differ