From bda1040151abe21998e6f03b1ef732ce72b600ec Mon Sep 17 00:00:00 2001 From: Toast Date: Thu, 5 Jun 2025 00:51:33 +0200 Subject: [PATCH] Qml/ModPage: add icon The icon will change depending on the type of mod that was installed Only if it was installed from GameBanana, otherwise it will show dma's logo or a generic one --- src/leek/qml/ModPage.qml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/leek/qml/ModPage.qml b/src/leek/qml/ModPage.qml index 1af9afc..0d1c9ea 100644 --- a/src/leek/qml/ModPage.qml +++ b/src/leek/qml/ModPage.qml @@ -31,12 +31,22 @@ Kirigami.Page { GridLayout { id: headerContents - ColumnLayout { - Controls.Label { - text: `Name: ${mod.name}` + RowLayout { + // Icon + Kirigami.Icon { + implicitHeight: Kirigami.Units.iconSizes.huge + implicitWidth: implicitHeight + source: "package-x-generic" } - Controls.Label { - text: `Author placeholder` + + // Name and author + ColumnLayout { + Controls.Label { + text: `Name: ${mod.name}` + } + Controls.Label { + text: `Author placeholder` + } } } }