Browse Source
compacter-er
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter
2 months ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
5 changed files with
31 additions and
18 deletions
-
src/Eden/Config/GlobalConfigureDialog.qml
-
src/Eden/Config/fields/BaseField.qml
-
src/Eden/Config/pages/global/GlobalTab.qml
-
src/Eden/Config/pages/global/GlobalTabSwipeView.qml
-
src/Eden/Config/pages/graphics/RendererPage.qml
|
|
|
@ -19,6 +19,8 @@ Dialog { |
|
|
|
implicitWidth: 1000 |
|
|
|
implicitHeight: 700 |
|
|
|
|
|
|
|
padding: 5 |
|
|
|
|
|
|
|
title: qsTr("Configuration") |
|
|
|
standardButtons: Dialog.Ok | Dialog.Cancel |
|
|
|
|
|
|
|
@ -42,23 +44,30 @@ Dialog { |
|
|
|
id: tabBar |
|
|
|
vertical: true |
|
|
|
|
|
|
|
// TODO: style-dependent |
|
|
|
property int topMargin: 45 |
|
|
|
|
|
|
|
anchors { |
|
|
|
top: parent.top |
|
|
|
topMargin: 55 |
|
|
|
topMargin: tabBar.topMargin |
|
|
|
|
|
|
|
left: parent.left |
|
|
|
leftMargin: 10 |
|
|
|
leftMargin: 0 |
|
|
|
} |
|
|
|
contentWidth: 100 |
|
|
|
contentHeight: 60 |
|
|
|
|
|
|
|
height: Math.min(contentHeight * count + 20, |
|
|
|
parent.height - tabBar.topMargin) |
|
|
|
contentWidth: 85 |
|
|
|
contentHeight: 55 |
|
|
|
|
|
|
|
position: TabBar.Footer |
|
|
|
|
|
|
|
currentIndex: swipe.currentIndex |
|
|
|
|
|
|
|
height: contentHeight * count + 20 |
|
|
|
width: contentWidth |
|
|
|
|
|
|
|
clip: true |
|
|
|
|
|
|
|
Repeater { |
|
|
|
model: [qsTr("General"), qsTr("System"), qsTr("CPU"), qsTr( |
|
|
|
"Graphics"), qsTr("Audio"), qsTr("Debug"), qsTr("Controls")] |
|
|
|
@ -90,7 +99,7 @@ Dialog { |
|
|
|
top: parent.top |
|
|
|
bottom: parent.bottom |
|
|
|
|
|
|
|
leftMargin: 5 |
|
|
|
leftMargin: 0 |
|
|
|
} |
|
|
|
|
|
|
|
clip: true |
|
|
|
|
|
|
|
@ -66,7 +66,7 @@ Item { |
|
|
|
anchors { |
|
|
|
left: help.right |
|
|
|
leftMargin: -5 |
|
|
|
verticalCenter: parent.verticalCenter |
|
|
|
verticalCenter: help.verticalCenter |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -87,12 +87,14 @@ Item { |
|
|
|
RowLayout { |
|
|
|
id: content |
|
|
|
|
|
|
|
height: 40 |
|
|
|
height: 30 |
|
|
|
visible: showLabel |
|
|
|
|
|
|
|
anchors { |
|
|
|
left: parent.horizontalCenter |
|
|
|
right: parent.right |
|
|
|
|
|
|
|
verticalCenter: help.verticalCenter |
|
|
|
} |
|
|
|
|
|
|
|
children: [contentItem] |
|
|
|
|
|
|
|
@ -17,13 +17,15 @@ Item { |
|
|
|
top: parent.top |
|
|
|
left: parent.left |
|
|
|
right: parent.right |
|
|
|
|
|
|
|
leftMargin: 5 |
|
|
|
} |
|
|
|
|
|
|
|
Repeater { |
|
|
|
model: tabs |
|
|
|
|
|
|
|
CarboxylTabButton { |
|
|
|
font.pixelSize: 16 |
|
|
|
font.pixelSize: 14 |
|
|
|
text: modelData |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -11,7 +11,7 @@ SwipeView { |
|
|
|
right: parent.right |
|
|
|
bottom: parent.bottom |
|
|
|
|
|
|
|
leftMargin: 20 |
|
|
|
leftMargin: 5 |
|
|
|
topMargin: 10 |
|
|
|
} |
|
|
|
} |
|
|
|
@ -16,6 +16,9 @@ PageScrollView { |
|
|
|
vsync.apply() |
|
|
|
} |
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
width: scroll.width - scroll.effectiveScrollBarWidth |
|
|
|
|
|
|
|
GraphicsDeviceInterface { |
|
|
|
id: gdi |
|
|
|
|
|
|
|
@ -24,9 +27,6 @@ PageScrollView { |
|
|
|
vsyncMode: vsync.value |
|
|
|
} |
|
|
|
|
|
|
|
ColumnLayout { |
|
|
|
width: scroll.width - scroll.effectiveScrollBarWidth |
|
|
|
|
|
|
|
ConfigComboBox { |
|
|
|
Layout.fillWidth: true |
|
|
|
id: api |
|
|
|
|