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
@@ -24,7 +24,7 @@ HistoryPage::HistoryPage(AppCore* core, QWidget* parent) : Page(core, parent) {
|
||||
filterRow->setSpacing(10);
|
||||
|
||||
QLabel* filterLabel = new QLabel("Filtrer :");
|
||||
filterLabel->setStyleSheet("font-size: 13px; color: #7a8299;");
|
||||
filterLabel->setStyleSheet("font-size: 13px; color: #94a3b8;");
|
||||
filterRow->addWidget(filterLabel);
|
||||
|
||||
m_filter = new QComboBox();
|
||||
@@ -95,15 +95,16 @@ void HistoryPage::refreshTable() {
|
||||
for (int i = 0; i < static_cast<int>(entries.size()); ++i) {
|
||||
const auto& entry = entries[i];
|
||||
|
||||
// The site's status colours, one per action kind.
|
||||
QString actionText, actionColor;
|
||||
if (entry.action == "install") {
|
||||
actionText = "Installation"; actionColor = "#3fb950";
|
||||
actionText = "Installation"; actionColor = "#34d399";
|
||||
} else if (entry.action == "remove") {
|
||||
actionText = "Suppression"; actionColor = "#f7768e";
|
||||
actionText = "Suppression"; actionColor = "#f87171";
|
||||
} else if (entry.action == "cleanup") {
|
||||
actionText = "Nettoyage"; actionColor = "#56b6c2";
|
||||
actionText = "Nettoyage"; actionColor = "#7dd3fc";
|
||||
} else {
|
||||
actionText = "Mise à jour"; actionColor = "#e0af68";
|
||||
actionText = "Mise à jour"; actionColor = "#fbbf24";
|
||||
}
|
||||
|
||||
m_table->setItem(i, 0,
|
||||
|
||||
Reference in new issue
Block a user