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.
}
}
Item {
// Spacing
Layout.fillHeight: true
}
Button{
Layout.fillWidth: true
text: qsTr("Import")

View File

@ -28,7 +28,7 @@ Tab{
GroupBox{
property var rasterization: [qsTr("Default"), qsTr("Scanlines"), qsTr("Pixels")][appSettings.rasterization]
title: qsTr("Font" + "(" + rasterization + ")")
Layout.fillWidth: true
anchors { left: parent.left; right: parent.right }
GridLayout{
anchors.fill: parent
columns: 2
@ -101,9 +101,23 @@ Tab{
}
GroupBox{
title: qsTr("Colors")
Layout.fillWidth: true
anchors { left: parent.left; right: parent.right }
ColumnLayout{
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{
Layout.fillWidth: true
ColorButton{
@ -121,20 +135,6 @@ Tab{
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 {
id: settings_window
title: qsTr("Settings")
width: 640
height: 440
width: 560
height: 360
property int tabmargins: 15