Tema clar/fosc segons el sistema i títol de finestra

This commit is contained in:
2026-05-29 21:07:00 +02:00
parent b71df66e22
commit 9d13c2434b
4 changed files with 131 additions and 6 deletions
+3 -2
View File
@@ -5,7 +5,7 @@ from __future__ import annotations
from pathlib import Path
from PySide6.QtCore import Qt, Signal
from PySide6.QtGui import QPixmap
from PySide6.QtGui import QPalette, QPixmap
from PySide6.QtWidgets import (
QFrame,
QHBoxLayout,
@@ -52,7 +52,8 @@ class GameRow(QFrame):
self.name_label.setStyleSheet("font-weight: bold; font-size: 14px;")
self.desc_label = QLabel("")
self.desc_label.setWordWrap(True)
self.desc_label.setStyleSheet("color: #aaaaaa;")
# Texto atenuado que sigue la paleta (claro/oscuro) en vez de un gris fijo.
self.desc_label.setForegroundRole(QPalette.PlaceholderText)
self.status_label = QLabel("")
self.status_label.setStyleSheet("color: #6fae6f; font-size: 11px;")
text_box.addWidget(self.name_label)