69 lines
1.4 KiB
Python
69 lines
1.4 KiB
Python
from PyQt6.QtWidgets import QWidget
|
|
|
|
QWidget#LoginWindow {
|
|
background: qlineargradient(
|
|
x1: 0, y1: 0, x2: 0, y2: 1,
|
|
stop: 0 #fd8e53, /* warm pink-orange */
|
|
stop: 1 #111748 /* deep blue */
|
|
);
|
|
}
|
|
|
|
/* Icon or title label—for centered white icon/text */
|
|
QLabel {
|
|
color: white;
|
|
}
|
|
|
|
/* Username and Password input boxes */
|
|
QLineEdit {
|
|
background: rgba(255, 255, 255, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.8);
|
|
border-radius: 8px;
|
|
padding: 8px 12px;
|
|
color: #333;
|
|
}
|
|
|
|
/* Placeholder text styling */
|
|
QLineEdit::placeholder {
|
|
color: rgba(51, 51, 51, 0.6);
|
|
}
|
|
|
|
/* Login button styling */
|
|
QPushButton#loginButton {
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
color: white;
|
|
background: qlineargradient(
|
|
x1: 0, y1: 0, x2: 1, y2: 0,
|
|
stop: 0 #ff416c, /* pink-red */
|
|
stop: 1 #ff4b2b /* orange-red */
|
|
);
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
}
|
|
|
|
/* Hover state for the login button */
|
|
QPushButton#loginButton:hover {
|
|
background: qlineargradient(
|
|
x1: 0, y1: 0, x2: 1, y2: 0,
|
|
stop: 0 #ff5a7a,
|
|
stop: 1 #ff6a4b
|
|
);
|
|
}
|
|
|
|
/* Checkbox and link area styling */
|
|
QCheckBox, QLabel {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 12px;
|
|
}
|
|
|
|
/* Rich-text link color */
|
|
QLabel[href] {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
/* Remove focus outline on QLineEdit and button when clicked */
|
|
QLineEdit:focus, QPushButton:focus {
|
|
outline: none;
|
|
}
|