|
|
|
|
@ -3,29 +3,15 @@ import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
|
|
|
|
import FishUI 1.0 as FishUI
|
|
|
|
|
|
|
|
|
|
FishUI.Window {
|
|
|
|
|
FishUI.DialogWindow {
|
|
|
|
|
id: control
|
|
|
|
|
|
|
|
|
|
title: qsTr("Settings")
|
|
|
|
|
|
|
|
|
|
readonly property int dialogWidth: 440
|
|
|
|
|
readonly property int dialogHeight: _mainLayout.implicitHeight + header.height + FishUI.Units.largeSpacing * 1.5
|
|
|
|
|
contentHeight: _mainLayout.implicitHeight + contentPadding
|
|
|
|
|
|
|
|
|
|
width: dialogWidth
|
|
|
|
|
height: dialogHeight
|
|
|
|
|
minimumWidth: dialogWidth
|
|
|
|
|
maximumWidth: dialogWidth
|
|
|
|
|
minimumHeight: dialogHeight
|
|
|
|
|
maximumHeight: dialogHeight
|
|
|
|
|
|
|
|
|
|
flags: Qt.Dialog | Qt.FramelessWindowHint
|
|
|
|
|
modality: Qt.WindowModal
|
|
|
|
|
visible: false
|
|
|
|
|
minimizeButtonVisible: false
|
|
|
|
|
header.height: 44
|
|
|
|
|
windowButtonsAlignment: Qt.AlignVCenter
|
|
|
|
|
windowButtonsTopMargin: 0
|
|
|
|
|
windowButtonsRightMargin: FishUI.Units.smallSpacing
|
|
|
|
|
|
|
|
|
|
background.color: FishUI.Theme.backgroundColor
|
|
|
|
|
|
|
|
|
|
@ -106,23 +92,13 @@ FishUI.Window {
|
|
|
|
|
font.features: { "tnum": 1 }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
headerItem: Item {
|
|
|
|
|
FishUI.Label {
|
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
anchors.horizontalCenterOffset: (control.width - parent.width) / 2
|
|
|
|
|
text: control.title
|
|
|
|
|
font.pixelSize: 13
|
|
|
|
|
font.weight: Font.Medium
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ColumnLayout {
|
|
|
|
|
id: _mainLayout
|
|
|
|
|
anchors.left: parent.left
|
|
|
|
|
anchors.right: parent.right
|
|
|
|
|
anchors.top: parent.top
|
|
|
|
|
anchors.leftMargin: FishUI.Units.largeSpacing * 1.5
|
|
|
|
|
anchors.rightMargin: FishUI.Units.largeSpacing * 1.5
|
|
|
|
|
anchors.leftMargin: control.contentPadding
|
|
|
|
|
anchors.rightMargin: control.contentPadding
|
|
|
|
|
spacing: FishUI.Units.largeSpacing
|
|
|
|
|
|
|
|
|
|
// The chosen font on the terminal's own colours.
|
|
|
|
|
|