style(ui): give the interface a clearer visual hierarchy

Cards now read as raised surfaces with a hairline border, the four dashboard
metrics carry a coloured edge, the sidebar is split into named sections and
shows the installed version, and the two most used commands sit in the header
so they are reachable from every page. An empty listing explains itself
instead of showing a bare table header, and the sidebar highlights the updates
entry with the pending count.

Generated with Codebuff 🤖
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
BlackAngelTV committed 2026-09-12 22:24:03 +02:00
1 parent b1ad9c619a
commit 28a2155d3e
2 files changed
+134 -14

No files matched your search

+10 -1
View File
@@ -202,6 +202,9 @@ private:
void updateStatusBar();
void refreshDashboard();
void refreshRecentActivity();
// Mirrors the pending update count on the sidebar entry, so the page that
// needs attention is visible from wherever the user is.
void setUpdatesBadge(int count);
void refreshPluginsTable();
void updatePackageInfo(const PackageInfo& pkg);
std::string richDetails(const PackageInfo& pkg);
@@ -233,12 +236,15 @@ private:
void setupShortcuts();
void notifyUpdatesAvailable(int count);
QFrame* makeCard();
QFrame* makeStatCard(const QString& iconName, const QString& title, QLabel** valueOut);
QFrame* makeStatCard(const QString& iconName, const QString& title,
const QString& accent, QLabel** valueOut);
// Sidebar
QFrame* m_sidebar = nullptr;
QButtonGroup* m_navGroup = nullptr;
QPushButton* m_refreshButton = nullptr;
QPushButton* m_navUpdatesButton = nullptr;
QLabel* m_versionLabel = nullptr;
// Header
QWidget* m_headerWidget = nullptr;
@@ -271,6 +277,8 @@ private:
// of the window while any install/search runs.
QProgressBar* m_installProgressBar = nullptr;
QTableWidget* m_packageTable = nullptr;
// Listing + empty-state hint, swapped depending on the row count.
QStackedWidget* m_packageTableStack = nullptr;
QLabel* m_packageName = nullptr;
QLabel* m_packageVersion = nullptr;
QLabel* m_packageRepo = nullptr;
@@ -299,6 +307,7 @@ private:
// Cleanup page
QTableWidget* m_cleanupTable = nullptr;
QStackedWidget* m_cleanupTableStack = nullptr;
QLabel* m_cleanupCount = nullptr;
QPushButton* m_cleanupRemoveOrphansButton = nullptr;
QPushButton* m_cleanupRemoveSelectionButton = nullptr;