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.
75 lines
1.9 KiB
QML
75 lines
1.9 KiB
QML
// Copyright (C) 2023 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
import QtQuick
|
|
import QtQuick.Controls
|
|
|
|
Item {
|
|
id: rootItem
|
|
property real showState: AppSettings.showSettingsView ? 1.0 : 0.0
|
|
|
|
default property alias content: settingsArea.children
|
|
|
|
width: settingsDrawer.width
|
|
height: settingsDrawer.height
|
|
|
|
Button {
|
|
x: (settingsDrawer.visible) ? settingsDrawer.x - width : Window.window.width - width
|
|
anchors.top: parent.top
|
|
width: AppSettings.iconSize
|
|
height: width
|
|
opacity: rootItem.showState * 0.6 + 0.4
|
|
visible: opacity
|
|
icon.width: width * 0.3
|
|
icon.height: height * 0.3
|
|
icon.source: "qrc:/images/icon_settings.png"
|
|
icon.color: "transparent"
|
|
background: Rectangle {
|
|
color: "transparent"
|
|
}
|
|
onClicked: {
|
|
AppSettings.showSettingsView = !AppSettings.showSettingsView;
|
|
}
|
|
}
|
|
|
|
Drawer {
|
|
id: settingsDrawer
|
|
modal: false
|
|
edge: Qt.RightEdge
|
|
interactive: false
|
|
leftInset: -10
|
|
topInset: -20
|
|
bottomInset: -20
|
|
topMargin: 10
|
|
visible: AppSettings.showSettingsView
|
|
|
|
background: Rectangle {
|
|
color: "#80404040"
|
|
border.color: "#000000"
|
|
border.width: 1
|
|
opacity: 0.8
|
|
}
|
|
|
|
Column {
|
|
id: settingsArea
|
|
}
|
|
enter: Transition {
|
|
NumberAnimation {
|
|
property: "position"
|
|
to: 1.0
|
|
duration: 800
|
|
easing.type: Easing.InOutQuad
|
|
}
|
|
}
|
|
|
|
exit: Transition {
|
|
NumberAnimation {
|
|
property: "position"
|
|
to: 0.0
|
|
duration: 800
|
|
easing.type: Easing.InOutQuad
|
|
}
|
|
}
|
|
}
|
|
}
|