1786108087
This commit is contained in:
@@ -370,6 +370,28 @@ export component AppWindow inherits Window {
|
|||||||
vertical-alignment: center;
|
vertical-alignment: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
x: parent.width - 66px;
|
||||||
|
y: 19px;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
border-width: 2px;
|
||||||
|
border-color: black;
|
||||||
|
background: close-touch.pressed ? Settings.dark-mode ? #777777 : black : Settings.dark-mode ? black : white;
|
||||||
|
|
||||||
|
close-touch := TouchArea {
|
||||||
|
clicked => { Settings.dark-mode = !Settings.dark-mode }
|
||||||
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: Settings.dark-mode ? "D" : "L";
|
||||||
|
color: close-touch.pressed ? white : black;
|
||||||
|
font-size: 29px;
|
||||||
|
horizontal-alignment: center;
|
||||||
|
vertical-alignment: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if root.current-page == 0: Rectangle {
|
if root.current-page == 0: Rectangle {
|
||||||
x: 0;
|
x: 0;
|
||||||
y: 84px;
|
y: 84px;
|
||||||
|
|||||||
Reference in New Issue
Block a user