diff options
| author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-08 20:26:09 +0300 |
|---|---|---|
| committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-08 20:26:09 +0300 |
| commit | f96b135ef72a762220941681cf1b314a3b2db266 (patch) | |
| tree | 90f28be402becbf32835d176913d9d36f3c3d703 /launcher/ui/widgets | |
| parent | 7fb4c8358b9303358e47833bdf7e8fc8bcf5ab17 (diff) | |
| download | PrismLauncher-f96b135ef72a762220941681cf1b314a3b2db266.tar.gz PrismLauncher-f96b135ef72a762220941681cf1b314a3b2db266.tar.bz2 PrismLauncher-f96b135ef72a762220941681cf1b314a3b2db266.zip | |
Higlight installed mods
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/widgets')
| -rw-r--r-- | launcher/ui/widgets/ProjectItem.cpp | 5 | ||||
| -rw-r--r-- | launcher/ui/widgets/ProjectItem.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp index d1ff9dbc..e8349c10 100644 --- a/launcher/ui/widgets/ProjectItem.cpp +++ b/launcher/ui/widgets/ProjectItem.cpp @@ -64,6 +64,11 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o font.setBold(true); font.setUnderline(true); } + if (index.data(UserDataTypes::INSTALLED).toBool()) { + // Set nice font + font.setItalic(true); + font.setOverline(true); + } font.setPointSize(font.pointSize() + 2); painter->setFont(font); diff --git a/launcher/ui/widgets/ProjectItem.h b/launcher/ui/widgets/ProjectItem.h index f668edf6..196055ea 100644 --- a/launcher/ui/widgets/ProjectItem.h +++ b/launcher/ui/widgets/ProjectItem.h @@ -6,7 +6,8 @@ enum UserDataTypes { TITLE = 257, // QString DESCRIPTION = 258, // QString - SELECTED = 259 // bool + SELECTED = 259, // bool + INSTALLED = 260 // bool }; /** This is an item delegate composed of: |
