Fixed controller UI being cut off at the bottom

This commit is contained in:
spectranator 2024-05-06 01:12:46 +02:00
parent 37e53d50bb
commit b242ac022c
2 changed files with 3059 additions and 3023 deletions

View file

@ -38,6 +38,7 @@ Following are the changes made since forking from Yuzu:
- Added option to synchronize CPU clock to render speed limit - Added option to synchronize CPU clock to render speed limit
- Added option to launch home menu from Switch firmware - Added option to launch home menu from Switch firmware
- Fixed crash when switching away from null graphics per-game - Fixed crash when switching away from null graphics per-game
- Fixed controller UI being cut off at the bottom
- Minor improvements and additions - Minor improvements and additions
## Development ## Development

View file

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>780</width> <width>1098</width>
<height>487</height> <height>696</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -215,6 +215,21 @@
</item> </item>
</layout> </layout>
</item> </item>
<item>
<widget class="QScrollArea" name="scrollArea">
<property name="widgetResizable">
<bool>true</bool>
</property>
<widget class="QWidget" name="scrollAreaWidgetContents_2">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1080</width>
<height>673</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_6">
<item> <item>
<widget class="QFrame" name="bottom"> <widget class="QFrame" name="bottom">
<property name="sizePolicy"> <property name="sizePolicy">
@ -355,7 +370,7 @@
<widget class="QPushButton" name="buttonLStickUp"> <widget class="QPushButton" name="buttonLStickUp">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -425,7 +440,7 @@
<widget class="QPushButton" name="buttonLStickLeft"> <widget class="QPushButton" name="buttonLStickLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -474,7 +489,7 @@
<widget class="QPushButton" name="buttonLStickRight"> <widget class="QPushButton" name="buttonLStickRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -556,7 +571,7 @@
<widget class="QPushButton" name="buttonLStickDown"> <widget class="QPushButton" name="buttonLStickDown">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -626,7 +641,7 @@
<widget class="QPushButton" name="buttonLStick"> <widget class="QPushButton" name="buttonLStick">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -675,7 +690,7 @@
<widget class="QPushButton" name="buttonLStickMod"> <widget class="QPushButton" name="buttonLStickMod">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -828,6 +843,9 @@
<property name="orientation"> <property name="orientation">
<enum>Qt::Vertical</enum> <enum>Qt::Vertical</enum>
</property> </property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>20</width> <width>20</width>
@ -928,7 +946,7 @@
<widget class="QPushButton" name="buttonDpadUp"> <widget class="QPushButton" name="buttonDpadUp">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -998,7 +1016,7 @@
<widget class="QPushButton" name="buttonDpadLeft"> <widget class="QPushButton" name="buttonDpadLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1047,7 +1065,7 @@
<widget class="QPushButton" name="buttonDpadRight"> <widget class="QPushButton" name="buttonDpadRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1129,7 +1147,7 @@
<widget class="QPushButton" name="buttonDpadDown"> <widget class="QPushButton" name="buttonDpadDown">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1187,7 +1205,7 @@
</item> </item>
<item> <item>
<widget class="QWidget" name="bottomMiddle" native="true"> <widget class="QWidget" name="bottomMiddle" native="true">
<layout class="QVBoxLayout" stretch="0,0,0"> <layout class="QVBoxLayout" name="_3" stretch="0,0,0">
<property name="spacing"> <property name="spacing">
<number>6</number> <number>6</number>
</property> </property>
@ -1254,7 +1272,7 @@
<widget class="QPushButton" name="buttonSLLeft"> <widget class="QPushButton" name="buttonSLLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1303,7 +1321,7 @@
<widget class="QPushButton" name="buttonSRLeft"> <widget class="QPushButton" name="buttonSRLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1407,7 +1425,7 @@
<widget class="QPushButton" name="buttonL"> <widget class="QPushButton" name="buttonL">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1462,7 +1480,7 @@
<widget class="QPushButton" name="buttonZL"> <widget class="QPushButton" name="buttonZL">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1582,7 +1600,7 @@
<widget class="QPushButton" name="buttonMinus"> <widget class="QPushButton" name="buttonMinus">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1631,7 +1649,7 @@
<widget class="QPushButton" name="buttonScreenshot"> <widget class="QPushButton" name="buttonScreenshot">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1701,7 +1719,7 @@
<widget class="QPushButton" name="buttonPlus"> <widget class="QPushButton" name="buttonPlus">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1750,7 +1768,7 @@
<widget class="QPushButton" name="buttonHome"> <widget class="QPushButton" name="buttonHome">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1854,7 +1872,7 @@
<widget class="QPushButton" name="buttonR"> <widget class="QPushButton" name="buttonR">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -1909,7 +1927,7 @@
<widget class="QPushButton" name="buttonZR"> <widget class="QPushButton" name="buttonZR">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2029,7 +2047,7 @@
<widget class="QPushButton" name="buttonSLRight"> <widget class="QPushButton" name="buttonSLRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2078,7 +2096,7 @@
<widget class="QPushButton" name="buttonSRRight"> <widget class="QPushButton" name="buttonSRRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2114,7 +2132,6 @@
</property> </property>
<property name="font"> <property name="font">
<font> <font>
<weight>75</weight>
<bold>true</bold> <bold>true</bold>
</font> </font>
</property> </property>
@ -2186,7 +2203,7 @@
<widget class="QPushButton" name="buttonMotionLeft"> <widget class="QPushButton" name="buttonMotionLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2235,7 +2252,7 @@
<widget class="QPushButton" name="buttonMotionRight"> <widget class="QPushButton" name="buttonMotionRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2384,7 +2401,7 @@
<widget class="QPushButton" name="buttonX"> <widget class="QPushButton" name="buttonX">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2454,7 +2471,7 @@
<widget class="QPushButton" name="buttonY"> <widget class="QPushButton" name="buttonY">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2503,7 +2520,7 @@
<widget class="QPushButton" name="buttonA"> <widget class="QPushButton" name="buttonA">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2585,7 +2602,7 @@
<widget class="QPushButton" name="buttonB"> <widget class="QPushButton" name="buttonB">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2625,6 +2642,22 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item> <item>
<spacer name="verticalSpacerBottomRight"> <spacer name="verticalSpacerBottomRight">
<property name="orientation"> <property name="orientation">
@ -2739,7 +2772,7 @@
<widget class="QPushButton" name="buttonRStickUp"> <widget class="QPushButton" name="buttonRStickUp">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2809,7 +2842,7 @@
<widget class="QPushButton" name="buttonRStickLeft"> <widget class="QPushButton" name="buttonRStickLeft">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2858,7 +2891,7 @@
<widget class="QPushButton" name="buttonRStickRight"> <widget class="QPushButton" name="buttonRStickRight">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -2940,7 +2973,7 @@
<widget class="QPushButton" name="buttonRStickDown"> <widget class="QPushButton" name="buttonRStickDown">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -3010,7 +3043,7 @@
<widget class="QPushButton" name="buttonRStick"> <widget class="QPushButton" name="buttonRStick">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -3059,7 +3092,7 @@
<widget class="QPushButton" name="buttonRStickMod"> <widget class="QPushButton" name="buttonRStickMod">
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>68</width> <width>70</width>
<height>0</height> <height>0</height>
</size> </size>
</property> </property>
@ -3305,6 +3338,10 @@
</widget> </widget>
</item> </item>
</layout> </layout>
</widget>
</widget>
</item>
</layout>
</item> </item>
</layout> </layout>
</widget> </widget>
@ -3316,8 +3353,6 @@
<container>1</container> <container>1</container>
</customwidget> </customwidget>
</customwidgets> </customwidgets>
<resources> <resources/>
<include location="../../../dist/icons/controller/controller.qrc"/>
</resources>
<connections/> <connections/>
</ui> </ui>