summary refs log tree commit diff
path: root/src/TextInputWidget.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-04 22:00:26 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-10-04 22:00:26 +0300
commit28b3a3fde02e5fc422bfc44cfbedb940815b823b (patch)
tree75fcd0e5d58b2ec573c55b73fbf0b388157333a3 /src/TextInputWidget.cc
parentReceive typing notifications (#88) (diff)
downloadnheko-28b3a3fde02e5fc422bfc44cfbedb940815b823b.tar.xz
Put typing notifications above the text input
Diffstat (limited to 'src/TextInputWidget.cc')
-rw-r--r--src/TextInputWidget.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TextInputWidget.cc b/src/TextInputWidget.cc

index 4d5f4d5f..f894a247 100644 --- a/src/TextInputWidget.cc +++ b/src/TextInputWidget.cc
@@ -45,14 +45,14 @@ TextInputWidget::TextInputWidget(QWidget *parent) { setFont(QFont("Emoji One")); - setFixedHeight(45); + setFixedHeight(50); setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); setCursor(Qt::ArrowCursor); setStyleSheet("background-color: #fff;"); topLayout_ = new QHBoxLayout(); topLayout_->setSpacing(0); - topLayout_->setContentsMargins(5, 15, 0, 5); + topLayout_->setContentsMargins(15, 0, 15, 5); QIcon send_file_icon; send_file_icon.addFile(":/icons/icons/clip-dark.png", QSize(), QIcon::Normal, QIcon::Off); @@ -69,14 +69,14 @@ TextInputWidget::TextInputWidget(QWidget *parent) spinner_->hide(); QFont font; - font.setPixelSize(conf::fontSize); + font.setPixelSize(conf::textInputFontSize); input_ = new FilteredTextEdit(this); input_->setFixedHeight(32); input_->setFont(font); input_->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); input_->setPlaceholderText(tr("Write a message...")); - input_->setStyleSheet("color: #333333; border: none; margin: 0 5px"); + input_->setStyleSheet("color: #333333; border: none; padding-top: 5px; margin: 0 5px"); sendMessageBtn_ = new FlatButton(this); sendMessageBtn_->setForegroundColor(QColor("#acc7dc"));