From 58bd186c234318be656eae660f2b2af22adb34bf Mon Sep 17 00:00:00 2001 From: defnax Date: Tue, 13 Oct 2015 00:38:46 +0200 Subject: [PATCH] Set a default stylesheet padding size for the Accept/Decline buttons --- plugins/VOIP/gui/VOIPChatWidgetHolder.cpp | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp index 8e01d33a2..adb447973 100644 --- a/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp +++ b/plugins/VOIP/gui/VOIPChatWidgetHolder.cpp @@ -373,6 +373,7 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id) .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #22c70d, stop: 1 #116a06);") ); @@ -385,10 +386,11 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id) RSButtonOnText *buttonD = mChatWidget->getNewButtonOnTextBrowser(tr("Decline Audio Call")); buttonD->setToolTip(tr("Refuse audio call")); - buttonD->setStyleSheet(QString("border: 1px solid #199909;") + buttonD->setStyleSheet(QString("border: 1px solid #6a1106;") .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #c7220d, stop: 1 #6a1106);") ); @@ -424,6 +426,7 @@ void VOIPChatWidgetHolder::addNewVideoButtonMap(const RsPeerId &peer_id) .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #22c70d, stop: 1 #116a06);") ); @@ -436,10 +439,11 @@ void VOIPChatWidgetHolder::addNewVideoButtonMap(const RsPeerId &peer_id) RSButtonOnText *buttonD = mChatWidget->getNewButtonOnTextBrowser(tr("Decline Video Call")); buttonD->setToolTip(tr("Refuse video call")); - buttonD->setStyleSheet(QString("border: 1px solid #199909;") + buttonD->setStyleSheet(QString("border: 1px solid #6a1106;") .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #c7220d, stop: 1 #6a1106);") ); @@ -820,6 +824,7 @@ void VOIPChatWidgetHolder::botMouseEnterTake() .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #444444, stop: 1 #222222);") ); @@ -831,10 +836,11 @@ void VOIPChatWidgetHolder::botMouseLeaveTake() { RSButtonOnText *source = qobject_cast(QObject::sender()); if (source){ - source->setStyleSheet(QString("border: 1px solid #199909;") + source->setStyleSheet(QString("border: 1px solid #116a06;") .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #22c70d, stop: 1 #116a06);") ); @@ -850,6 +856,7 @@ void VOIPChatWidgetHolder::botMouseEnterDecline() .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #444444, stop: 1 #222222);") ); @@ -861,10 +868,11 @@ void VOIPChatWidgetHolder::botMouseLeaveDecline() { RSButtonOnText *source = qobject_cast(QObject::sender()); if (source){ - source->setStyleSheet(QString("border: 1px solid #199909;") + source->setStyleSheet(QString("border: 1px solid #6a1106;") .append("font-size: 12pt; color: white;") .append("min-width: 128px; min-height: 24px;") - .append("border-radius: 6px;") + .append("border-radius: 6px;") + .append("padding: 3px;") .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, " "stop: 0 #c7220d, stop: 1 #6a1106);") );