minor fixess

This commit is contained in:
2026-07-13 06:04:04 +03:00
parent e9e2cbbfec
commit ff2b8a250e
34 changed files with 712 additions and 282 deletions
+13 -1
View File
@@ -12,14 +12,26 @@ RowLayout {
Button {
text: "\u2190 Назад"
implicitHeight: 44
onClicked: header.back()
background: Rectangle {
implicitHeight: 44
radius: 4
color: parent.down ? "#3a3a54" : (parent.hovered ? "#353550" : "#2a2a40")
}
contentItem: Text {
text: parent.text
color: "#ffffff"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
}
}
Label {
Layout.fillWidth: true
text: header.title
font.bold: true
font.pixelSize: 16
color: settingsContainer.darkMode ? "white" : "black"
color: "#ffffff"
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
}
+2 -2
View File
@@ -16,7 +16,7 @@ RowLayout {
Label {
text: control.label
color: settingsContainer.darkMode ? "white" : "black"
color: "#ffffff"
Layout.preferredWidth: 150
}
Slider {
@@ -30,7 +30,7 @@ RowLayout {
}
Label {
text: Math.round(slider.value)
color: settingsContainer.darkMode ? "white" : "black"
color: "#ffffff"
Layout.preferredWidth: 36
horizontalAlignment: Text.AlignRight
}
+25
View File
@@ -0,0 +1,25 @@
import QtQuick 2.12
import QtQuick.Controls 2.12
Button {
id: control
implicitHeight: 44
background: Rectangle {
implicitHeight: 44
implicitWidth: parent.width
radius: 4
color: control.down ? "#3a3a54"
: (control.hovered ? "#353550" : "#2a2a40")
}
contentItem: Text {
text: control.text
font: control.font
opacity: enabled ? 1.0 : 0.5
color: "#ffffff"
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
}