summary refs log tree commit diff
path: root/src/RegisterPage.cc
diff options
context:
space:
mode:
authorMax Sandholm <max@sandholm.org>2017-11-16 16:33:52 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-11-16 16:33:52 +0200
commit19b526d4533841ca91209929f0d6aef6042a8eeb (patch)
tree596400e11b6275a961b9d57b02b0c0b502df38c4 /src/RegisterPage.cc
parentDon't send empty messages (diff)
downloadnheko-19b526d4533841ca91209929f0d6aef6042a8eeb.tar.xz
Use system color scheme (using a Qt stylesheet) #104
The color scheme of nheko obeys the default color theme of Qt
(i.e. the system theme). It uses a Qt stylesheet to accomplish this,
which means replacing the color theme with a custom theme would only
be a matter of writing a new style sheet and loading it into the app.
Diffstat (limited to 'src/RegisterPage.cc')
-rw-r--r--src/RegisterPage.cc32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/RegisterPage.cc b/src/RegisterPage.cc
index 304a7dc0..01f3b28f 100644
--- a/src/RegisterPage.cc
+++ b/src/RegisterPage.cc
@@ -28,7 +28,7 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent)
   : QWidget(parent)
   , client_(client)
 {
-        setStyleSheet("background-color: #fff");
+        //        setStyleSheet("background-color: #fff");
 
         top_layout_ = new QVBoxLayout();
 
@@ -73,30 +73,30 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent)
         form_wrapper_->addStretch(1);
 
         username_input_ = new TextField();
-        username_input_->setTextColor("#333333");
+        //        username_input_->setTextColor("#333333");
         username_input_->setLabel(tr("Username"));
-        username_input_->setInkColor("#555459");
-        username_input_->setBackgroundColor("#fff");
+        //        username_input_->setInkColor("#555459");
+        //        username_input_->setBackgroundColor("#fff");
 
         password_input_ = new TextField();
-        password_input_->setTextColor("#333333");
+        //        password_input_->setTextColor("#333333");
         password_input_->setLabel(tr("Password"));
-        password_input_->setInkColor("#555459");
-        password_input_->setBackgroundColor("#fff");
+        //        password_input_->setInkColor("#555459");
+        //        password_input_->setBackgroundColor("#fff");
         password_input_->setEchoMode(QLineEdit::Password);
 
         password_confirmation_ = new TextField();
-        password_confirmation_->setTextColor("#333333");
+        //        password_confirmation_->setTextColor("#333333");
         password_confirmation_->setLabel(tr("Password confirmation"));
-        password_confirmation_->setInkColor("#555459");
-        password_confirmation_->setBackgroundColor("#fff");
+        //        password_confirmation_->setInkColor("#555459");
+        //        password_confirmation_->setBackgroundColor("#fff");
         password_confirmation_->setEchoMode(QLineEdit::Password);
 
         server_input_ = new TextField();
-        server_input_->setTextColor("#333333");
+        //        server_input_->setTextColor("#333333");
         server_input_->setLabel(tr("Home Server"));
-        server_input_->setInkColor("#555459");
-        server_input_->setBackgroundColor("#fff");
+        //        server_input_->setInkColor("#555459");
+        //        server_input_->setBackgroundColor("#fff");
 
         form_layout_->addWidget(username_input_, Qt::AlignHCenter, 0);
         form_layout_->addWidget(password_input_, Qt::AlignHCenter, 0);
@@ -112,11 +112,11 @@ RegisterPage::RegisterPage(QSharedPointer<MatrixClient> client, QWidget *parent)
 
         error_label_ = new QLabel(this);
         error_label_->setFont(font);
-        error_label_->setStyleSheet("color: #E22826");
+        //        error_label_->setStyleSheet("color: #E22826");
 
         register_button_ = new RaisedButton(tr("REGISTER"), this);
-        register_button_->setBackgroundColor(QColor("#333333"));
-        register_button_->setForegroundColor(QColor("white"));
+        //        register_button_->setBackgroundColor(QColor("#333333"));
+        //        register_button_->setForegroundColor(QColor("white"));
         register_button_->setMinimumSize(350, 65);
         register_button_->setFontSize(conf::btn::fontSize);
         register_button_->setCornerRadius(conf::btn::cornerRadius);