fix(login): 输入框显式白底深字+边框(修失焦文字不可见); 登录页样式微调
This commit is contained in:
parent
ebd7779b51
commit
8af0de2ba1
|
|
@ -77,11 +77,20 @@ LoginWindow::LoginWindow(geopro::net::AuthService& auth, QWidget* parent)
|
|||
: QDialog(parent), auth_(auth)
|
||||
{
|
||||
setWindowTitle(QStringLiteral("Geopro 3.0 登录"));
|
||||
setFixedSize(360, 300);
|
||||
setStyleSheet(QStringLiteral("QDialog { background: #F5F7FD; }"));
|
||||
setFixedSize(380, 320);
|
||||
// 显式样式:QLineEdit 在所有状态都白底深字+边框(否则失焦时文字色取调色板默认、与背景相近不可见)。
|
||||
setStyleSheet(QStringLiteral(
|
||||
"QDialog { background: #F5F7FD; }"
|
||||
"QLabel { color: #2B3A55; }"
|
||||
"QLineEdit {"
|
||||
" background: #FFFFFF; color: #1F2A3D;"
|
||||
" border: 1px solid #C7D2E0; border-radius: 5px; padding: 6px 9px;"
|
||||
" selection-background-color: #3A6EA5; selection-color: #FFFFFF; }"
|
||||
"QLineEdit:focus { border: 1px solid #3A6EA5; }"
|
||||
"QLineEdit:disabled { background: #F0F2F6; color: #8A93A3; }"));
|
||||
|
||||
auto* root = new QVBoxLayout(this);
|
||||
root->setContentsMargins(28, 22, 28, 22);
|
||||
root->setContentsMargins(30, 24, 30, 24);
|
||||
root->setSpacing(14);
|
||||
|
||||
auto* title = new QLabel(QStringLiteral("Geopro 3.0 登录"), this);
|
||||
|
|
|
|||
Loading…
Reference in New Issue