test popouts
This commit is contained in:
@@ -72,9 +72,6 @@ CustomMouseArea {
|
||||
}
|
||||
}
|
||||
onPositionChanged: event => {
|
||||
if (popouts.isDetached)
|
||||
return;
|
||||
|
||||
const x = event.x;
|
||||
const y = event.y;
|
||||
const dragX = x - dragStart.x;
|
||||
|
||||
+2
-8
@@ -26,7 +26,8 @@ Item {
|
||||
readonly property alias launcher: launcher
|
||||
readonly property alias notifications: notifications
|
||||
readonly property alias osd: osd
|
||||
readonly property alias popouts: popouts
|
||||
readonly property alias popouts: popouts.content
|
||||
readonly property alias popoutsWrapper: popouts
|
||||
readonly property alias resources: resources
|
||||
required property ShellScreen screen
|
||||
readonly property alias settings: settings
|
||||
@@ -73,13 +74,6 @@ Item {
|
||||
|
||||
anchors.top: parent.top
|
||||
screen: root.screen
|
||||
x: {
|
||||
const off = currentCenter - nonAnimWidth / 2;
|
||||
const diff = root.width - Math.floor(off + nonAnimWidth);
|
||||
if (diff < 0)
|
||||
return off + diff;
|
||||
return Math.floor(Math.max(off, 0));
|
||||
}
|
||||
}
|
||||
|
||||
Toasts.Toasts {
|
||||
|
||||
+20
-4
@@ -5,6 +5,7 @@ import QtQuick.Effects
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
import Quickshell.Hyprland
|
||||
import ZShell.Blobs
|
||||
import qs.Daemons
|
||||
import qs.Components
|
||||
import qs.Modules
|
||||
@@ -161,7 +162,7 @@ Variants {
|
||||
borderBottom: Config.barConfig.border - anchors.margins
|
||||
borderLeft: Config.barConfig.border - anchors.margins
|
||||
borderRight: Config.barConfig.border - anchors.margins
|
||||
borderTop: Config.barConfig.border - anchors.margins
|
||||
borderTop: bar.implicitHeight - anchors.margins
|
||||
group: blobGroup
|
||||
radius: Config.barConfig.rounding
|
||||
}
|
||||
@@ -171,6 +172,7 @@ Variants {
|
||||
|
||||
deformAmount: 0.1
|
||||
panel: panels.dashboard
|
||||
radius: Appearance.rounding.normal
|
||||
}
|
||||
|
||||
PanelBg {
|
||||
@@ -178,12 +180,13 @@ Variants {
|
||||
|
||||
deformAmount: 0.1
|
||||
panel: panels.launcher
|
||||
radius: Appearance.rounding.smallest + 5
|
||||
}
|
||||
|
||||
PanelBg {
|
||||
id: sidebarBg
|
||||
|
||||
bottomLeftRadius: Math.max(0, Math.min(1, panels.sidebar.offsetScale / 0.3)) * radius
|
||||
bottomLeftRadius: 0
|
||||
deformAmount: 0.03
|
||||
exclude: panels.sidebar.offsetscale > 0.08 ? [] : [utilsBg]
|
||||
implicitHeight: panel.height * (1 / rawDeformMatrix.m22) + 2
|
||||
@@ -195,6 +198,7 @@ Variants {
|
||||
|
||||
deformAmount: 0.25
|
||||
panel: panels.osd
|
||||
radius: 20
|
||||
}
|
||||
|
||||
PanelBg {
|
||||
@@ -209,7 +213,7 @@ Variants {
|
||||
deformAmount: panels.sidebar.visible ? 0.1 : 0.15
|
||||
exclude: panels.sidebar.offsetScale > 0.08 ? [] : [sidebarBg]
|
||||
panel: panels.utilities
|
||||
topLeftRadius: Math.max(0, Math.min(1, panels.sidebar.offsetScale / 0.3)) * radius
|
||||
topLeftRadius: 0
|
||||
}
|
||||
|
||||
PanelBg {
|
||||
@@ -217,7 +221,15 @@ Variants {
|
||||
|
||||
deformAmount: 0.15
|
||||
implicitWidth: panels.popouts.width
|
||||
panel: panels.popouts
|
||||
panel: panels.popoutsWrapper
|
||||
}
|
||||
|
||||
PanelBg {
|
||||
id: resourcesBg
|
||||
|
||||
deformAmount: 0.15
|
||||
panel: panels.resources
|
||||
radius: Appearance.rounding.normal
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,6 +287,9 @@ Variants {
|
||||
popouts.transform: Matrix4x4 {
|
||||
matrix: popoutBg.deformMatrix
|
||||
}
|
||||
resources.transform: Matrix4x4 {
|
||||
matrix: resourcesBg.deformMatrix
|
||||
}
|
||||
sidebar.transform: Matrix4x4 {
|
||||
matrix: sidebarBg.deformMatrix
|
||||
}
|
||||
@@ -289,6 +304,7 @@ Variants {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
popouts: panels.popouts
|
||||
popoutsWrapper: panels.popoutsWrapper
|
||||
screen: scope.modelData
|
||||
visibilities: visibilities
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user