Changed button type for Comments Composer & update the stylesheets

This commit is contained in:
defnax 2020-10-13 22:12:37 +02:00
parent 30ee2f8ee7
commit 5ed38fe6ea
5 changed files with 50 additions and 26 deletions

View File

@ -31,8 +31,8 @@ GxsCreateCommentDialog::GxsCreateCommentDialog(RsGxsCommentService *service, co
ui(new Ui::GxsCreateCommentDialog), mCommentService(service), mParentId(parentId), mThreadId(threadId)
{
ui->setupUi(this);
connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(createComment()));
connect(ui->buttonBox, SIGNAL(rejected()), this, SLOT(close()));
connect(ui->postButton, SIGNAL(clicked()), this, SLOT(createComment()));
connect(ui->cancelButton, SIGNAL(clicked()), this, SLOT(close()));
/* fill in the available OwnIds for signing */
ui->idChooser->loadIds(IDCHOOSER_ID_REQUIRED, default_author);
@ -52,7 +52,7 @@ void GxsCreateCommentDialog::loadComment(const QString &msgText, const QString &
ui->replaytolabel->setText( tr("Replying to") + " @" + msgAuthor);
ui->commentTextEdit->setPlaceholderText( tr("Type your reply"));
ui->buttonBox->button(QDialogButtonBox::Ok)->setText("Reply");
ui->postButton->setText("Reply");
ui->signedLabel->setText("Reply as");
}

View File

@ -138,20 +138,11 @@ p, li { white-space: pre-wrap; }
</item>
<item row="1" column="0">
<widget class="QFrame" name="messageframe">
<layout class="QVBoxLayout" name="mainVLayout">
<property name="leftMargin">
<number>9</number>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<property name="topMargin">
<number>6</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item>
<item row="0" column="0">
<widget class="GxsIdLabel" name="replaytolabel">
<property name="styleSheet">
<string notr="true"/>
@ -161,7 +152,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item>
<item row="1" column="0" colspan="3">
<widget class="MimeTextEdit" name="commentTextEdit">
<property name="styleSheet">
<string notr="true"/>
@ -171,7 +162,7 @@ p, li { white-space: pre-wrap; }
</property>
</widget>
</item>
<item>
<item row="2" column="0" colspan="3">
<layout class="QHBoxLayout" name="signedHLayout">
<item>
<widget class="QLabel" name="signedLabel">
@ -195,13 +186,30 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<item row="3" column="0">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
<property name="sizeHint" stdset="0">
<size>
<width>276</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="postButton">
<property name="text">
<string>Post</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QPushButton" name="cancelButton">
<property name="text">
<string>Cancel</string>
</property>
</widget>
</item>

View File

@ -134,7 +134,8 @@ CreateGxsChannelMsg QPushButton#postButton:hover {
}
CreateCircleDialog QPushButton#createButton, CreateLobbyDialog QPushButton#createButton,
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton {
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton,
GxsCreateCommentDialog QPushButton#postButton {
font: bold;
font-size: 15px;
color: white;
@ -146,7 +147,8 @@ IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton
}
CreateCircleDialog QPushButton#createButton:hover, CreateLobbyDialog QPushButton#createButton:hover,
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover {
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover,
GxsCreateCommentDialog QPushButton#postButton:hover {
background: #03b1f3;
border-radius: 4px;
min-width: 4em;

View File

@ -2071,7 +2071,8 @@ CreateGxsChannelMsg QPushButton#postButton:hover {
}
CreateCircleDialog QPushButton#createButton, CreateLobbyDialog QPushButton#createButton,
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton {
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton,
GxsCreateCommentDialog QPushButton#postButton {
font: bold;
font-size: 15px;
color: white;
@ -2083,7 +2084,8 @@ IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton
}
CreateCircleDialog QPushButton#createButton:hover, CreateLobbyDialog QPushButton#createButton:hover,
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover {
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover,
GxsCreateCommentDialog QPushButton#postButton:hover {
background: #03b1f3;
border-radius: 4px;
min-width: 4em;
@ -2106,6 +2108,11 @@ QTabBar#smTab::tab{
width: 32px;
}
QLabel#avatarLabel{
border: 2px solid #CCCCCC;
border-radius: 4px;
}
PostedCreatePostDialog QPushButton#submitButton {
font: bold;
font-size: 15px;

View File

@ -1236,7 +1236,8 @@ CreateGxsChannelMsg QPushButton#postButton:hover {
}
CreateCircleDialog QPushButton#createButton, CreateLobbyDialog QPushButton#createButton,
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton {
IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton,
GxsCreateCommentDialog QPushButton#postButton {
font: bold;
font-size: 15px;
color: white;
@ -1248,7 +1249,8 @@ IdEditDialog QPushButton#createButton, CreateGxsForumMsg QPushButton#postButton
}
CreateCircleDialog QPushButton#createButton:hover, CreateLobbyDialog QPushButton#createButton:hover,
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover {
IdEditDialog QPushButton#createButton:hover, CreateGxsForumMsg QPushButton#postButton:hover,
GxsCreateCommentDialog QPushButton#postButton:hover {
background: #03b1f3;
border-radius: 4px;
min-width: 4em;
@ -1271,6 +1273,11 @@ QTabBar#smTab::tab{
width: 32px;
}
QLabel#avatarLabel{
border: 2px solid #CCCCCC;
border-radius: 4px;
}
PostedCreatePostDialog QPushButton#submitButton {
font: bold;
font-size: 15px;