diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-15 13:20:08 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-06-15 13:20:08 +0300 |
commit | cb52be433d2a55338df2205d2cebbf3e4d2f5eb5 (patch) | |
tree | c352d323498c0aadc7c14e934ae0b72ad05aa636 /launcher/ui/widgets | |
parent | 1f2b0ad698a892f0d1c163d3181655205636a8a0 (diff) | |
download | PrismLauncher-cb52be433d2a55338df2205d2cebbf3e4d2f5eb5.tar.gz PrismLauncher-cb52be433d2a55338df2205d2cebbf3e4d2f5eb5.tar.bz2 PrismLauncher-cb52be433d2a55338df2205d2cebbf3e4d2f5eb5.zip |
Made the installed mods more apparent
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r-- | launcher/ui/widgets/ProjectItem.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp index e8349c10..0b00a9bd 100644 --- a/launcher/ui/widgets/ProjectItem.cpp +++ b/launcher/ui/widgets/ProjectItem.cpp @@ -65,9 +65,15 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o font.setUnderline(true); } if (index.data(UserDataTypes::INSTALLED).toBool()) { + auto rect = opt.rect; + rect.setX(rect.x() + 1); + rect.setY(rect.y() + 1); + rect.setHeight(rect.height() - 2); + rect.setWidth(rect.width() - 2); // Set nice font font.setItalic(true); font.setOverline(true); + painter->drawRect(rect); } font.setPointSize(font.pointSize() + 2); |