Merge pull request #1539 from Trial97/refactor_modpack_ux

Improvements to modpack UX
This commit is contained in:
TheKodeToad
2023-08-31 14:58:54 +01:00
committed by GitHub
35 changed files with 718 additions and 177 deletions

View File

@ -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