summary refs log tree commit diff
path: root/src/RegisterPage.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-21 17:16:29 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-21 17:16:29 +0300
commitfa83ae1cf82d86307991418e70d9a51b219f082c (patch)
tree41a706fc038ae6317d31537e22146cc77be9741d /src/RegisterPage.cc
parentAdd initial read-only emoji support (diff)
downloadnheko-fa83ae1cf82d86307991418e70d9a51b219f082c.tar.xz
Add logo icons
Diffstat (limited to 'src/RegisterPage.cc')
-rw-r--r--src/RegisterPage.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/RegisterPage.cc b/src/RegisterPage.cc

index 2b2fae8b..4364c58b 100644 --- a/src/RegisterPage.cc +++ b/src/RegisterPage.cc
@@ -44,11 +44,12 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent) back_layout_->addWidget(back_button_, 0, Qt::AlignLeft | Qt::AlignVCenter); back_layout_->addStretch(1); + logo_ = new Avatar(this); + logo_->setImage(QImage(":/logos/nheko-128.png")); + logo_->setSize(80); + logo_layout_ = new QHBoxLayout(); - logo_layout_->setContentsMargins(0, 20, 0, 20); - logo_ = new QLabel(this); - logo_->setText("nheko"); - logo_->setStyleSheet("font-size: 22pt; font-weight: 400;"); + logo_layout_->setMargin(0); logo_layout_->addWidget(logo_, 0, Qt::AlignHCenter); form_wrapper_ = new QHBoxLayout(); @@ -93,13 +94,13 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent) button_layout_ = new QHBoxLayout(); button_layout_->setSpacing(0); - button_layout_->setContentsMargins(0, 0, 0, 30); + button_layout_->setMargin(0); error_label_ = new QLabel(this); - error_label_->setStyleSheet("margin-bottom: 20px; color: #E22826; font-size: 11pt;"); + error_label_->setStyleSheet("margin-bottom: 10px; color: #E22826; font-size: 11pt;"); register_button_ = new RaisedButton("REGISTER", this); - register_button_->setBackgroundColor(QColor("#171919")); + register_button_->setBackgroundColor(QColor("#333333")); register_button_->setForegroundColor(QColor("white")); register_button_->setMinimumSize(350, 65); register_button_->setCursor(QCursor(Qt::PointingHandCursor)); @@ -111,7 +112,6 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent) button_layout_->addStretch(1); top_layout_->addLayout(back_layout_); - top_layout_->addStretch(1); top_layout_->addLayout(logo_layout_); top_layout_->addLayout(form_wrapper_); top_layout_->addStretch(1);