forked from Sepanta/console-emulator
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
1.6 KiB
86 lines
1.6 KiB
3 years ago
|
import QtQuick 2.0
|
||
|
|
||
|
import "qrc:/emulator/components"
|
||
|
import "qrc:/emulator/elements"
|
||
|
import "qrc:/const"
|
||
|
import "qrc:/theme"
|
||
|
|
||
|
Item {
|
||
|
width: childrenRect.width
|
||
|
height: childrenRect.height
|
||
|
|
||
|
Column {
|
||
|
spacing: 15
|
||
|
|
||
|
Item {
|
||
|
width: Const.textWidth
|
||
|
implicitHeight: Const.textHeight
|
||
|
|
||
|
Text {
|
||
|
horizontalAlignment: Text.horizontalCenter
|
||
|
text: "Incremental step"
|
||
|
color: Theme.current.text
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SliderBarBind {
|
||
|
name: "stepInc"
|
||
|
}
|
||
|
|
||
|
Item {
|
||
|
width: Const.textWidth
|
||
|
implicitHeight: Const.textHeight
|
||
|
|
||
|
Text {
|
||
|
horizontalAlignment: Text.horizontalCenter
|
||
|
text: "Decremental step"
|
||
|
color: Theme.current.text
|
||
|
}
|
||
|
}
|
||
|
|
||
|
SliderBarBind {
|
||
|
name: "stepDec"
|
||
|
color: Theme.current.yellow
|
||
|
colorDeep: Theme.current.yellowDeep
|
||
|
flip: true
|
||
|
}
|
||
|
|
||
|
Row {
|
||
|
width: Const.sliderWidth
|
||
|
height: Const.sliderHeight
|
||
|
|
||
|
Item {
|
||
|
width: Const.textWidth / 3
|
||
|
height: Const.textHeight
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
Text {
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
horizontalAlignment: Text.horizontalCenter
|
||
|
text: "Theme"
|
||
|
color: Theme.current.text
|
||
|
}
|
||
|
}
|
||
|
|
||
|
NeuLight {
|
||
|
anchors.verticalCenter: parent.verticalCenter
|
||
|
colorMode: 0
|
||
|
width: Const.microButton
|
||
|
height: Const.microButton
|
||
|
image: Theme.current=== Theme.dark ? "qrc:/icons/uiMode/light.svg" :
|
||
|
"qrc:/icons/uiMode/dark.svg"
|
||
|
MouseArea{
|
||
|
anchors.fill: parent
|
||
|
onClicked: {
|
||
|
if(Theme.current=== Theme.dark) {
|
||
|
Theme.current = Theme.light
|
||
|
} else {
|
||
|
Theme.current = Theme.dark
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|