From f4f6f6dfc5a8f4af0e79c96f3ac72433612f6015 Mon Sep 17 00:00:00 2001 From: Rayyan Ansari Date: Fri, 4 Mar 2022 17:52:49 +0000 Subject: InputConfig: change Group Box titles to Labels On GNOME, the Group Box's titles don't align with the text in the buttons. This commit removes the Group Box titles and instead uses Labels to fix this. --- .../qt_sdl/InputConfig/InputConfigDialog.ui | 1188 ++++++++++++-------- 1 file changed, 714 insertions(+), 474 deletions(-) (limited to 'src/frontend/qt_sdl') diff --git a/src/frontend/qt_sdl/InputConfig/InputConfigDialog.ui b/src/frontend/qt_sdl/InputConfig/InputConfigDialog.ui index 6f4bb5d..15cb683 100644 --- a/src/frontend/qt_sdl/InputConfig/InputConfigDialog.ui +++ b/src/frontend/qt_sdl/InputConfig/InputConfigDialog.ui @@ -6,8 +6,8 @@ 0 0 - 710 - 709 + 770 + 719 @@ -82,13 +82,128 @@ DS keypad - + 0 + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + Switch to Joystick mappings + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + + + + + + Qt::AlignCenter + + + + 3 + + + 3 + + + 3 + + + 3 + + + 3 + + + + + <html><head/><body><p><span style=" font-weight:600;">R</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + 76 + 0 + + + + + 68 + 16777215 + + + + min-width: 68px; + + + R + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + @@ -108,12 +223,12 @@ - L + Qt::AlignCenter - + 3 @@ -129,11 +244,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">L</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -157,32 +282,6 @@ - - - - - - - :/ds/ds_back.svg - - - false - - - - - - - - - - :/ds/ds_open.svg - - - false - - - @@ -250,7 +349,7 @@ - X + Qt::AlignCenter @@ -271,11 +370,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">X</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -320,7 +429,7 @@ - Y + Qt::AlignCenter @@ -341,11 +450,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Y</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -369,7 +488,7 @@ - A + Qt::AlignCenter @@ -390,11 +509,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">A</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -451,7 +580,7 @@ - B + Qt::AlignCenter @@ -472,11 +601,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">B</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -516,99 +655,234 @@ - - - - - 0 - 0 - - - - - - - false - - - false + + + + 3 - - - 0 - - - 3 - - - 0 - - - 3 - - - 3 - - - - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - Qt::Horizontal - - - - 20 - 20 - - - - - - - - Up - - - Qt::AlignCenter - - - - 3 - - - 3 - - - 3 - - - 3 - - + + + + + + + Qt::AlignCenter + + + + 3 + + + 3 + + + 3 + + + 3 + + + 3 + + + + + <html><head/><body><p><span style=" font-weight:600;">Select</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + 76 + 0 + + + + + 68 + 16777215 + + + + min-width: 68px; + + + Select + + + + + + + + + + + + + Qt::AlignCenter + + + + 3 + + + 3 + + + 3 + + + 3 + + + 3 + + + + + <html><head/><body><p><span style=" font-weight:600;">Start</span></p></body></html> + + + Qt::AlignCenter + + + + + + + + 76 + 0 + + + + + 68 + 16777215 + + + + min-width: 68px; + + + Start + + + + + + + + + + + + + 0 + 0 + + + + + + + false + + + false + + + + 0 + + + 3 + + + 0 + + + 3 + + + 3 + + + + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + + + Qt::Horizontal + + + + 20 + 20 + + + + + + + + + + + Qt::AlignCenter + + + + 3 + + + 3 + + 3 + + 3 + + + 3 + + + + + <html><head/><body><p><span style=" font-weight:600;">Up</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -653,7 +927,7 @@ - Left + Qt::AlignCenter @@ -674,11 +948,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Left</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -702,7 +986,7 @@ - Right + Qt::AlignCenter @@ -723,11 +1007,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Right</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -784,7 +1078,7 @@ - Down + Qt::AlignCenter @@ -805,11 +1099,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Down</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -849,6 +1153,32 @@ + + + + + + + :/ds/ds_open.svg + + + false + + + + + + + + + + :/ds/ds_back.svg + + + false + + + @@ -864,10 +1194,14 @@ + + + + - + - + Qt::Horizontal @@ -880,14 +1214,14 @@ - + - Switch to Joystick mappings + Switch to Keyboard mappings - + Qt::Horizontal @@ -901,183 +1235,6 @@ - - - - 3 - - - - - Select - - - Qt::AlignCenter - - - - 3 - - - 3 - - - 3 - - - 3 - - - 3 - - - - - - 72 - 0 - - - - - 68 - 16777215 - - - - min-width: 68px; - - - Select - - - - - - - - - - Start - - - Qt::AlignCenter - - - - 3 - - - 3 - - - 3 - - - 3 - - - 3 - - - - - - 72 - 0 - - - - - 68 - 16777215 - - - - min-width: 68px; - - - Start - - - - - - - - - - - - - - - R - - - Qt::AlignCenter - - - - 3 - - - 3 - - - 3 - - - 3 - - - 3 - - - - - - 72 - 0 - - - - - 68 - 16777215 - - - - min-width: 68px; - - - R - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - @@ -1097,12 +1254,12 @@ - L + Qt::AlignCenter - + 3 @@ -1118,11 +1275,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">L</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -1146,8 +1313,34 @@ - - + + + + + + + :/ds/ds_back.svg + + + false + + + + + + + + + + :/ds/ds_open.svg + + + false + + + + + 0 @@ -1163,7 +1356,7 @@ false - + 0 @@ -1180,8 +1373,8 @@ 3 - - + + 0 @@ -1198,7 +1391,7 @@ 0 - + Qt::Horizontal @@ -1211,14 +1404,14 @@ - + - X + Qt::AlignCenter - + 3 @@ -1235,10 +1428,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">Up</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1252,7 +1455,7 @@ min-width: 68px; - X + Up @@ -1260,7 +1463,7 @@ - + Qt::Horizontal @@ -1276,19 +1479,19 @@ - + 3 - + - Y + Qt::AlignCenter - + 3 @@ -1305,10 +1508,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">Left</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1322,7 +1535,7 @@ min-width: 68px; - Y + Left @@ -1330,14 +1543,14 @@ - + - A + Qt::AlignCenter - + 3 @@ -1354,10 +1567,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">Right</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1371,7 +1594,7 @@ min-width: 68px; - A + Right @@ -1381,8 +1604,8 @@ - - + + 0 @@ -1399,7 +1622,7 @@ 0 - + Qt::Horizontal @@ -1412,14 +1635,14 @@ - + - B + Qt::AlignCenter - + 3 @@ -1436,10 +1659,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">Down</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1453,7 +1686,7 @@ min-width: 68px; - B + Down @@ -1461,7 +1694,7 @@ - + Qt::Horizontal @@ -1479,8 +1712,8 @@ - - + + 0 @@ -1496,7 +1729,7 @@ false - + 0 @@ -1513,8 +1746,8 @@ 3 - - + + 0 @@ -1531,7 +1764,7 @@ 0 - + Qt::Horizontal @@ -1544,14 +1777,14 @@ - + - Up + Qt::AlignCenter - + 3 @@ -1568,10 +1801,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">X</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1585,7 +1828,7 @@ min-width: 68px; - Up + X @@ -1593,7 +1836,7 @@ - + Qt::Horizontal @@ -1609,19 +1852,19 @@ - + 3 - + - Left + Qt::AlignCenter - + 3 @@ -1638,10 +1881,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">Y</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1655,7 +1908,7 @@ min-width: 68px; - Left + Y @@ -1663,14 +1916,14 @@ - + - Right + Qt::AlignCenter - + 3 @@ -1687,10 +1940,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">A</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1704,7 +1967,7 @@ min-width: 68px; - Right + A @@ -1714,8 +1977,8 @@ - - + + 0 @@ -1732,7 +1995,7 @@ 0 - + Qt::Horizontal @@ -1745,14 +2008,14 @@ - + - Down + Qt::AlignCenter - + 3 @@ -1769,10 +2032,20 @@ 3 - + + + <html><head/><body><p><span style=" font-weight:600;">B</span></p></body></html> + + + Qt::AlignCenter + + + + + - 72 + 76 0 @@ -1786,7 +2059,7 @@ min-width: 68px; - Down + B @@ -1794,7 +2067,7 @@ - + Qt::Horizontal @@ -1812,84 +2085,6 @@ - - - - - - - :/ds/ds_open.svg - - - false - - - - - - - - 15 - - - - Joystick mappings - - - Qt::AlignCenter - - - - - - - - - - :/ds/ds_back.svg - - - false - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - Switch to Keyboard mappings - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - @@ -1898,7 +2093,7 @@ - Select + Qt::AlignCenter @@ -1919,11 +2114,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Select</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -1947,7 +2152,7 @@ - Start + Qt::AlignCenter @@ -1968,11 +2173,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">Start</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -2001,12 +2216,12 @@ - R + Qt::AlignCenter - + 3 @@ -2022,11 +2237,21 @@ 3 + + + + <html><head/><body><p><span style=" font-weight:600;">R</span></p></body></html> + + + Qt::AlignCenter + + + - 72 + 76 0 @@ -2063,6 +2288,21 @@ + + + + + 15 + + + + Joystick mappings + + + Qt::AlignCenter + + + -- cgit v1.2.3