This repository has been archived on 2024-06-03. You can view files and clone it, but cannot push or open issues or pull requests.
app/resources/qml/SettingsDialog/SettingsStack.qml
Dorian Zedler 195ab87fea
- redesigned the Extension status display in the top left corner
- redesigned the Extension overview in the basestation settings
(for #19)
2020-09-22 15:44:57 +02:00

123 lines
2.4 KiB
QML

import QtQuick 2.9
import QtMultimedia 5.8
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.0
import QtQuick.Controls.Styles 1.4
import "../components"
StackView {
id: control
property int delegateHeight: height * 0.25
property int rowSpacing: height * 0.01
initialItem: settings
/*-----start page of the settings-----*/
Component {
id: settings
StartPage {
id: settings_col
parentObj: control
}
}
/*-----Page to setup automatc start sequence-----*/
Component {
id: autostart
SettingsStartSequencePage {
id: autostart_col
parentObj: control
}
}
/*-----Page to connect to the base station -----*/
Component {
id: connect
SettingsBaseStationPage{
id: connectCol
parentObj: control
}
}
Component {
id: extensions
SettingsExtensionsPage {
parentObj: control
}
}
/*-----Custom animations-----*/
pushEnter: Transition {
NumberAnimation {
property: "opacity"
from: 0
to: 1
duration: 300
easing.type: Easing.InOutQuad
}
NumberAnimation {
property: "x"
from: width * 0.1
to: 0
duration: 300
}
}
pushExit: Transition {
NumberAnimation {
property: "opacity"
from: 1
to: 0
duration: 300
easing.type: Easing.InOutQuad
}
NumberAnimation {
property: "x"
to: -width * 0.1
from: 0
duration: 300
}
}
popExit: Transition {
NumberAnimation {
property: "opacity"
from: 1
to: 0
duration: 300
easing.type: Easing.InOutQuad
}
NumberAnimation {
property: "x"
to: width * 0.1
from: 0
duration: 300
}
}
popEnter: Transition {
NumberAnimation {
property: "opacity"
from: 0
to: 1
duration: 300
easing.type: Easing.InOutQuad
}
NumberAnimation {
property: "x"
from: -width * 0.1
to: 0
duration: 300
}
}
}