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. 6
      src/Eden/Config/pages/graphics/RendererPage.qml

21
src/Eden/Config/GlobalConfigureDialog.qml

@ -19,6 +19,8 @@ Dialog {
implicitWidth: 1000 implicitWidth: 1000
implicitHeight: 700 implicitHeight: 700
padding: 5
title: qsTr("Configuration") title: qsTr("Configuration")
standardButtons: Dialog.Ok | Dialog.Cancel standardButtons: Dialog.Ok | Dialog.Cancel
@ -42,23 +44,30 @@ Dialog {
id: tabBar id: tabBar
vertical: true vertical: true
// TODO: style-dependent
property int topMargin: 45
anchors { anchors {
top: parent.top top: parent.top
topMargin: 55
topMargin: tabBar.topMargin
left: parent.left 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 position: TabBar.Footer
currentIndex: swipe.currentIndex currentIndex: swipe.currentIndex
height: contentHeight * count + 20
width: contentWidth width: contentWidth
clip: true
Repeater { Repeater {
model: [qsTr("General"), qsTr("System"), qsTr("CPU"), qsTr( model: [qsTr("General"), qsTr("System"), qsTr("CPU"), qsTr(
"Graphics"), qsTr("Audio"), qsTr("Debug"), qsTr("Controls")] "Graphics"), qsTr("Audio"), qsTr("Debug"), qsTr("Controls")]
@ -90,7 +99,7 @@ Dialog {
top: parent.top top: parent.top
bottom: parent.bottom bottom: parent.bottom
leftMargin: 5
leftMargin: 0
} }
clip: true clip: true

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

@ -66,7 +66,7 @@ Item {
anchors { anchors {
left: help.right left: help.right
leftMargin: -5 leftMargin: -5
verticalCenter: parent.verticalCenter
verticalCenter: help.verticalCenter
} }
} }
@ -87,12 +87,14 @@ Item {
RowLayout { RowLayout {
id: content id: content
height: 40
height: 30
visible: showLabel visible: showLabel
anchors { anchors {
left: parent.horizontalCenter left: parent.horizontalCenter
right: parent.right right: parent.right
verticalCenter: help.verticalCenter
} }
children: [contentItem] children: [contentItem]

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

@ -17,13 +17,15 @@ Item {
top: parent.top top: parent.top
left: parent.left left: parent.left
right: parent.right right: parent.right
leftMargin: 5
} }
Repeater { Repeater {
model: tabs model: tabs
CarboxylTabButton { CarboxylTabButton {
font.pixelSize: 16
font.pixelSize: 14
text: modelData text: modelData
} }
} }

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

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

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

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

Loading…
Cancel
Save