nosignal-shell/modules/windowinfo/WindowInfo.qml
2026-04-11 21:18:56 +10:00

64 lines
1.4 KiB
QML

import QtQuick
import QtQuick.Layouts
import Quickshell
import Quickshell.Hyprland
import qs.components
import qs.services
import Caelestia.Config
Item {
id: root
required property ShellScreen screen
required property HyprlandToplevel client
implicitWidth: child.implicitWidth
implicitHeight: screen.height * Config.winfo.sizes.heightMult
RowLayout {
id: child
anchors.fill: parent
anchors.margins: Tokens.padding.large
spacing: Tokens.spacing.normal
Preview {
screen: root.screen
client: root.client
}
ColumnLayout {
spacing: Tokens.spacing.normal
Layout.preferredWidth: Config.winfo.sizes.detailsWidth
Layout.fillHeight: true
StyledRect {
Layout.fillWidth: true
Layout.fillHeight: true
color: Colours.tPalette.m3surfaceContainer
radius: Tokens.rounding.normal
Details {
client: root.client
}
}
StyledRect {
Layout.fillWidth: true
Layout.preferredHeight: buttons.implicitHeight
color: Colours.tPalette.m3surfaceContainer
radius: Tokens.rounding.normal
Buttons {
id: buttons
client: root.client
}
}
}
}
}