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

+13 -10
View File
@@ -62,7 +62,7 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
filterRow->addWidget(m_filterBar, 1); filterRow->addWidget(m_filterBar, 1);
QLabel* filterHint = new QLabel("Filtre local, instantané"); QLabel* filterHint = new QLabel("Filtre local, instantané");
filterHint->setStyleSheet("font-size: 12px; color: #7a8299;"); filterHint->setStyleSheet("font-size: 12px; color: #64748b;");
filterRow->addWidget(filterHint); filterRow->addWidget(filterHint);
m_filterRow->setVisible(false); m_filterRow->setVisible(false);
@@ -164,12 +164,15 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
m_pkgName = new QLabel("Sélectionnez un paquet"); m_pkgName = new QLabel("Sélectionnez un paquet");
m_pkgName->setWordWrap(true); m_pkgName->setWordWrap(true);
// Serif like the site's package headings.
m_pkgName->setStyleSheet( m_pkgName->setStyleSheet(
"font-size: 22px; font-weight: 700; color: #e8edf9; background: transparent;"); "font-family: serif; font-size: 22px; font-weight: 700; color: #e2e8f0;"
"background: transparent;");
detailsLayout->addWidget(m_pkgName); detailsLayout->addWidget(m_pkgName);
m_pkgVersion = new QLabel(""); m_pkgVersion = new QLabel("");
m_pkgVersion->setStyleSheet("font-size: 13px; color: #7a8299; background: transparent;"); m_pkgVersion->setStyleSheet(
"font-size: 13px; color: #94a3b8; background: transparent;");
detailsLayout->addWidget(m_pkgVersion); detailsLayout->addWidget(m_pkgVersion);
QHBoxLayout* metaRow = new QHBoxLayout(); QHBoxLayout* metaRow = new QHBoxLayout();
@@ -178,8 +181,8 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
auto makeMetaBadge = [](QLabel** out) { auto makeMetaBadge = [](QLabel** out) {
QLabel* label = new QLabel("—"); QLabel* label = new QLabel("—");
label->setStyleSheet( label->setStyleSheet(
"background: #1c2434; color: #7a8299; border-radius: 10px;" "background: #273449; color: #94a3b8; border: 1px solid #303b4e;"
"padding: 3px 12px; font-size: 12px;"); "border-radius: 999px; padding: 3px 12px; font-size: 12px;");
*out = label; *out = label;
return label; return label;
}; };
@@ -192,14 +195,14 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
QFrame* separator = new QFrame(); QFrame* separator = new QFrame();
separator->setFrameShape(QFrame::HLine); separator->setFrameShape(QFrame::HLine);
separator->setStyleSheet( separator->setStyleSheet(
"color: #232b3a; background: #232b3a; max-height: 1px; border: none;"); "color: #303b4e; background: #303b4e; max-height: 1px; border: none;");
detailsLayout->addWidget(separator); detailsLayout->addWidget(separator);
m_pkgDescription = new QLabel(""); m_pkgDescription = new QLabel("");
m_pkgDescription->setWordWrap(true); m_pkgDescription->setWordWrap(true);
m_pkgDescription->setAlignment(Qt::AlignTop | Qt::AlignLeft); m_pkgDescription->setAlignment(Qt::AlignTop | Qt::AlignLeft);
m_pkgDescription->setStyleSheet( m_pkgDescription->setStyleSheet(
"font-size: 14px; color: #c8d3f5; background: transparent;"); "font-size: 14px; color: #94a3b8; background: transparent;");
detailsLayout->addWidget(m_pkgDescription, 1); detailsLayout->addWidget(m_pkgDescription, 1);
detailsLayout->addStretch(); detailsLayout->addStretch();
@@ -401,15 +404,15 @@ void BrowsePage::addRow(int row, const PackageInfo& pkg) {
QTableWidgetItem* providerItem = QTableWidgetItem* providerItem =
new QTableWidgetItem(ui::providersLabel(core()->plugins(), pkg)); new QTableWidgetItem(ui::providersLabel(core()->plugins(), pkg));
providerItem->setForeground(QColor("#7a8299")); providerItem->setForeground(QColor("#94a3b8"));
m_table->setItem(row, 3, providerItem); m_table->setItem(row, 3, providerItem);
QTableWidgetItem* statusItem = new QTableWidgetItem(ui::packageStatusText(pkg)); QTableWidgetItem* statusItem = new QTableWidgetItem(ui::packageStatusText(pkg));
if (pkg.installed && pkg.updateAvailable) { if (pkg.installed && pkg.updateAvailable) {
statusItem->setForeground(QColor("#e0af68")); statusItem->setForeground(QColor("#fbbf24"));
statusItem->setIcon(ui::icon("arrow-up")); statusItem->setIcon(ui::icon("arrow-up"));
} else if (pkg.installed) { } else if (pkg.installed) {
statusItem->setForeground(QColor("#3fb950")); statusItem->setForeground(QColor("#34d399"));
statusItem->setIcon(ui::icon("check")); statusItem->setIcon(ui::icon("check"));
} else { } else {
statusItem->setIcon(ui::icon("package")); statusItem->setIcon(ui::icon("package"));
+2 -2
View File
@@ -33,7 +33,7 @@ CleanupPage::CleanupPage(AppCore* core, QWidget* parent) : Page(core, parent) {
"manuelle : vérifiez-les un par un avant de les supprimer."); "manuelle : vérifiez-les un par un avant de les supprimer.");
hint->setTextFormat(Qt::RichText); hint->setTextFormat(Qt::RichText);
hint->setWordWrap(true); hint->setWordWrap(true);
hint->setStyleSheet("font-size: 12px; color: #7a8299;"); hint->setStyleSheet("font-size: 12px; color: #94a3b8;");
hintLayout->addWidget(hint); hintLayout->addWidget(hint);
layout->addWidget(hintCard); layout->addWidget(hintCard);
@@ -133,7 +133,7 @@ void CleanupPage::populate(const std::vector<PackageInfo>& candidates) {
QTableWidgetItem* typeItem = QTableWidgetItem* typeItem =
new QTableWidgetItem(QString::fromStdString(pkg.cleanupReason)); new QTableWidgetItem(QString::fromStdString(pkg.cleanupReason));
typeItem->setForeground(QColor(pkg.orphan ? "#e0af68" : "#7a8299")); typeItem->setForeground(QColor(pkg.orphan ? "#fbbf24" : "#94a3b8"));
typeItem->setIcon(ui::icon(pkg.orphan ? "alert" : "package")); typeItem->setIcon(ui::icon(pkg.orphan ? "alert" : "package"));
m_table->setItem(i, 2, typeItem); m_table->setItem(i, 2, typeItem);
+9 -7
View File
@@ -116,7 +116,7 @@ DashboardPage::DashboardPage(AppCore* core, QWidget* parent) : Page(core, parent
m_statUpdates->setText(QString::number(results.size())); m_statUpdates->setText(QString::number(results.size()));
m_statUpdates->setStyleSheet(results.empty() m_statUpdates->setStyleSheet(results.empty()
? QString() ? QString()
: QString("color: #e0af68;")); : QString("color: #fbbf24;"));
} }
}); });
connect(core, &AppCore::historyChanged, this, &DashboardPage::refresh); connect(core, &AppCore::historyChanged, this, &DashboardPage::refresh);
@@ -165,24 +165,26 @@ void DashboardPage::refreshRecentActivity() {
QLabel* timestamp = new QLabel(QString::fromStdString(entry.timestamp)); QLabel* timestamp = new QLabel(QString::fromStdString(entry.timestamp));
timestamp->setStyleSheet( timestamp->setStyleSheet(
"background: transparent; color: #5f6785;" "background: transparent; color: #64748b;"
"font-family: monospace; font-size: 12px;"); "font-family: monospace; font-size: 12px;");
rowLayout->addWidget(timestamp); rowLayout->addWidget(timestamp);
// Badge colours are the site's status colours, each one tinted onto the
// card background the badge sits on.
QString actionText, actionBg, actionFg; QString actionText, actionBg, actionFg;
if (entry.action == "install") { if (entry.action == "install") {
actionText = "Installation"; actionBg = "#12301f"; actionFg = "#3fb950"; actionText = "Installation"; actionBg = "#213d46"; actionFg = "#34d399";
} else if (entry.action == "remove") { } else if (entry.action == "remove") {
actionText = "Suppression"; actionBg = "#3a1a1a"; actionFg = "#f7768e"; actionText = "Suppression"; actionBg = "#383241"; actionFg = "#f87171";
} else if (entry.action == "cleanup") { } else if (entry.action == "cleanup") {
actionText = "Nettoyage"; actionBg = "#12333a"; actionFg = "#56b6c2"; actionText = "Nettoyage"; actionBg = "#213b52"; actionFg = "#7dd3fc";
} else { } else {
actionText = "Mise à jour"; actionBg = "#3d2f0f"; actionFg = "#e0af68"; actionText = "Mise à jour"; actionBg = "#393b38"; actionFg = "#fbbf24";
} }
rowLayout->addWidget(ui::badge(actionText, actionBg, actionFg)); rowLayout->addWidget(ui::badge(actionText, actionBg, actionFg));
QLabel* package = new QLabel(QString::fromStdString(entry.package)); QLabel* package = new QLabel(QString::fromStdString(entry.package));
package->setStyleSheet("background: transparent; font-weight: 600; color: #c8d3f5;"); package->setStyleSheet("background: transparent; font-weight: 600; color: #e2e8f0;");
rowLayout->addWidget(package); rowLayout->addWidget(package);
rowLayout->addStretch(); rowLayout->addStretch();
+6 -5
View File
@@ -24,7 +24,7 @@ HistoryPage::HistoryPage(AppCore* core, QWidget* parent) : Page(core, parent) {
filterRow->setSpacing(10); filterRow->setSpacing(10);
QLabel* filterLabel = new QLabel("Filtrer :"); QLabel* filterLabel = new QLabel("Filtrer :");
filterLabel->setStyleSheet("font-size: 13px; color: #7a8299;"); filterLabel->setStyleSheet("font-size: 13px; color: #94a3b8;");
filterRow->addWidget(filterLabel); filterRow->addWidget(filterLabel);
m_filter = new QComboBox(); m_filter = new QComboBox();
@@ -95,15 +95,16 @@ void HistoryPage::refreshTable() {
for (int i = 0; i < static_cast<int>(entries.size()); ++i) { for (int i = 0; i < static_cast<int>(entries.size()); ++i) {
const auto& entry = entries[i]; const auto& entry = entries[i];
// The site's status colours, one per action kind.
QString actionText, actionColor; QString actionText, actionColor;
if (entry.action == "install") { if (entry.action == "install") {
actionText = "Installation"; actionColor = "#3fb950"; actionText = "Installation"; actionColor = "#34d399";
} else if (entry.action == "remove") { } else if (entry.action == "remove") {
actionText = "Suppression"; actionColor = "#f7768e"; actionText = "Suppression"; actionColor = "#f87171";
} else if (entry.action == "cleanup") { } else if (entry.action == "cleanup") {
actionText = "Nettoyage"; actionColor = "#56b6c2"; actionText = "Nettoyage"; actionColor = "#7dd3fc";
} else { } else {
actionText = "Mise à jour"; actionColor = "#e0af68"; actionText = "Mise à jour"; actionColor = "#fbbf24";
} }
m_table->setItem(i, 0, m_table->setItem(i, 0,
+6 -6
View File
@@ -35,7 +35,7 @@ PluginsPage::PluginsPage(AppCore* core, QWidget* parent) : Page(core, parent) {
"~/.local/share/PacManager/plugins/ ou dans le dossier plugins/ à côté de " "~/.local/share/PacManager/plugins/ ou dans le dossier plugins/ à côté de "
"l'exécutable, puis cliquez sur « Recharger »."); "l'exécutable, puis cliquez sur « Recharger ».");
hint->setWordWrap(true); hint->setWordWrap(true);
hint->setStyleSheet("font-size: 12px; color: #7a8299;"); hint->setStyleSheet("font-size: 12px; color: #94a3b8;");
hintLayout->addWidget(hint); hintLayout->addWidget(hint);
layout->addWidget(hintCard); layout->addWidget(hintCard);
@@ -48,7 +48,7 @@ PluginsPage::PluginsPage(AppCore* core, QWidget* parent) : Page(core, parent) {
m_description = new QLabel(""); m_description = new QLabel("");
m_description->setWordWrap(true); m_description->setWordWrap(true);
m_description->setStyleSheet( m_description->setStyleSheet(
"font-size: 13px; color: #c8d3f5; background: transparent; padding: 2px 4px;"); "font-size: 13px; color: #94a3b8; background: transparent; padding: 2px 4px;");
layout->addWidget(m_description); layout->addWidget(m_description);
QHBoxLayout* buttonBar = new QHBoxLayout(); QHBoxLayout* buttonBar = new QHBoxLayout();
@@ -135,7 +135,7 @@ void PluginsPage::refreshTable() {
: "Fournisseur"; : "Fournisseur";
QTableWidgetItem* typeItem = QTableWidgetItem* typeItem =
new QTableWidgetItem(entry.info.builtin ? kindText : kindText + " (externe)"); new QTableWidgetItem(entry.info.builtin ? kindText : kindText + " (externe)");
typeItem->setForeground(QColor("#7a8299")); typeItem->setForeground(QColor("#94a3b8"));
m_table->setItem(i, 1, typeItem); m_table->setItem(i, 1, typeItem);
m_table->setItem(i, 2, new QTableWidgetItem(QString::fromStdString(entry.info.version))); m_table->setItem(i, 2, new QTableWidgetItem(QString::fromStdString(entry.info.version)));
@@ -145,13 +145,13 @@ void PluginsPage::refreshTable() {
QColor statusColor; QColor statusColor;
if (!entry.info.available) { if (!entry.info.available) {
statusText = "Indisponible"; statusText = "Indisponible";
statusColor = QColor("#565f73"); statusColor = QColor("#64748b");
} else if (enabled) { } else if (enabled) {
statusText = "Actif"; statusText = "Actif";
statusColor = QColor("#3fb950"); statusColor = QColor("#34d399");
} else { } else {
statusText = "Désactivé"; statusText = "Désactivé";
statusColor = QColor("#e0af68"); statusColor = QColor("#fbbf24");
} }
QTableWidgetItem* statusItem = new QTableWidgetItem(statusText); QTableWidgetItem* statusItem = new QTableWidgetItem(statusText);
+6 -4
View File
@@ -18,11 +18,13 @@ QPixmap iconPixmap(const QString& name, int size) {
return icon(name).pixmap(QSize(size, 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* badge(const QString& text, const QString& background, const QString& foreground) {
QLabel* label = new QLabel(text); QLabel* label = new QLabel(text);
label->setStyleSheet(QString( label->setStyleSheet(QString(
"background: %1; color: %2; border-radius: 9px;" "background: %1; color: %2; border-radius: 999px;"
"padding: 2px 9px; font-size: 11px; font-weight: 600;") "padding: 2px 10px; font-size: 11px; font-weight: 700;")
.arg(background, foreground)); .arg(background, foreground));
return label; return label;
} }
@@ -90,7 +92,7 @@ QStackedWidget* withEmptyState(QTableWidget* widget, const QString& hint) {
QLabel* label = new QLabel(hint); QLabel* label = new QLabel(hint);
label->setAlignment(Qt::AlignCenter); label->setAlignment(Qt::AlignCenter);
label->setWordWrap(true); 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->addWidget(label);
layout->addStretch(); layout->addStretch();
stack->addWidget(placeholder); stack->addWidget(placeholder);
@@ -103,7 +105,7 @@ void showEmptyState(QStackedWidget* stack, bool empty) {
QLabel* countLabel() { QLabel* countLabel() {
QLabel* label = new QLabel(); 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; return label;
} }
+1 -1
View File
@@ -41,7 +41,7 @@ public:
if (!m_loaded || !m_window) return; if (!m_loaded || !m_window) return;
m_badge = new QLabel("⚡ Exemple d'addon actif"); m_badge = new QLabel("⚡ Exemple d'addon actif");
m_badge->setStyleSheet( m_badge->setStyleSheet(
"color: #7aa2f7; font-size: 11px; font-weight: 600; padding-right: 8px;"); "color: #38bdf8; font-size: 11px; font-weight: 600; padding-right: 8px;");
m_window->statusBar()->addPermanentWidget(m_badge); m_window->statusBar()->addPermanentWidget(m_badge);
} }
+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e0af68" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#fbbf24" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/> <path d="M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/>
<line x1="12" y1="9" x2="12" y2="13"/> <line x1="12" y1="9" x2="12" y2="13"/>
<line x1="12" y1="17" x2="12.01" y2="17"/> <line x1="12" y1="17" x2="12.01" y2="17"/>

Before

Width:  |  Height:  |  Size: 372 B

After

Width:  |  Height:  |  Size: 372 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<line x1="12" y1="19" x2="12" y2="5"/> <line x1="12" y1="19" x2="12" y2="5"/>
<polyline points="5 12 12 5 19 12"/> <polyline points="5 12 12 5 19 12"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 263 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M20 4L12.6 11.4"/> <path d="M20 4L12.6 11.4"/>
<path d="M12.6 11.4l-1.9 5-5 4.6-1.8-3.7 4.5-5 4.2-1.9z"/> <path d="M12.6 11.4l-1.9 5-5 4.6-1.8-3.7 4.5-5 4.2-1.9z"/>
<line x1="8.4" y1="15.6" x2="10.9" y2="18.1"/> <line x1="8.4" y1="15.6" x2="10.9" y2="18.1"/>

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

+1 -1
View File
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#3fb950" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#34d399" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<polyline points="20 6 9 17 4 12"/> <polyline points="20 6 9 17 4 12"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 223 B

After

Width:  |  Height:  |  Size: 223 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#f7768e" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#f87171" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<line x1="18" y1="6" x2="6" y2="18"/> <line x1="18" y1="6" x2="6" y2="18"/>
<line x1="6" y1="6" x2="18" y2="18"/> <line x1="6" y1="6" x2="18" y2="18"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 265 B

After

Width:  |  Height:  |  Size: 265 B

+1 -1
View File
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M22 3H2l8 9.5V19l4 2v-8.5L22 3z"/> <path d="M22 3H2l8 9.5V19l4 2v-8.5L22 3z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 229 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<circle cx="12" cy="12" r="9"/> <circle cx="12" cy="12" r="9"/>
<path d="M12 7v5l3 3"/> <path d="M12 7v5l3 3"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 243 B

After

Width:  |  Height:  |  Size: 243 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M3 11l9-8 9 8"/> <path d="M3 11l9-8 9 8"/>
<path d="M5 10v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10"/> <path d="M5 10v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V10"/>
<path d="M9 21v-7h6v7"/> <path d="M9 21v-7h6v7"/>

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/> <path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/>
<path d="M14 2v6h6"/> <path d="M14 2v6h6"/>
<path d="M8 13h8"/> <path d="M8 13h8"/>

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M21 8l-9-5-9 5v8l9 5 9-5V8z"/> <path d="M21 8l-9-5-9 5v8l9 5 9-5V8z"/>
<path d="M3 8l9 5 9-5"/> <path d="M3 8l9 5 9-5"/>
<path d="M12 13v8"/> <path d="M12 13v8"/>

Before

Width:  |  Height:  |  Size: 275 B

After

Width:  |  Height:  |  Size: 275 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M9 3.5a1.75 1.75 0 0 1 3.5 0V6h3.5a1.75 1.75 0 0 1 0 3.5H12.5V13h-3.5a1.75 1.75 0 0 1 0-3.5H6.5a1.75 1.75 0 0 1 0-3.5H9V3.5z"/> <path d="M9 3.5a1.75 1.75 0 0 1 3.5 0V6h3.5a1.75 1.75 0 0 1 0 3.5H12.5V13h-3.5a1.75 1.75 0 0 1 0-3.5H6.5a1.75 1.75 0 0 1 0-3.5H9V3.5z"/>
<path d="M9 13h3.5v3.5A1.75 1.75 0 0 0 14.25 18.25h.5a1.75 1.75 0 0 0 1.75-1.75V13H20a1.75 1.75 0 0 0 1.75-1.75v-.5A1.75 1.75 0 0 0 20 9h-3.5"/> <path d="M9 13h3.5v3.5A1.75 1.75 0 0 0 14.25 18.25h.5a1.75 1.75 0 0 0 1.75-1.75V13H20a1.75 1.75 0 0 0 1.75-1.75v-.5A1.75 1.75 0 0 0 20 9h-3.5"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 470 B

After

Width:  |  Height:  |  Size: 470 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M23 4v6h-6"/> <path d="M23 4v6h-6"/>
<path d="M1 20v-6h6"/> <path d="M1 20v-6h6"/>
<path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10"/> <path d="M3.51 9a9 9 0 0 1 14.85-3.36L23 10"/>

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<circle cx="11" cy="11" r="7"/> <circle cx="11" cy="11" r="7"/>
<line x1="21" y1="21" x2="16.5" y2="16.5"/> <line x1="21" y1="21" x2="16.5" y2="16.5"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 263 B

After

Width:  |  Height:  |  Size: 263 B

+1 -1
View File
@@ -1,3 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/> <path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 350 B

+1 -1
View File
@@ -1,4 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#c8d3f5" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24"> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="#e2e8f0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" width="24" height="24">
<path d="M3 6h18"/> <path d="M3 6h18"/>
<path d="M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2"/> <path d="M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2"/>
<path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/> <path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/>

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 402 B

+150 -111
View File
@@ -75,142 +75,176 @@ static QString actionErrorTitle(const QString& action) {
// Everything the screens draw with. The look of the application is a single // Everything the screens draw with. The look of the application is a single
// stylesheet applied to the window, so a screen file only describes its layout // stylesheet applied to the window, so a screen file only describes its layout
// and its wording (see pages/ui-kit.h for the shared widgets). // and its wording (see pages/ui-kit.h for the shared widgets).
//
// The palette and the shapes mirror the FWS website's stylesheets
// (p/assets/styles/var.css, styles.css and paquets.css): slate surfaces on a
// #0f172a page, a sky-blue accent, serif headings, pill-shaped badges and
// 8-16px radii. The site draws its borders and tints with rgba() over the
// surface below; a Qt stylesheet only takes a solid colour, so those values are
// pre-blended here onto the surface they sit on (#232c3f is the site's border
// over the page, #303b4e the same border over a card).
static QString appStyleSheet() { static QString appStyleSheet() {
return QStringLiteral( return QStringLiteral(
// ---- Base ---- // ---- Base ----
"QMainWindow, QWidget { background: #0d1017; color: #dbe2f0; }" // Widgets stay transparent like in CSS: only real surfaces declare a
// background, so the page glow below shows through the layouts. The
// dialogs are listed explicitly because they are windows of their own
// and would otherwise fall back to the light system palette.
"QMainWindow, QDialog { background: #0f172a; }"
"QWidget { color: #e2e8f0; }"
// The site tints its dark page with a soft accent glow from the top
// left; Qt has no radial gradient, so a diagonal one stands in for it.
"QWidget#content {"
" background: qlineargradient(x1:0, y1:0, x2:0.85, y2:1,"
" stop:0 #13243b, stop:0.55 #0f172a, stop:1 #0f172a);"
"}"
// ---- Sidebar ---- // ---- Sidebar ----
"QFrame#sidebar { background: #11151d; border-right: 1px solid #1d2432; }" // A raised surface, like the site's header and footer.
"QFrame#sidebar { background: #1e293b; border-right: 1px solid #232c3f; }"
"QWidget#logo { padding: 4px 0; }" "QWidget#logo { padding: 4px 0; }"
"QLabel#logoText { font-size: 16px; font-weight: 800; color: #ffffff; }" "QLabel#logoText { font-family: serif; font-size: 19px; font-weight: 700; color: #e2e8f0; }"
"QLabel#tagline { font-size: 11px; color: #6b7285; padding: 0 8px 8px 8px; }" "QLabel#tagline { font-size: 11px; color: #64748b; padding: 0 8px 8px 8px; }"
// Navigation entries use the site's navigation idiom: a rounded shape
// that fills with the accent tint, the label turning accent.
"QPushButton[nav=\"true\"] {" "QPushButton[nav=\"true\"] {"
" text-align: left;" " text-align: left;"
" background: transparent;" " background: transparent;"
" border: none;" " border: 1px solid transparent;"
" border-left: 3px solid transparent;"
" border-radius: 8px;" " border-radius: 8px;"
" padding: 9px 10px 9px 13px;" " padding: 9px 12px;"
" font-size: 13px;" " font-size: 13px;"
" font-weight: 600;" " font-weight: 600;"
" color: #98a0b3;" " color: #94a3b8;"
"}" "}"
"QPushButton[nav=\"true\"]:hover { background: #1a2130; color: #e8edf9; }" "QPushButton[nav=\"true\"]:hover { background: #21384e; color: #7dd3fc; }"
"QPushButton[nav=\"true\"]:checked { background: #1c2434; border-left: 3px solid #7aa2f7; color: #ffffff; }" "QPushButton[nav=\"true\"]:checked { background: #21384e; color: #38bdf8; }"
"QPushButton[nav=\"true\"]:disabled { color: #565f73; }" "QPushButton[nav=\"true\"]:disabled { color: #475569; }"
// ---- Header ---- // ---- Header ----
"QWidget#header { background: #0f1219; border-bottom: 1px solid #1d2432; }" "QWidget#header { background: #1e293b; border-bottom: 1px solid #232c3f; }"
"QLabel#headerTitle { font-size: 19px; font-weight: 800; color: #e8edf9; }" "QLabel#headerTitle { font-family: serif; font-size: 21px; font-weight: 700; color: #e2e8f0; }"
"QLabel#headerSubtitle { font-size: 12px; color: #7a8299; }" "QLabel#headerSubtitle { font-size: 12px; color: #94a3b8; }"
// ---- Cards ---- // ---- Cards ----
// Cards read as raised surfaces: a slightly lighter background, a hair // Cards read as raised surfaces: the site's slightly lighter slate, a
// line border and a rounded corner separate them from the page without // hair line border and a rounded corner separate them from the page
// adding shadows Qt cannot render consistently across platforms. // without adding shadows Qt cannot render consistently across
// platforms.
"QFrame#card {" "QFrame#card {"
" background: #121722;" " background: #1e293b;"
" border: 1px solid #1d2432;" " border: 1px solid #232c3f;"
" border-radius: 12px;" " border-radius: 12px;"
"}" "}"
// Stat cards carry a coloured left edge so the four metrics are told // Stat cards carry a coloured left edge so the four metrics are told
// apart at a glance. // apart at a glance. The colours are the site's status and accent ones.
"QFrame#card[accent=\"blue\"] { border-left: 3px solid #7aa2f7; }" "QFrame#card[accent=\"blue\"] { border-left: 3px solid #38bdf8; }"
"QFrame#card[accent=\"amber\"] { border-left: 3px solid #e0af68; }" "QFrame#card[accent=\"amber\"] { border-left: 3px solid #fbbf24; }"
"QFrame#card[accent=\"cyan\"] { border-left: 3px solid #56b6c2; }" "QFrame#card[accent=\"cyan\"] { border-left: 3px solid #7dd3fc; }"
"QFrame#card[accent=\"green\"] { border-left: 3px solid #3fb950; }" "QFrame#card[accent=\"green\"] { border-left: 3px solid #34d399; }"
"QLabel#cardTitle { font-size: 11px; font-weight: 700; color: #7a8299; letter-spacing: 1px; }" // Small uppercase labels, as the site's section headings.
"QLabel#statValue { font-size: 32px; font-weight: 800; color: #ffffff; }" "QLabel#cardTitle { font-size: 11px; font-weight: 700; color: #64748b; letter-spacing: 1px; }"
"QLabel#statTitle { font-size: 12px; color: #7a8299; font-weight: 600; }" "QLabel#statValue { font-size: 30px; font-weight: 800; color: #e2e8f0; }"
"QLabel#statTitle { font-size: 12px; color: #94a3b8; font-weight: 600; }"
// ---- Sidebar extras ---- // ---- Sidebar extras ----
"QLabel#sectionTitle {" "QLabel#sectionTitle {"
" font-size: 10px;" " font-size: 10px;"
" font-weight: 800;" " font-weight: 800;"
" color: #4d5566;" " color: #64748b;"
" letter-spacing: 1.2px;" " letter-spacing: 1.2px;"
" padding: 14px 10px 2px 10px;" " padding: 14px 10px 2px 10px;"
"}" "}"
"QLabel#versionLabel { font-size: 11px; color: #565f73; padding: 8px 10px; }" "QLabel#versionLabel { font-size: 11px; color: #64748b; padding: 8px 10px; }"
"QPushButton[nav=\"true\"][highlighted=\"true\"] { color: #e0af68; }" "QPushButton[nav=\"true\"][highlighted=\"true\"] { color: #fbbf24; }"
// ---- Buttons ---- // ---- Buttons ----
// Mirrors the site's .button: rounded, 1px transparent border that
// takes the accent when hovered, and a darker fill on hover.
"QPushButton {" "QPushButton {"
" background: #232b3a;" " background: #273449;"
" color: #dbe2f0;" " color: #94a3b8;"
" border: none;" " border: 1px solid #303b4e;"
" border-radius: 8px;" " border-radius: 8px;"
" padding: 8px 16px;" " padding: 8px 16px;"
" font-size: 13px;" " font-size: 13px;"
" font-weight: 600;" " font-weight: 600;"
"}" "}"
"QPushButton:hover { background: #2c3648; }" "QPushButton:hover { background: #29445e; border-color: #7dd3fc; color: #38bdf8; }"
"QPushButton:pressed { background: #1e2634; }" "QPushButton:pressed { background: #22384d; color: #7dd3fc; }"
"QPushButton:disabled { background: #181d28; color: #565f73; }" "QPushButton:disabled { background: #232c3f; border-color: transparent; color: #64748b; }"
"QPushButton[variant=\"primary\"] { background: #7aa2f7; color: #0d1017; }" "QPushButton[variant=\"primary\"] { background: #38bdf8; border-color: transparent; color: #0f172a; }"
"QPushButton[variant=\"primary\"]:hover { background: #8ab0ff; }" "QPushButton[variant=\"primary\"]:hover { background: #0ea5e9; color: #0f172a; }"
"QPushButton[variant=\"primary\"]:pressed { background: #5f86d9; }" "QPushButton[variant=\"primary\"]:pressed { background: #0284c7; color: #0f172a; }"
"QPushButton[variant=\"primary\"]:disabled { background: #2a3350; color: #7a8299; }" "QPushButton[variant=\"success\"] { background: #34d399; border-color: transparent; color: #0f172a; }"
"QPushButton[variant=\"success\"] { background: #3fb950; color: #0d1017; }" "QPushButton[variant=\"success\"]:hover { background: #10b981; color: #0f172a; }"
"QPushButton[variant=\"success\"]:hover { background: #4ecb5f; }" "QPushButton[variant=\"success\"]:pressed { background: #059669; color: #0f172a; }"
"QPushButton[variant=\"success\"]:pressed { background: #35a344; }" "QPushButton[variant=\"danger\"] { background: #f87171; border-color: transparent; color: #0f172a; }"
"QPushButton[variant=\"success\"]:disabled { background: #1d2b21; color: #5f7a66; }" "QPushButton[variant=\"danger\"]:hover { background: #ef4444; color: #0f172a; }"
"QPushButton[variant=\"danger\"] { background: #f7768e; color: #0d1017; }" "QPushButton[variant=\"danger\"]:pressed { background: #dc2626; color: #0f172a; }"
"QPushButton[variant=\"danger\"]:hover { background: #ff8ba4; }" "QPushButton[variant=\"warning\"] { background: #fbbf24; border-color: transparent; color: #0f172a; }"
"QPushButton[variant=\"danger\"]:pressed { background: #e05e78; }" "QPushButton[variant=\"warning\"]:hover { background: #f59e0b; color: #0f172a; }"
"QPushButton[variant=\"danger\"]:disabled { background: #2c1c21; color: #7a5f66; }" "QPushButton[variant=\"warning\"]:pressed { background: #d97706; color: #0f172a; }"
"QPushButton[variant=\"warning\"] { background: #e0af68; color: #0d1017; }" "QPushButton[variant=\"info\"] { background: #7dd3fc; border-color: transparent; color: #0f172a; }"
"QPushButton[variant=\"warning\"]:hover { background: #ecc27e; }" "QPushButton[variant=\"info\"]:hover { background: #38bdf8; color: #0f172a; }"
"QPushButton[variant=\"warning\"]:pressed { background: #d09a50; }" "QPushButton[variant=\"info\"]:pressed { background: #0ea5e9; color: #0f172a; }"
"QPushButton[variant=\"warning\"]:disabled { background: #2b241c; color: #7a6d5c; }" // A disabled button keeps the muted fill of the site's :disabled rule,
"QPushButton[variant=\"info\"] { background: #56b6c2; color: #0d1017; }" // whatever its variant.
"QPushButton[variant=\"info\"]:hover { background: #6cc7d2; }" "QPushButton[variant=\"primary\"]:disabled, QPushButton[variant=\"success\"]:disabled,"
"QPushButton[variant=\"info\"]:pressed { background: #45a3ae; }" "QPushButton[variant=\"danger\"]:disabled, QPushButton[variant=\"warning\"]:disabled,"
"QPushButton[variant=\"info\"]:disabled { background: #1c2a2d; color: #5f7a7d; }" "QPushButton[variant=\"info\"]:disabled {"
" background: #232c3f; border-color: transparent; color: #64748b;"
"}"
// ---- Inputs ---- // ---- Inputs ----
"QLineEdit {" "QLineEdit {"
" background: #141927;" " background: #1e293b;"
" border: 1px solid #2a3448;" " border: 1px solid #303b4e;"
" border-radius: 10px;" " border-radius: 8px;"
" padding: 9px 14px;" " padding: 9px 14px;"
" font-size: 13px;" " font-size: 13px;"
" color: #dbe2f0;" " color: #e2e8f0;"
" selection-background-color: #7aa2f7;" " selection-background-color: #38bdf8;"
" selection-color: #0f172a;"
"}" "}"
"QLineEdit:focus { border: 1px solid #7aa2f7; }" "QLineEdit:hover { border-color: #475569; }"
"QLineEdit:disabled { color: #565f73; }" "QLineEdit:focus { border: 1px solid #38bdf8; }"
"QLineEdit:disabled { color: #64748b; }"
"QComboBox {" "QComboBox {"
" background: #141927;" " background: #1e293b;"
" border: 1px solid #2a3448;" " border: 1px solid #303b4e;"
" border-radius: 10px;" " border-radius: 8px;"
" padding: 7px 12px;" " padding: 7px 12px;"
" font-size: 13px;" " font-size: 13px;"
" color: #dbe2f0;" " color: #e2e8f0;"
"}" "}"
"QComboBox:hover { border-color: #7dd3fc; }"
"QComboBox::drop-down { border: none; width: 26px; }" "QComboBox::drop-down { border: none; width: 26px; }"
"QComboBox QAbstractItemView {" "QComboBox QAbstractItemView {"
" background: #141927;" " background: #273449;"
" border: 1px solid #2a3448;" " border: 1px solid #303b4e;"
" selection-background-color: #232c44;" " selection-background-color: #21384e;"
" color: #dbe2f0;" " selection-color: #38bdf8;"
" color: #e2e8f0;"
"}" "}"
// ---- Progress bar ---- // ---- Progress bar ----
"QProgressBar { background: #1c2330; border: none; border-radius: 3px; }" "QProgressBar { background: #273449; border: none; border-radius: 3px; }"
"QProgressBar::chunk { background: #7aa2f7; border-radius: 3px; }" "QProgressBar::chunk { background: #38bdf8; border-radius: 3px; }"
// ---- Package table ---- // ---- Package table ----
// No outer frame: the table blends with the page background, keeping // No outer frame: the table blends with the card it sits in, keeping
// only the column header and alternating rows as visual separators. // only the column header and alternating rows as visual separators.
"QTableWidget {" "QTableWidget {"
" background: transparent;" " background: transparent;"
" alternate-background-color: #141a25;" " alternate-background-color: #223044;"
" border: none;" " border: none;"
" gridline-color: transparent;" " gridline-color: transparent;"
" outline: 0;" " outline: 0;"
"}" "}"
"QTableWidget::item { border: none; padding: 4px 8px; }" "QTableWidget::item { border: none; padding: 4px 8px; }"
"QTableWidget::item:selected { background: #232c44; color: #ffffff; }" "QTableWidget::item:selected { background: #21384e; color: #e2e8f0; }"
"QTableWidget::item:hover { background: #1a2130; }" // Hover stays below the selection tint, so a hovered row is never
// mistaken for the selected one.
"QTableWidget::item:hover { background: #1b2b40; }"
"QHeaderView { background: transparent; }"
"QHeaderView::section {" "QHeaderView::section {"
" background: #1a2130;" " background: transparent;"
" color: #7a8299;" " color: #64748b;"
" border: none;" " border: none;"
" border-bottom: 1px solid #232b3a;" " border-bottom: 1px solid #303b4e;"
" padding: 8px;" " padding: 8px;"
" font-size: 11px;" " font-size: 11px;"
" font-weight: 700;" " font-weight: 700;"
@@ -219,43 +253,61 @@ static QString appStyleSheet() {
// ---- Recent activity list ---- // ---- Recent activity list ----
"QListWidget#recentList { background: transparent; border: none; outline: 0; }" "QListWidget#recentList { background: transparent; border: none; outline: 0; }"
"QListWidget#recentList::item { border-radius: 8px; margin: 1px 2px; }" "QListWidget#recentList::item { border-radius: 8px; margin: 1px 2px; }"
"QListWidget#recentList::item:hover { background: #1a2130; }" "QListWidget#recentList::item:hover { background: #21384e; }"
// ---- Logs editor ---- // ---- Logs editor ----
// Recessed like the site's inline code: the page colour, not a card.
"QTextEdit {" "QTextEdit {"
" background: #12161f;" " background: #0f172a;"
" color: #c8d3f5;" " color: #e2e8f0;"
" border: 1px solid #232b3a;" " border: 1px solid #303b4e;"
" border-radius: 10px;" " border-radius: 12px;"
" padding: 10px;" " padding: 10px;"
" font-family: monospace;" " font-family: monospace;"
" font-size: 13px;" " font-size: 13px;"
"}" "}"
// ---- Menus ----
// The menu strip shares the header's surface, so the two read as the
// site's single top band.
"QMenuBar { background: #1e293b; color: #94a3b8; padding: 2px 4px; }"
"QMenuBar::item { padding: 6px 10px; border-radius: 6px; background: transparent; }"
"QMenuBar::item:selected { background: #21384e; color: #38bdf8; }"
"QMenu {"
" background: #1e293b;"
" color: #e2e8f0;"
" border: 1px solid #303b4e;"
" border-radius: 8px;"
" padding: 6px;"
"}"
"QMenu::item { padding: 7px 24px 7px 14px; border-radius: 6px; }"
"QMenu::item:selected { background: #21384e; color: #38bdf8; }"
"QMenu::item:disabled { color: #64748b; }"
"QMenu::separator { height: 1px; background: #303b4e; margin: 6px 8px; }"
// ---- Scrollbars ---- // ---- Scrollbars ----
"QScrollBar:vertical { background: transparent; width: 10px; margin: 2px; }" "QScrollBar:vertical { background: transparent; width: 10px; margin: 2px; }"
"QScrollBar::handle:vertical { background: #2a3448; border-radius: 5px; min-height: 30px; }" "QScrollBar::handle:vertical { background: #273449; border-radius: 5px; min-height: 30px; }"
"QScrollBar::handle:vertical:hover { background: #3a455c; }" "QScrollBar::handle:vertical:hover { background: #38bdf8; }"
"QScrollBar:horizontal { background: transparent; height: 10px; margin: 2px; }" "QScrollBar:horizontal { background: transparent; height: 10px; margin: 2px; }"
"QScrollBar::handle:horizontal { background: #2a3448; border-radius: 5px; min-width: 30px; }" "QScrollBar::handle:horizontal { background: #273449; border-radius: 5px; min-width: 30px; }"
"QScrollBar::handle:horizontal:hover { background: #3a455c; }" "QScrollBar::handle:horizontal:hover { background: #38bdf8; }"
"QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical," "QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical,"
"QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { height: 0; width: 0; }" "QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal { height: 0; width: 0; }"
"QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical," "QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical,"
"QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { background: transparent; }" "QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { background: transparent; }"
// ---- Status bar ---- // ---- Status bar ----
"QStatusBar {" "QStatusBar {"
" background: #0f1219;" " background: #1e293b;"
" color: #7a8299;" " color: #94a3b8;"
" border-top: 1px solid #1d2432;" " border-top: 1px solid #232c3f;"
" font-size: 12px;" " font-size: 12px;"
"}" "}"
// ---- Splitter ---- // ---- Splitter ----
"QSplitter::handle { background: transparent; }" "QSplitter::handle { background: transparent; }"
// ---- Tooltips ---- // ---- Tooltips ----
"QToolTip {" "QToolTip {"
" background: #1c2434;" " background: #273449;"
" color: #e8edf9;" " color: #e2e8f0;"
" border: 1px solid #2a3448;" " border: 1px solid #303b4e;"
" border-radius: 6px;" " border-radius: 8px;"
" padding: 4px 8px;" " padding: 4px 8px;"
"}"); "}");
} }
@@ -588,22 +640,9 @@ void MainWindow::notifyUpdatesAvailable(int count) {
} }
void MainWindow::setupMenuBar() { void MainWindow::setupMenuBar() {
// The menu bar and its menus are styled by the window stylesheet
// (appStyleSheet), which also covers the tray menu.
QMenuBar* menuBar = this->menuBar(); QMenuBar* menuBar = this->menuBar();
menuBar->setStyleSheet(
"QMenuBar { background: #0d1017; color: #c8d3f5; padding: 2px 8px; }"
"QMenuBar::item { padding: 6px 10px; border-radius: 6px; background: transparent; }"
"QMenuBar::item:selected { background: #232b3a; }"
"QMenu {"
" background: #141927;"
" color: #dbe2f0;"
" border: 1px solid #2a3448;"
" border-radius: 8px;"
" padding: 6px;"
"}"
"QMenu::item { padding: 7px 24px 7px 14px; border-radius: 6px; }"
"QMenu::item:selected { background: #7aa2f7; color: #0d1017; }"
"QMenu::separator { height: 1px; background: #2a3448; margin: 6px 8px; }"
);
auto goTo = [this](int navId) { auto goTo = [this](int navId) {
if (QAbstractButton* button = m_navGroup->button(navId)) button->click(); if (QAbstractButton* button = m_navGroup->button(navId)) button->click();