diff options
Diffstat (limited to 'launcher/dialogs')
-rw-r--r-- | launcher/dialogs/AboutDialog.cpp | 6 | ||||
-rw-r--r-- | launcher/dialogs/AboutDialog.ui | 69 |
2 files changed, 44 insertions, 31 deletions
diff --git a/launcher/dialogs/AboutDialog.cpp b/launcher/dialogs/AboutDialog.cpp index a4d30c3c..0c3f07db 100644 --- a/launcher/dialogs/AboutDialog.cpp +++ b/launcher/dialogs/AboutDialog.cpp @@ -113,6 +113,12 @@ AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent), ui(new Ui::AboutDia "However, it should be abundantly clear that the project is a fork <b>without</b> implying that you have our blessing.</p>" )); + QString urlText("<html><head/><body><p><a href=\"%1\">%1</a></p></body></html>"); + ui->urlLabel->setText(urlText.arg(BuildConfig.LAUNCHER_GIT)); + + QString copyText("© 2012-2021 %1"); + ui->copyLabel->setText(copyText.arg(BuildConfig.LAUNCHER_COPYRIGHT)); + connect(ui->closeButton, SIGNAL(clicked()), SLOT(close())); connect(ui->aboutQt, &QPushButton::clicked, &QApplication::aboutQt); diff --git a/launcher/dialogs/AboutDialog.ui b/launcher/dialogs/AboutDialog.ui index 6dcc6ff4..422e877b 100644 --- a/launcher/dialogs/AboutDialog.ui +++ b/launcher/dialogs/AboutDialog.ui @@ -98,19 +98,30 @@ </attribute> <layout class="QVBoxLayout" name="verticalLayout_5"> <item> - <widget class="QLabel" name="versionLabel"> + <widget class="QLabel" name="aboutLabel"> + <property name="enabled"> + <bool>true</bool> + </property> <property name="text"> - <string>Version:</string> + <string><html><head/><body><p>A custom launcher that makes managing Minecraft easier by allowing you to have multiple instances of Minecraft at once.</p></body></html></string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> + <property name="wordWrap"> + <bool>true</bool> + </property> </widget> </item> <item> - <widget class="QLabel" name="platformLabel"> + <widget class="QLabel" name="urlLabel"> + <property name="font"> + <font> + <pointsize>10</pointsize> + </font> + </property> <property name="text"> - <string>Platform:</string> + <string notr="true">GIT URL</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> @@ -118,9 +129,15 @@ </widget> </item> <item> - <widget class="QLabel" name="buildNumLabel"> + <widget class="QLabel" name="copyLabel"> + <property name="font"> + <font> + <pointsize>8</pointsize> + <kerning>true</kerning> + </font> + </property> <property name="text"> - <string>Build Number:</string> + <string notr="true">COPYRIGHT</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> @@ -128,9 +145,16 @@ </widget> </item> <item> - <widget class="QLabel" name="channelLabel"> + <widget class="Line" name="line"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> + <item> + <widget class="QLabel" name="versionLabel"> <property name="text"> - <string>Channel:</string> + <string>Version:</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> @@ -138,31 +162,19 @@ </widget> </item> <item> - <widget class="QLabel" name="aboutLabel"> - <property name="enabled"> - <bool>true</bool> - </property> + <widget class="QLabel" name="platformLabel"> <property name="text"> - <string><html><head/><body><p>MultiMC is a custom launcher that makes managing Minecraft easier by allowing you to have multiple instances of Minecraft at once.</p></body></html></string> + <string>Platform:</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> </property> - <property name="wordWrap"> - <bool>true</bool> - </property> </widget> </item> <item> - <widget class="QLabel" name="copyLabel"> - <property name="font"> - <font> - <pointsize>8</pointsize> - <kerning>true</kerning> - </font> - </property> + <widget class="QLabel" name="buildNumLabel"> <property name="text"> - <string>© 2012-2021 MultiMC Contributors</string> + <string>Build Number:</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> @@ -170,14 +182,9 @@ </widget> </item> <item> - <widget class="QLabel" name="urlLabel"> - <property name="font"> - <font> - <pointsize>10</pointsize> - </font> - </property> + <widget class="QLabel" name="channelLabel"> <property name="text"> - <string notr="true"><html><head/><body><p><a href="https://github.com/MultiMC/MultiMC5">https://github.com/MultiMC/MultiMC5</a></p></body></html></string> + <string>Channel:</string> </property> <property name="alignment"> <set>Qt::AlignCenter</set> |