added adaptive quickshell
This commit is contained in:
1 parent
6eb56d2065
commit
5b33a73fd8
189 files changed
+8678
-15
No files matched your search
@@ -0,0 +1,34 @@
|
||||
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() }
|
||||
}
|
||||
Reference in new issue
Block a user