From da36a5f8deade43d031ba70ea26d7db593d67eff Mon Sep 17 00:00:00 2001
From: jopejoe1 <34899572+jopejoe1@users.noreply.github.com>
Date: Mon, 21 Feb 2022 03:50:37 +1300
Subject: [PATCH] Update Technic layout to be more consistent with others
---
.../pages/modplatform/technic/TechnicPage.cpp | 12 +++-
.../pages/modplatform/technic/TechnicPage.ui | 61 +++++++------------
2 files changed, 32 insertions(+), 41 deletions(-)
diff --git a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp
index 67f6e52c..6bb9db22 100644
--- a/launcher/ui/pages/modplatform/technic/TechnicPage.cpp
+++ b/launcher/ui/pages/modplatform/technic/TechnicPage.cpp
@@ -1,4 +1,4 @@
-/* Copyright 2013-2021 MultiMC Contributors
+/* Copyright 2013-2022 MultiMC Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -11,6 +11,11 @@
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
+ *
+ * -----
+ *
+ * This source and all future changes to it are subject to the Microsoft Permissive License (MS-PL).
+ * Please see the COPYING.md file for more information.
*/
#include "TechnicPage.h"
@@ -187,8 +192,9 @@ void TechnicPage::metadataLoaded()
text += tr(" by ") + current.author;
}
- ui->frame->setModText(text);
- ui->frame->setModDescription(current.description);
+ text += "
";
+
+ ui->packDescription->setHtml(text + current.description);
if (!current.isSolder)
{
dialog->setSuggestedPack(current.name, new Technic::SingleZipPackInstallTask(current.url, current.minecraftVersion));
diff --git a/launcher/ui/pages/modplatform/technic/TechnicPage.ui b/launcher/ui/pages/modplatform/technic/TechnicPage.ui
index dde685d9..ab6b4255 100644
--- a/launcher/ui/pages/modplatform/technic/TechnicPage.ui
+++ b/launcher/ui/pages/modplatform/technic/TechnicPage.ui
@@ -44,51 +44,36 @@
-
-
-
- Qt::ScrollBarAlwaysOff
+
+
+ 0
-
- true
-
-
-
- 48
- 48
-
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- QFrame::StyledPanel
-
-
- QFrame::Raised
-
-
+
-
+
+
+ -
+
+
+ Qt::ScrollBarAlwaysOff
+
+
+ true
+
+
+
+ 48
+ 48
+
+
+
+
+
-
-
- MCModInfoFrame
- QFrame
- ui/widgets/MCModInfoFrame.h
- 1
-
-
searchEdit
searchButton
- packView