mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix label text colour in login profile
Before labels password and username were not visible for me because colour (dark grey) for those label was inherited from OS which has dark theme, and background of the label was light grey.
This commit is contained in:
parent
e93c350621
commit
c415e063e1
|
@ -279,7 +279,7 @@
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_3">
|
<widget class="QLabel" name="userNameLabel">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Username:</string>
|
<string>Username:</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
#include "persistence/settings.h"
|
#include "persistence/settings.h"
|
||||||
#include "video/camerasource.h"
|
#include "video/camerasource.h"
|
||||||
#include "widget/gui.h"
|
#include "widget/gui.h"
|
||||||
#include "widget/style.h"
|
|
||||||
#include "widget/loginscreen.h"
|
#include "widget/loginscreen.h"
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
@ -98,7 +97,6 @@ void Nexus::start()
|
||||||
qRegisterMetaType<std::shared_ptr<VideoFrame>>("std::shared_ptr<VideoFrame>");
|
qRegisterMetaType<std::shared_ptr<VideoFrame>>("std::shared_ptr<VideoFrame>");
|
||||||
|
|
||||||
loginScreen = new LoginScreen();
|
loginScreen = new LoginScreen();
|
||||||
loginScreen->setStyleSheet(Style::getStylesheet(":/ui/loginScreen/loginScreen.css"));
|
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
globalMenuBar = new QMenuBar(0);
|
globalMenuBar = new QMenuBar(0);
|
||||||
|
|
|
@ -26,6 +26,7 @@
|
||||||
#include "src/persistence/settings.h"
|
#include "src/persistence/settings.h"
|
||||||
#include "src/widget/form/setpassworddialog.h"
|
#include "src/widget/form/setpassworddialog.h"
|
||||||
#include "src/widget/translator.h"
|
#include "src/widget/translator.h"
|
||||||
|
#include "src/widget/style.h"
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
|
@ -55,6 +56,8 @@ LoginScreen::LoginScreen(QWidget *parent) :
|
||||||
connect(ui->autoLoginCB, &QCheckBox::stateChanged, this, &LoginScreen::onAutoLoginToggled);
|
connect(ui->autoLoginCB, &QCheckBox::stateChanged, this, &LoginScreen::onAutoLoginToggled);
|
||||||
|
|
||||||
reset();
|
reset();
|
||||||
|
this->setStyleSheet(Style::getStylesheet(":/ui/loginScreen/loginScreen.css"));
|
||||||
|
|
||||||
retranslateUi();
|
retranslateUi();
|
||||||
Translator::registerHandler(std::bind(&LoginScreen::retranslateUi, this), this);
|
Translator::registerHandler(std::bind(&LoginScreen::retranslateUi, this), this);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,3 +46,7 @@ QStackedWidget QPushButton
|
||||||
#createAccountButton:hover {
|
#createAccountButton:hover {
|
||||||
background: #0c530d;
|
background: #0c530d;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel {
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user