summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-03-16 10:20:42 -0400
committerFreya Murphy <freya@freyacat.org>2026-03-16 10:20:42 -0400
commit45cd118d96ce59479774d6fd154baf03adcb675d (patch)
tree7ed699149bf9203e1b2b07c4444157b9cacc5196 /modules
parentupdate commits (diff)
downloadcaelestia-shell-45cd118d96ce59479774d6fd154baf03adcb675d.tar.gz
caelestia-shell-45cd118d96ce59479774d6fd154baf03adcb675d.tar.bz2
caelestia-shell-45cd118d96ce59479774d6fd154baf03adcb675d.zip
delete active window popout
Diffstat (limited to 'modules')
-rw-r--r--modules/bar/components/ActiveWindow.qml25
-rw-r--r--modules/bar/popouts/ActiveWindow.qml102
-rw-r--r--modules/bar/popouts/Content.qml7
3 files changed, 0 insertions, 134 deletions
diff --git a/modules/bar/components/ActiveWindow.qml b/modules/bar/components/ActiveWindow.qml
index 414c9c5..3eb6904 100644
--- a/modules/bar/components/ActiveWindow.qml
+++ b/modules/bar/components/ActiveWindow.qml
@@ -38,31 +38,6 @@ Item {
implicitWidth: Math.max(icon.implicitWidth, current.implicitHeight)
implicitHeight: icon.implicitHeight + current.implicitWidth + current.anchors.topMargin
- Loader {
- anchors.fill: parent
- active: !Config.bar.activeWindow.showOnHover
-
- sourceComponent: MouseArea {
- cursorShape: Qt.PointingHandCursor
- hoverEnabled: true
- onPositionChanged: {
- const popouts = root.bar.popouts;
- if (popouts.hasCurrent && popouts.currentName !== "activewindow")
- popouts.hasCurrent = false;
- }
- onClicked: {
- const popouts = root.bar.popouts;
- if (popouts.hasCurrent) {
- popouts.hasCurrent = false;
- } else {
- popouts.currentName = "activewindow";
- popouts.currentCenter = root.mapToItem(root.bar, 0, root.implicitHeight / 2).y;
- popouts.hasCurrent = true;
- }
- }
- }
- }
-
MaterialIcon {
id: icon
diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml
deleted file mode 100644
index adf7b77..0000000
--- a/modules/bar/popouts/ActiveWindow.qml
+++ /dev/null
@@ -1,102 +0,0 @@
-import qs.components
-import qs.services
-import qs.utils
-import qs.config
-import Quickshell.Widgets
-import Quickshell.Wayland
-import QtQuick
-import QtQuick.Layouts
-
-Item {
- id: root
-
- required property Item wrapper
-
- implicitWidth: Hypr.activeToplevel ? child.implicitWidth : -Appearance.padding.large * 2
- implicitHeight: child.implicitHeight
-
- Column {
- id: child
-
- anchors.centerIn: parent
- spacing: Appearance.spacing.normal
-
- RowLayout {
- id: detailsRow
-
- anchors.left: parent.left
- anchors.right: parent.right
- spacing: Appearance.spacing.normal
-
- IconImage {
- id: icon
-
- Layout.alignment: Qt.AlignVCenter
- implicitSize: details.implicitHeight
- source: Icons.getAppIcon(Hypr.activeToplevel?.lastIpcObject.class ?? "", "image-missing")
- }
-
- ColumnLayout {
- id: details
-
- spacing: 0
- Layout.fillWidth: true
-
- StyledText {
- Layout.fillWidth: true
- text: Hypr.activeToplevel?.title ?? ""
- font.pointSize: Appearance.font.size.normal
- elide: Text.ElideRight
- }
-
- StyledText {
- Layout.fillWidth: true
- text: Hypr.activeToplevel?.lastIpcObject.class ?? ""
- color: Colours.palette.m3onSurfaceVariant
- elide: Text.ElideRight
- }
- }
-
- Item {
- implicitWidth: expandIcon.implicitHeight + Appearance.padding.small * 2
- implicitHeight: expandIcon.implicitHeight + Appearance.padding.small * 2
-
- Layout.alignment: Qt.AlignVCenter
-
- StateLayer {
- radius: Appearance.rounding.normal
-
- function onClicked(): void {
- root.wrapper.detach("winfo");
- }
- }
-
- MaterialIcon {
- id: expandIcon
-
- anchors.centerIn: parent
- anchors.horizontalCenterOffset: font.pointSize * 0.05
-
- text: "chevron_right"
-
- font.pointSize: Appearance.font.size.large
- }
- }
- }
-
- ClippingWrapperRectangle {
- color: "transparent"
- radius: Appearance.rounding.small
-
- ScreencopyView {
- id: preview
-
- captureSource: Hypr.activeToplevel?.wayland ?? null
- live: visible
-
- constraintSize.width: Config.bar.sizes.windowPreviewSize
- constraintSize.height: Config.bar.sizes.windowPreviewSize
- }
- }
- }
-}
diff --git a/modules/bar/popouts/Content.qml b/modules/bar/popouts/Content.qml
index 6543e58..779cc5f 100644
--- a/modules/bar/popouts/Content.qml
+++ b/modules/bar/popouts/Content.qml
@@ -27,13 +27,6 @@ Item {
anchors.margins: Appearance.padding.large
Popout {
- name: "activewindow"
- sourceComponent: ActiveWindow {
- wrapper: root.wrapper
- }
- }
-
- Popout {
id: networkPopout
name: "network"
sourceComponent: Network {