1
0
mirror of https://github.com/Swordfish90/cool-retro-term.git synced 2025-04-19 01:00:47 +01:00

Small adjustments in the settings dialog.

This commit is contained in:
Filippo Scognamiglio 2014-12-26 17:51:10 +01:00
parent 7dd61c89fc
commit 0264fbebcd
3 changed files with 22 additions and 18 deletions

View File

@ -81,6 +81,10 @@ Tab{
currentIndex = -1; // Unselect the profile. currentIndex = -1; // Unselect the profile.
} }
} }
Item {
// Spacing
Layout.fillHeight: true
}
Button{ Button{
Layout.fillWidth: true Layout.fillWidth: true
text: qsTr("Import") text: qsTr("Import")

View File

@ -28,7 +28,7 @@ Tab{
GroupBox{ GroupBox{
property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization] property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization]
title: qsTr("Font" + "(" + rasterization + ")") title: qsTr("Font" + "(" + rasterization + ")")
Layout.fillWidth: true anchors { left: parent.left; right: parent.right }
GridLayout{ GridLayout{
anchors.fill: parent anchors.fill: parent
columns: 2 columns: 2
@ -101,9 +101,23 @@ Tab{
} }
GroupBox{ GroupBox{
title: qsTr("Colors") title: qsTr("Colors")
Layout.fillWidth: true anchors { left: parent.left; right: parent.right }
ColumnLayout{ ColumnLayout{
anchors.fill: parent anchors.fill: parent
ColumnLayout{
Layout.fillWidth: true
CheckableSlider{
name: qsTr("Chroma Color")
onNewValue: appSettings.chromaColor = newValue
value: appSettings.chromaColor
}
CheckableSlider{
name: qsTr("Saturation Color")
onNewValue: appSettings.saturationColor = newValue
value: appSettings.saturationColor
enabled: appSettings.chromaColor !== 0
}
}
RowLayout{ RowLayout{
Layout.fillWidth: true Layout.fillWidth: true
ColorButton{ ColorButton{
@ -121,20 +135,6 @@ Tab{
button_color: appSettings._backgroundColor button_color: appSettings._backgroundColor
} }
} }
ColumnLayout{
Layout.fillWidth: true
CheckableSlider{
name: qsTr("Chroma Color")
onNewValue: appSettings.chromaColor = newValue
value: appSettings.chromaColor
}
CheckableSlider{
name: qsTr("Saturation Color")
onNewValue: appSettings.saturationColor = newValue
value: appSettings.saturationColor
enabled: appSettings.chromaColor !== 0
}
}
} }
} }
} }

View File

@ -27,8 +27,8 @@ import QtQuick.Dialogs 1.1
Window { Window {
id: settings_window id: settings_window
title: qsTr("Settings") title: qsTr("Settings")
width: 640 width: 560
height: 440 height: 360
property int tabmargins: 15 property int tabmargins: 15