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
+13
-10
@@ -62,7 +62,7 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
|
||||
filterRow->addWidget(m_filterBar, 1);
|
||||
|
||||
QLabel* filterHint = new QLabel("Filtre local, instantané");
|
||||
filterHint->setStyleSheet("font-size: 12px; color: #7a8299;");
|
||||
filterHint->setStyleSheet("font-size: 12px; color: #64748b;");
|
||||
filterRow->addWidget(filterHint);
|
||||
|
||||
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->setWordWrap(true);
|
||||
// Serif like the site's package headings.
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
QHBoxLayout* metaRow = new QHBoxLayout();
|
||||
@@ -178,8 +181,8 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
|
||||
auto makeMetaBadge = [](QLabel** out) {
|
||||
QLabel* label = new QLabel("—");
|
||||
label->setStyleSheet(
|
||||
"background: #1c2434; color: #7a8299; border-radius: 10px;"
|
||||
"padding: 3px 12px; font-size: 12px;");
|
||||
"background: #273449; color: #94a3b8; border: 1px solid #303b4e;"
|
||||
"border-radius: 999px; padding: 3px 12px; font-size: 12px;");
|
||||
*out = label;
|
||||
return label;
|
||||
};
|
||||
@@ -192,14 +195,14 @@ BrowsePage::BrowsePage(AppCore* core, QWidget* parent) : Page(core, parent) {
|
||||
QFrame* separator = new QFrame();
|
||||
separator->setFrameShape(QFrame::HLine);
|
||||
separator->setStyleSheet(
|
||||
"color: #232b3a; background: #232b3a; max-height: 1px; border: none;");
|
||||
"color: #303b4e; background: #303b4e; max-height: 1px; border: none;");
|
||||
detailsLayout->addWidget(separator);
|
||||
|
||||
m_pkgDescription = new QLabel("");
|
||||
m_pkgDescription->setWordWrap(true);
|
||||
m_pkgDescription->setAlignment(Qt::AlignTop | Qt::AlignLeft);
|
||||
m_pkgDescription->setStyleSheet(
|
||||
"font-size: 14px; color: #c8d3f5; background: transparent;");
|
||||
"font-size: 14px; color: #94a3b8; background: transparent;");
|
||||
detailsLayout->addWidget(m_pkgDescription, 1);
|
||||
|
||||
detailsLayout->addStretch();
|
||||
@@ -401,15 +404,15 @@ void BrowsePage::addRow(int row, const PackageInfo& pkg) {
|
||||
|
||||
QTableWidgetItem* providerItem =
|
||||
new QTableWidgetItem(ui::providersLabel(core()->plugins(), pkg));
|
||||
providerItem->setForeground(QColor("#7a8299"));
|
||||
providerItem->setForeground(QColor("#94a3b8"));
|
||||
m_table->setItem(row, 3, providerItem);
|
||||
|
||||
QTableWidgetItem* statusItem = new QTableWidgetItem(ui::packageStatusText(pkg));
|
||||
if (pkg.installed && pkg.updateAvailable) {
|
||||
statusItem->setForeground(QColor("#e0af68"));
|
||||
statusItem->setForeground(QColor("#fbbf24"));
|
||||
statusItem->setIcon(ui::icon("arrow-up"));
|
||||
} else if (pkg.installed) {
|
||||
statusItem->setForeground(QColor("#3fb950"));
|
||||
statusItem->setForeground(QColor("#34d399"));
|
||||
statusItem->setIcon(ui::icon("check"));
|
||||
} else {
|
||||
statusItem->setIcon(ui::icon("package"));
|
||||
|
||||
Reference in new issue
Block a user