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:
parent
7dd61c89fc
commit
0264fbebcd
@ -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")
|
||||||
|
@ -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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user