feat(ui): use SVG icons and open package details from dashboard
Adopt the embedded SVG icon set across the interface: sidebar links, action buttons, stat cards, search/filter fields, table status cells and badges, replacing the inline emoji glyphs. Inline emoji inside status-bar and history text are dropped since an SVG cannot be embedded mid-sentence. Also let a click on a package in the dashboard's recent activity open its details on the Installed page with remove/update actions available, by auto-selecting the package after the list loads. 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2 files changed
+170
-70
No files matched your search
@@ -21,6 +21,7 @@ class QStackedWidget;
|
||||
class QTableWidget;
|
||||
class QTextEdit;
|
||||
class QListWidget;
|
||||
class QListWidgetItem;
|
||||
class QButtonGroup;
|
||||
class QFrame;
|
||||
|
||||
@@ -88,6 +89,7 @@ private slots:
|
||||
void onRefreshLogs();
|
||||
void onHistoryFilterChanged();
|
||||
void onInstalledFilterChanged(const QString& text);
|
||||
void onRecentActivityClicked(QListWidgetItem* item);
|
||||
|
||||
private:
|
||||
enum BrowseMode { ModeSearch, ModeInstalled, ModeUpdates };
|
||||
@@ -117,7 +119,7 @@ private:
|
||||
void refreshHistoryTable();
|
||||
void loadLogs();
|
||||
QFrame* makeCard();
|
||||
QFrame* makeStatCard(const QString& icon, const QString& title, QLabel** valueOut);
|
||||
QFrame* makeStatCard(const QString& iconName, const QString& title, QLabel** valueOut);
|
||||
|
||||
// Sidebar
|
||||
QFrame* m_sidebar = nullptr;
|
||||
@@ -156,7 +158,7 @@ private:
|
||||
QLabel* m_packageVersion = nullptr;
|
||||
QLabel* m_packageRepo = nullptr;
|
||||
QLabel* m_packageSize = nullptr;
|
||||
QLabel* m_packageUpdateBadge = nullptr;
|
||||
QWidget* m_packageUpdateBadge = nullptr;
|
||||
QLabel* m_packageDescription = nullptr;
|
||||
|
||||
// History page
|
||||
@@ -175,4 +177,5 @@ private:
|
||||
std::vector<PackageInfo> m_currentResults;
|
||||
std::vector<PackageInfo> m_installedPackages;
|
||||
PackageInfo m_selectedPackage;
|
||||
std::string m_pendingSelect; // package to auto-select after the installed list loads
|
||||
};
|
||||
Reference in new issue
Block a user