pragma ComponentBehavior: Bound import QtQuick import QtQuick.Controls.Material import QtQuick.Layouts import Quickshell import "services" import "components" FloatingWindow { id: window signal closeRequested() signal navigate(string name) property alias section: settings.selectedSection title: "Settings" implicitWidth: 1000 implicitHeight: 760 minimumSize: Qt.size(360, 400) color: Theme.background Material.theme: Theme.dark ? Material.Dark : Material.Light Material.accent: Theme.primary onClosed: closeRequested() ColumnLayout { anchors.fill: parent anchors.margins: 24 spacing: 20 RowLayout { Layout.fillWidth: true Text { text: "Settings"; color: Theme.foreground; font.pixelSize: 28; Layout.fillWidth: true } ActionButton { text: "Закрыть"; onClicked: window.closeRequested() } } Settings { id: settings; active: window.visible; Layout.fillWidth: true; Layout.fillHeight: true; onNavigate: name => window.navigate(name) } } Shortcut { sequence: "Escape"; onActivated: window.closeRequested() } }