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.
50 lines
797 B
50 lines
797 B
3 years ago
|
import QtQuick 2.0
|
||
|
import QtGraphicalEffects 1.13
|
||
|
|
||
|
import "qrc:/emulator/components"
|
||
|
import "qrc:/emulator/items"
|
||
|
import "qrc:/theme"
|
||
|
import "qrc:/const"
|
||
|
|
||
|
Item {
|
||
|
width: Const.windowWidth
|
||
|
height: Const.windowHeight
|
||
|
|
||
|
NeuLight {
|
||
|
x: 70
|
||
|
y: 70
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
TopLeft {}
|
||
|
|
||
|
TopRight {}
|
||
|
|
||
|
BottomRight {}
|
||
|
|
||
|
CurveButtons {}
|
||
|
|
||
|
Joysticks {}
|
||
|
|
||
|
Encoders {}
|
||
|
|
||
|
JoystickCouple {}
|
||
|
|
||
|
TrackballGroup {}
|
||
|
|
||
|
}
|