Files
PyQt6_LaTaniere/styles/styles.qss

316 lines
6.7 KiB
Plaintext

QLabel {
color: rgb(255, 255, 255);
}
#main_container {
border-radius: 30px;
background: qradialgradient(cx:0.5, cy:0.5, radius:0.8, fx:0.5, fy:0.5,
stop: 0 #16213e,
stop: 1 #0a0e14);
}
QFrame#logo_frame {
background-image: url(:/assets/logo.png);
background-repeat: no-repeat;
background-position: center;
}
QFrame#frame_2 QLabel {
color: rgb(163, 177, 198);
}
QFrame#frame_2 QLabel#discord_title_label {
font-size: 28px;
color: rgb(255, 255, 255) /* label enfant, obligé de définir la couleur car ne prend pas la général */
}
QFrame#frame_2 QLabel#label_2 {
/* font-family: 'sans serif'; */
}
QLabel#maintitle_label {
font-size: 38px;
}
QLabel#subtitle_label {
color: rgb(163, 177, 198);
}
QLabel#queue_position {
font-size: 36px;
color: rgb(17, 248, 183);
}
QLabel#queue_lbl {
}
QPushButton#connexion_btn[chantier="false"] {
/* Dégradé chaleureux : Orange vers Orange-Rouge */
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop: 0 #ff9d00,
stop: 1 #f56100);
border-radius: 12px;
border: 1px solid #b34700;
color: white;
padding: 10px;
}
QPushButton#connexion_btn[chantier="false"]:hover {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop: 0 #ffb338,
stop: 1 #ff7a29);
border: 1px solid #ffcc80;
/* Un léger halo autour du bouton */
outline: none;
}
QPushButton#connexion_btn[chantier="false"]:pressed {
background: #cc5200;
padding-top: 12px; /* Effet d'enfoncement */
}
/* État normal - Rouge Corail Vibrant */
QPushButton#staff_btn {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #FF4B2B, stop:1 #FF416C);
color: white;
border-radius: 12px;
border: 1px solid #d03522;
padding: 5px 15px;
}
HazardButton#connexion_btn {
color: #0A1A3A;
/* color: #0D2A6B;*/
font-weight: bold;
}
HazardButton#connexion_btn:hover {
/* color: #ffffff;*/
color: #0D2A6B;
}
HazardButton#connexion_btn:pressed {
color: #333333;
}
QPushButton#staff_btn:hover {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #FF6046, stop:1 #FF527B);
border: 1px solid #FF4B2B;
}
QPushButton#staff_btn:pressed
{
background-color: #d03522;
padding-top: 7px;
padding-left: 17px;
}
QPushButton#discord_btn,
QPushButton#discord_auth_btn,
QPushButton#intranet_btn
{
background-color: rgba(32, 58, 67, 0.6); /* Bleu très sombre semi-transparent */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #e2e8f0;
font-weight: bold;
padding: 8px 15px;
}
QPushButton#discord_btn:hover,
QPushButton#discord_auth_btn:hover
{
background-color: rgba(88, 101, 242, 0.4); /* Fond bleu Discord translucide */
border: 2px solid #7289da; /* Bordure plus épaisse et claire pour l'éclat */
color: white;
}
QPushButton#intranet_btn:hover {
background-color: rgba(0, 242, 255, 0.15); /* Teinte turquoise légère en fond */
border: 2px solid #00f2ff; /* Bordure turquoise vive et épaisse */
color: #ffffff;
}
QPushButton#discord_btn:pressed,
QPushButton#discord_auth_btn:pressed,
QPushButton#intranet_btn:pressed
{
background-color: #0f172a;
padding-top: 10px; /* Petit effet d'enfoncement */
}
QPushButton#mute_btn {
border-radius: 15px;
background-color: rgb(255, 120, 0);
}
QPushButton#mute_btn[muted="true"] {
background-color: rgb(200, 0, 0);
}
QPushButton#mute_btn:hover {
background-color: rgb(255, 150, 40);
}
QPushButton#close_btn {
border : 0;
background: transparent;
}
QPushButton#minimize_btn {
background-color: transparent;
border: none;
border-bottom: 5px solid white;
color: white;
font-size: 18px;
padding: 0px;
padding-top: 0
}
QFrame#info_frame{
background: qlineargradient(
x1:0, y1:0,
x2:0, y2:1,
stop:0 rgba(255,255,255,30),
stop:1 rgba(255,255,255,30)
);
border-radius: 20px;
border: 1px solid rgba(255,255,255,140);
}
QTextEdit#info_text {
background-color: transparent;
border: none;
color: rgb(255, 255, 255);
}
QSlider {
height: 35px;
}
QSlider::groove:horizontal {
border: 1px solid #1C1C1C;
height: 8px;
background: #7D7D7D;
border-radius: 4px;
}
QSlider::sub-page:horizontal {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #12b9ff, stop: 1.0 #015eea);
border: 1px solid #1C1C1C;
border-radius: 4px;
}
QSlider::handle:horizontal {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FF8C00, stop:1 #FF5E00);
border: 1px solid #B34700;
width: 16px;
height: 16px;
margin: -5px 0; /* Ajusté pour centrer 16px sur barre de 8px */
border-radius: 8px; /* Moitié exacte de width/height */
}
/* On répète les propriétés cruciales pour les états survolés/pressés */
QSlider::handle:horizontal:hover {
background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #FFA500, stop:1 #FF7F00);
border-radius: 8px;
}
QSlider::handle:horizontal:pressed {
background: #E65100;
border-radius: 8px;
}
/* ----------------------------------------------
Custom Message Box
----------------------------------------------*/
QWidget#MsgBoxMainContainer {
border-radius: 15px;
border: 1px solid rgba(255, 255, 255, 0.1);
}
QWidget#MsgBoxMainContainer[iconType="info"] {
background: qlineargradient(
x1: 0, y1: 0, x2: 1, y2: 1,
stop: 0 #101624,
stop: 1 #248277
);
}
QWidget#MsgBoxMainContainer[iconType="warning"] {
background: qlineargradient(
x1: 0, y1: 0, x2: 1, y2: 1,
stop: 0 #101624,
stop: 1 #cf5b16
);
}
QWidget#MsgBoxMainContainer QLabel,
QWidget#MsgBoxMainContainer QPushButton
{
color: white;
/*font-size: 18px;
/* font-family: 'Segoe UI';*/
}
QPushButton#MsgBoxOkButton,
QPushButton#MsgBoxCancelButton {
border-radius: 6px;
/* color: white;*/
padding: 8px 20px;
font-weight: bold;
font-size: 12px;
border: 1px solid rgba(255,255,255,0.05);
}
QPushButton#MsgBoxOkButton {
background: #248277;
}
QPushButton#MsgBoxCancelButton {
background: #2a313d;
}
QPushButton#MsgBoxOkButton:hover,
QPushButton#MsgBoxCancelButton:hover{
background: #363d4a;
border: 1px solid white;
}
QPushButton#MsgBoxCloseButton {
background: transparent;
color: white;
border: none;
font-size: 14px;
/* Rayon identique au container (15px) pour épouser parfaitement le coin */
border-top-right-radius: 15px;
border-bottom-left-radius: 10px;
}
QPushButton#MsgBoxCloseButton:hover {
background-color: #e74c3c;
color: white;
}
QLabel#MsgBoxTitleLabel {
font-weight: bold;
font-size: 14px;
color: rgba(255,255,255,0.7);
letter-spacing: 1px;
}
QLabel#MsgBoxMessageLabel {
font-size: 14px;
color: #f0f0f0;
}
QLabel#MsgBoxIconLabel {
font-size: 35px;
margin-right: 10px;
}