Visual cleanup

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2025-03-27 01:08:26 +00:00
parent 1ce343fb97
commit 7e5178cf81
No known key found for this signature in database
GPG key ID: 5E39D70B4C93C38E
5 changed files with 210 additions and 111 deletions

View file

@ -20,9 +20,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>-270</y> <y>0</y>
<width>807</width> <width>804</width>
<height>870</height> <height>832</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
@ -84,19 +84,6 @@
<string>Meta&amp;data Server</string> <string>Meta&amp;data Server</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5">
<item>
<widget class="QLabel" name="metaURLLabel">
<property name="text">
<string>Base URL</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item> <item>
<widget class="QLineEdit" name="metaURL"> <widget class="QLineEdit" name="metaURL">
<property name="placeholderText"> <property name="placeholderText">
@ -202,6 +189,9 @@
</item> </item>
<item> <item>
<spacer name="verticalSpacer"> <spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType"> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum> <enum>QSizePolicy::Fixed</enum>
</property> </property>
@ -257,6 +247,9 @@
</item> </item>
<item> <item>
<spacer name="verticalSpacer_4"> <spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType"> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum> <enum>QSizePolicy::Fixed</enum>
</property> </property>
@ -309,6 +302,9 @@
</item> </item>
<item> <item>
<spacer name="verticalSpacer_3"> <spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType"> <property name="sizeType">
<enum>QSizePolicy::Fixed</enum> <enum>QSizePolicy::Fixed</enum>
</property> </property>

View file

@ -51,42 +51,71 @@
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="labelPreLaunchCmd"> <widget class="QLabel" name="labelPreLaunchCmd">
<property name="text"> <property name="text">
<string>&amp;Pre-launch command:</string> <string>&amp;Pre-launch Command</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>preLaunchCmdTextBox</cstring> <cstring>preLaunchCmdTextBox</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="5" column="0">
<widget class="QLineEdit" name="wrapperCmdTextBox"/> <spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item> </item>
<item row="0" column="1"> <item row="1" column="0">
<widget class="QLineEdit" name="preLaunchCmdTextBox"/> <widget class="QLineEdit" name="preLaunchCmdTextBox"/>
</item> </item>
<item row="2" column="0"> <item row="4" column="0">
<widget class="QLineEdit" name="wrapperCmdTextBox"/>
</item>
<item row="6" column="0">
<widget class="QLabel" name="labelPostExitCmd"> <widget class="QLabel" name="labelPostExitCmd">
<property name="text"> <property name="text">
<string>P&amp;ost-exit command:</string> <string>P&amp;ost-exit Command</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>labelPostExitCmd</cstring> <cstring>labelPostExitCmd</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="7" column="0">
<widget class="QLineEdit" name="postExitCmdTextBox"/> <widget class="QLineEdit" name="postExitCmdTextBox"/>
</item> </item>
<item row="1" column="0"> <item row="3" column="0">
<widget class="QLabel" name="labelWrapperCmd"> <widget class="QLabel" name="labelWrapperCmd">
<property name="text"> <property name="text">
<string>&amp;Wrapper command:</string> <string>&amp;Wrapper Command</string>
</property> </property>
<property name="buddy"> <property name="buddy">
<cstring>wrapperCmdTextBox</cstring> <cstring>wrapperCmdTextBox</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>

View file

@ -202,6 +202,22 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QLabel" name="labelMaxMem"> <widget class="QLabel" name="labelMaxMem">
<property name="text"> <property name="text">
@ -240,6 +256,22 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QLabel" name="label_11"> <widget class="QLabel" name="label_11">
<property name="text"> <property name="text">
@ -278,10 +310,26 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QLabel" name="labelMaxMemNotice"> <widget class="QLabel" name="labelMaxMemNotice">
<property name="text"> <property name="text">
<string>TextLabel</string> <string>Memory Notice</string>
</property> </property>
</widget> </widget>
</item> </item>

View file

@ -137,7 +137,6 @@ void MinecraftSettingsWidget::loadSettings()
// Game Window // Game Window
m_ui->windowSizeGroupBox->setChecked(m_instance == nullptr || settings->get("OverrideWindow").toBool() || m_ui->windowSizeGroupBox->setChecked(m_instance == nullptr || settings->get("OverrideWindow").toBool() ||
settings->get("OverrideMiscellaneous").toBool()); settings->get("OverrideMiscellaneous").toBool());
m_ui->windowSizeGroupBox->setChecked(settings->get("OverrideWindow").toBool());
m_ui->maximizedCheckBox->setChecked(settings->get("LaunchMaximized").toBool()); m_ui->maximizedCheckBox->setChecked(settings->get("LaunchMaximized").toBool());
m_ui->windowWidthSpinBox->setValue(settings->get("MinecraftWinWidth").toInt()); m_ui->windowWidthSpinBox->setValue(settings->get("MinecraftWinWidth").toInt());
m_ui->windowHeightSpinBox->setValue(settings->get("MinecraftWinHeight").toInt()); m_ui->windowHeightSpinBox->setValue(settings->get("MinecraftWinHeight").toInt());

View file

@ -58,9 +58,9 @@
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>-130</y>
<width>603</width> <width>603</width>
<height>744</height> <height>812</height>
</rect> </rect>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_5"> <layout class="QVBoxLayout" name="verticalLayout_5">
@ -200,17 +200,33 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<spacer name="verticalSpacer_3">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>6</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<widget class="QCheckBox" name="closeAfterLaunchCheck"> <widget class="QCheckBox" name="closeAfterLaunchCheck">
<property name="text"> <property name="text">
<string>Close the launcher after the game window opens</string> <string>When the game window opens, hide the launcher</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="quitAfterGameStopCheck"> <widget class="QCheckBox" name="quitAfterGameStopCheck">
<property name="text"> <property name="text">
<string>Quit the launcher after the game window closes</string> <string>When the game window closes, quit the launcher</string>
</property> </property>
</widget> </widget>
</item> </item>
@ -235,97 +251,24 @@
<item> <item>
<widget class="QCheckBox" name="showConsoleCheck"> <widget class="QCheckBox" name="showConsoleCheck">
<property name="text"> <property name="text">
<string>Show console window while the game is running</string> <string>When the game is launched, show the console window</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="autoCloseConsoleCheck">
<property name="text">
<string>Automatically close console window when the game quits</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QCheckBox" name="showConsoleErrorCheck"> <widget class="QCheckBox" name="showConsoleErrorCheck">
<property name="text"> <property name="text">
<string>Show console window when the game crashes</string> <string>When the game crashes, show the console window</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout>
</widget>
</item>
<item> <item>
<widget class="QGroupBox" name="instanceAccountGroupBox"> <widget class="QCheckBox" name="autoCloseConsoleCheck">
<property name="title">
<string>&amp;Override Default Account</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_15">
<item>
<widget class="QLabel" name="instanceAccountNameLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text"> <property name="text">
<string>Account</string> <string>When the game quits, hide the console window</string>
</property> </property>
</widget> </widget>
</item> </item>
<item>
<widget class="QComboBox" name="instanceAccountSelector">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="serverJoinGroupBox">
<property name="title">
<string>Enable &amp;Auto-join</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0">
<widget class="QRadioButton" name="worldJoinButton">
<property name="text">
<string>Singleplayer world</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QRadioButton" name="serverJoinAddressButton">
<property name="text">
<string>Server address</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QLineEdit" name="serverJoinAddress"/>
</item>
<item row="2" column="2">
<widget class="QComboBox" name="worldsCb"/>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -375,6 +318,93 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<widget class="QGroupBox" name="instanceAccountGroupBox">
<property name="title">
<string>Override &amp;Default Account</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_15">
<item>
<widget class="QLabel" name="instanceAccountNameLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Account</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="instanceAccountSelector">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="serverJoinGroupBox">
<property name="title">
<string>Enable Auto-&amp;join</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QRadioButton" name="serverJoinAddressButton">
<property name="text">
<string>Server address</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="serverJoinAddress">
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item>
<widget class="QRadioButton" name="worldJoinButton">
<property name="text">
<string>Singleplayer world</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="worldsCb">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item> <item>
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
<property name="orientation"> <property name="orientation">
@ -682,7 +712,6 @@
<tabstop>showGameTimeWithoutDays</tabstop> <tabstop>showGameTimeWithoutDays</tabstop>
<tabstop>showConsoleCheck</tabstop> <tabstop>showConsoleCheck</tabstop>
<tabstop>autoCloseConsoleCheck</tabstop> <tabstop>autoCloseConsoleCheck</tabstop>
<tabstop>showConsoleErrorCheck</tabstop>
<tabstop>javaScrollArea</tabstop> <tabstop>javaScrollArea</tabstop>
<tabstop>scrollArea_2</tabstop> <tabstop>scrollArea_2</tabstop>
<tabstop>onlineFixes</tabstop> <tabstop>onlineFixes</tabstop>
@ -694,9 +723,7 @@
<tabstop>useDiscreteGpuCheck</tabstop> <tabstop>useDiscreteGpuCheck</tabstop>
<tabstop>useZink</tabstop> <tabstop>useZink</tabstop>
<tabstop>serverJoinAddressButton</tabstop> <tabstop>serverJoinAddressButton</tabstop>
<tabstop>serverJoinAddress</tabstop>
<tabstop>worldJoinButton</tabstop> <tabstop>worldJoinButton</tabstop>
<tabstop>worldsCb</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>