Browse Source

compacter-er

Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3016/head
crueter 2 months ago
parent
commit
201d87c474
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 21
      src/Eden/Config/GlobalConfigureDialog.qml
  2. 6
      src/Eden/Config/fields/BaseField.qml
  3. 4
      src/Eden/Config/pages/global/GlobalTab.qml
  4. 2
      src/Eden/Config/pages/global/GlobalTabSwipeView.qml
  5. 16
      src/Eden/Config/pages/graphics/RendererPage.qml

21
src/Eden/Config/GlobalConfigureDialog.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

6
src/Eden/Config/fields/BaseField.qml

@ -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]

4
src/Eden/Config/pages/global/GlobalTab.qml

@ -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
}
}

2
src/Eden/Config/pages/global/GlobalTabSwipeView.qml

@ -11,7 +11,7 @@ SwipeView {
right: parent.right
bottom: parent.bottom
leftMargin: 20
leftMargin: 5
topMargin: 10
}
}

16
src/Eden/Config/pages/graphics/RendererPage.qml

@ -16,17 +16,17 @@ PageScrollView {
vsync.apply()
}
GraphicsDeviceInterface {
id: gdi
api: api.value
device: dev.value
vsyncMode: vsync.value
}
ColumnLayout {
width: scroll.width - scroll.effectiveScrollBarWidth
GraphicsDeviceInterface {
id: gdi
api: api.value
device: dev.value
vsyncMode: vsync.value
}
ConfigComboBox {
Layout.fillWidth: true
id: api

Loading…
Cancel
Save