style(ui): match the interface to the FWS website's design system

The window carried a palette of its own, so the desktop app and the site
looked like two different products. The stylesheet now uses the website's
tokens (slate surfaces on a #0f172a page, sky-blue accent, serif headings,
pill-shaped badges); the site's rgba() borders are pre-blended because a Qt
stylesheet only takes solid colours, and plain widgets are left transparent
so the page glow shows through them.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-09-16 22:34:32 +02:00
1 parent 5720c398ef
commit ed58e87520
23 files changed
+208 -161

No files matched your search

+6 -4
View File
@@ -18,11 +18,13 @@ QPixmap iconPixmap(const QString& name, int size) {
return icon(name).pixmap(QSize(size, size));
}
// A pill, like the website's .paquet-since / .nav-dropdown-version tags: a low
// tint of a colour as background, the colour itself as text, fully rounded.
QLabel* badge(const QString& text, const QString& background, const QString& foreground) {
QLabel* label = new QLabel(text);
label->setStyleSheet(QString(
"background: %1; color: %2; border-radius: 9px;"
"padding: 2px 9px; font-size: 11px; font-weight: 600;")
"background: %1; color: %2; border-radius: 999px;"
"padding: 2px 10px; font-size: 11px; font-weight: 700;")
.arg(background, foreground));
return label;
}
@@ -90,7 +92,7 @@ QStackedWidget* withEmptyState(QTableWidget* widget, const QString& hint) {
QLabel* label = new QLabel(hint);
label->setAlignment(Qt::AlignCenter);
label->setWordWrap(true);
label->setStyleSheet("background: transparent; color: #565f73; font-size: 13px;");
label->setStyleSheet("background: transparent; color: #64748b; font-size: 13px;");
layout->addWidget(label);
layout->addStretch();
stack->addWidget(placeholder);
@@ -103,7 +105,7 @@ void showEmptyState(QStackedWidget* stack, bool empty) {
QLabel* countLabel() {
QLabel* label = new QLabel();
label->setStyleSheet("font-size: 12px; color: #7a8299; font-weight: 600;");
label->setStyleSheet("font-size: 12px; color: #64748b; font-weight: 600;");
return label;
}