aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/widgets
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-08-31 14:58:54 +0100
committerGitHub <noreply@github.com>2023-08-31 14:58:54 +0100
commit25ce11d85d1aa9060e9df335a63f3de5e61c7f6b (patch)
treee273257fef10a5dac301f8db5f2fcfd70f57c72f /launcher/ui/widgets
parentb83fdbd1b752acdf555fb90d397ff61ddb896f2c (diff)
parent8c607ae7348206c29a8a8ce5e2db421138bd89ff (diff)
downloadPrismLauncher-25ce11d85d1aa9060e9df335a63f3de5e61c7f6b.tar.gz
PrismLauncher-25ce11d85d1aa9060e9df335a63f3de5e61c7f6b.tar.bz2
PrismLauncher-25ce11d85d1aa9060e9df335a63f3de5e61c7f6b.zip
Merge pull request #1539 from Trial97/refactor_modpack_ux
Improvements to modpack UX
Diffstat (limited to 'launcher/ui/widgets')
-rw-r--r--launcher/ui/widgets/ProjectItem.cpp2
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