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:
1 parent
5720c398ef
commit
ed58e87520
23 files changed
+208
-161
No files matched your search
@@ -116,7 +116,7 @@ DashboardPage::DashboardPage(AppCore* core, QWidget* parent) : Page(core, parent
|
||||
m_statUpdates->setText(QString::number(results.size()));
|
||||
m_statUpdates->setStyleSheet(results.empty()
|
||||
? QString()
|
||||
: QString("color: #e0af68;"));
|
||||
: QString("color: #fbbf24;"));
|
||||
}
|
||||
});
|
||||
connect(core, &AppCore::historyChanged, this, &DashboardPage::refresh);
|
||||
@@ -165,24 +165,26 @@ void DashboardPage::refreshRecentActivity() {
|
||||
|
||||
QLabel* timestamp = new QLabel(QString::fromStdString(entry.timestamp));
|
||||
timestamp->setStyleSheet(
|
||||
"background: transparent; color: #5f6785;"
|
||||
"background: transparent; color: #64748b;"
|
||||
"font-family: monospace; font-size: 12px;");
|
||||
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;
|
||||
if (entry.action == "install") {
|
||||
actionText = "Installation"; actionBg = "#12301f"; actionFg = "#3fb950";
|
||||
actionText = "Installation"; actionBg = "#213d46"; actionFg = "#34d399";
|
||||
} else if (entry.action == "remove") {
|
||||
actionText = "Suppression"; actionBg = "#3a1a1a"; actionFg = "#f7768e";
|
||||
actionText = "Suppression"; actionBg = "#383241"; actionFg = "#f87171";
|
||||
} else if (entry.action == "cleanup") {
|
||||
actionText = "Nettoyage"; actionBg = "#12333a"; actionFg = "#56b6c2";
|
||||
actionText = "Nettoyage"; actionBg = "#213b52"; actionFg = "#7dd3fc";
|
||||
} else {
|
||||
actionText = "Mise à jour"; actionBg = "#3d2f0f"; actionFg = "#e0af68";
|
||||
actionText = "Mise à jour"; actionBg = "#393b38"; actionFg = "#fbbf24";
|
||||
}
|
||||
rowLayout->addWidget(ui::badge(actionText, actionBg, actionFg));
|
||||
|
||||
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->addStretch();
|
||||
|
||||
Reference in new issue
Block a user