Set a default stylesheet padding size for the Accept/Decline buttons

This commit is contained in:
defnax 2015-10-13 00:38:46 +02:00
parent e9241933bf
commit 58bd186c23

View File

@ -373,6 +373,7 @@ void VOIPChatWidgetHolder::addNewAudioButtonMap(const RsPeerId &peer_id)
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #22c70d, stop: 1 #116a06);") "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")); RSButtonOnText *buttonD = mChatWidget->getNewButtonOnTextBrowser(tr("Decline Audio Call"));
buttonD->setToolTip(tr("Refuse 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("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #c7220d, stop: 1 #6a1106);") "stop: 0 #c7220d, stop: 1 #6a1106);")
); );
@ -424,6 +426,7 @@ void VOIPChatWidgetHolder::addNewVideoButtonMap(const RsPeerId &peer_id)
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #22c70d, stop: 1 #116a06);") "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")); RSButtonOnText *buttonD = mChatWidget->getNewButtonOnTextBrowser(tr("Decline Video Call"));
buttonD->setToolTip(tr("Refuse 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("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #c7220d, stop: 1 #6a1106);") "stop: 0 #c7220d, stop: 1 #6a1106);")
); );
@ -820,6 +824,7 @@ void VOIPChatWidgetHolder::botMouseEnterTake()
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #444444, stop: 1 #222222);") "stop: 0 #444444, stop: 1 #222222);")
); );
@ -831,10 +836,11 @@ void VOIPChatWidgetHolder::botMouseLeaveTake()
{ {
RSButtonOnText *source = qobject_cast<RSButtonOnText *>(QObject::sender()); RSButtonOnText *source = qobject_cast<RSButtonOnText *>(QObject::sender());
if (source){ if (source){
source->setStyleSheet(QString("border: 1px solid #199909;") source->setStyleSheet(QString("border: 1px solid #116a06;")
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #22c70d, stop: 1 #116a06);") "stop: 0 #22c70d, stop: 1 #116a06);")
); );
@ -850,6 +856,7 @@ void VOIPChatWidgetHolder::botMouseEnterDecline()
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #444444, stop: 1 #222222);") "stop: 0 #444444, stop: 1 #222222);")
); );
@ -861,10 +868,11 @@ void VOIPChatWidgetHolder::botMouseLeaveDecline()
{ {
RSButtonOnText *source = qobject_cast<RSButtonOnText *>(QObject::sender()); RSButtonOnText *source = qobject_cast<RSButtonOnText *>(QObject::sender());
if (source){ if (source){
source->setStyleSheet(QString("border: 1px solid #199909;") source->setStyleSheet(QString("border: 1px solid #6a1106;")
.append("font-size: 12pt; color: white;") .append("font-size: 12pt; color: white;")
.append("min-width: 128px; min-height: 24px;") .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, " .append("background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 0.67, "
"stop: 0 #c7220d, stop: 1 #6a1106);") "stop: 0 #c7220d, stop: 1 #6a1106);")
); );