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 launch home menu from Switch firmware
- Fixed crash when switching away from null graphics per-game
- Fixed controller UI being cut off at the bottom
- Minor improvements and additions
## Development

View file

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