diff options
author | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-18 20:03:02 +0300 |
---|---|---|
committer | Trial97 <alexandru.tripon97@gmail.com> | 2023-08-18 20:03:02 +0300 |
commit | 44ff247f5f71ebeb95423ca37bf82d9913073522 (patch) | |
tree | 9e937d82f6c5daa098d4ea9080ba68ae30f04d4f /launcher/ui/widgets | |
parent | e88418ab7f1a2979ccb1ef92b4cd7da87f5cd6c5 (diff) | |
download | PrismLauncher-44ff247f5f71ebeb95423ca37bf82d9913073522.tar.gz PrismLauncher-44ff247f5f71ebeb95423ca37bf82d9913073522.tar.bz2 PrismLauncher-44ff247f5f71ebeb95423ca37bf82d9913073522.zip |
feat:refactored modpack ux
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r-- | launcher/ui/widgets/ProjectItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/ui/widgets/ProjectItem.cpp b/launcher/ui/widgets/ProjectItem.cpp index 1481c1b6..60b92b28 100644 --- a/launcher/ui/widgets/ProjectItem.cpp +++ b/launcher/ui/widgets/ProjectItem.cpp @@ -34,8 +34,8 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o icon_width = icon_size.width(); icon_height = icon_size.height(); - icon_x_margin = (rect.height() - icon_width) / 2; icon_y_margin = (rect.height() - icon_height) / 2; + icon_x_margin = icon_y_margin; // use same margins for consistency } // Centralize icon with a margin to separate from the other elements |