ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
58 lines
1.5 KiB
QML
58 lines
1.5 KiB
QML
// Copyright (C) 2023 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Window {
|
|
id: rootWindow
|
|
|
|
readonly property url startupView: "StartupView.qml"
|
|
|
|
width: 1280
|
|
height: 720
|
|
visible: true
|
|
title: qsTr("Qt Quick 3D Particles3D Testbed")
|
|
color: "#000000"
|
|
|
|
Component.onCompleted: {
|
|
AppSettings.iconSize = Qt.binding(function() {
|
|
return 16 + Math.max(rootWindow.width, rootWindow.height) * 0.05
|
|
})
|
|
}
|
|
|
|
Loader {
|
|
id: loader
|
|
anchors.fill: parent
|
|
Component.onCompleted: setSource(rootWindow.startupView, {loader: loader})
|
|
}
|
|
|
|
Button {
|
|
id: backButton
|
|
anchors.left: parent.left
|
|
anchors.top: parent.top
|
|
implicitWidth: AppSettings.iconSize
|
|
implicitHeight: AppSettings.iconSize
|
|
//height: width
|
|
opacity: loader.source !== rootWindow.startupView
|
|
visible: opacity
|
|
icon.source: "qrc:/images/arrow_icon.png"
|
|
icon.width: backButton.width * 0.3
|
|
icon.height: backButton.height * 0.3
|
|
icon.color: "transparent"
|
|
background: Rectangle {
|
|
color: "transparent"
|
|
}
|
|
onClicked: {
|
|
loader.setSource(rootWindow.startupView, {loader: loader})
|
|
}
|
|
Behavior on opacity {
|
|
NumberAnimation {
|
|
duration: 400
|
|
easing.type: Easing.InOutQuad
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|