This commit is contained in:
2026-06-17 04:55:15 +03:00
commit da3d9ef7b5
74 changed files with 5307 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
RowLayout {
id: header
property string title: ""
signal back()
Layout.fillWidth: true
spacing: 8
Button {
text: "\u2190 Назад"
onClicked: header.back()
}
Label {
Layout.fillWidth: true
text: header.title
font.bold: true
font.pixelSize: 16
color: settingsContainer.darkMode ? "white" : "black"
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
}
Item { Layout.preferredWidth: 88 }
}
+37
View File
@@ -0,0 +1,37 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Layouts 1.12
RowLayout {
id: control
property string label: ""
property real from: 0
property real to: 100
property real stepSize: 1
property real value: 0
signal moved(real value)
Layout.fillWidth: true
spacing: 10
Label {
text: control.label
color: settingsContainer.darkMode ? "white" : "black"
Layout.preferredWidth: 150
}
Slider {
id: slider
Layout.fillWidth: true
from: control.from
to: control.to
stepSize: control.stepSize
value: control.value
onMoved: control.moved(Math.round(value))
}
Label {
text: Math.round(slider.value)
color: settingsContainer.darkMode ? "white" : "black"
Layout.preferredWidth: 36
horizontalAlignment: Text.AlignRight
}
}