minor fixess
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user