notif actions fix

This commit is contained in:
Zacharias-Brohn
2026-02-05 16:39:03 +01:00
parent 73a3b85141
commit ce841444ca
4 changed files with 73 additions and 40 deletions
+36 -12
View File
@@ -1,24 +1,48 @@
import QtQuick
import QtQuick.Layouts
import qs.Config
import qs.Modules
import qs.Helpers as Helpers
import qs.Components
Item {
implicitWidth: timeText.contentWidth
required property Wrapper popouts
required property RowLayout loader
implicitWidth: timeText.contentWidth + 5 * 2
anchors.top: parent.top
anchors.bottom: parent.bottom
Text {
id: timeText
CustomRect {
anchors.fill: parent
anchors.topMargin: 3
anchors.bottomMargin: 3
radius: 4
color: "transparent"
Text {
id: timeText
anchors.left: parent.left
anchors.right: parent.right
anchors.verticalCenter: parent.verticalCenter
anchors.centerIn: parent
text: Time.time
color: Config.useDynamicColors ? DynamicColors.palette.m3tertiary : "white"
text: Time.time
color: Config.useDynamicColors ? DynamicColors.palette.m3tertiary : "white"
Behavior on color {
CAnim {}
}
}
Behavior on color {
CAnim {}
}
}
StateLayer {
acceptedButtons: Qt.LeftButton
onClicked: {
if ( mouse.button === Qt.LeftButton && !visibilities.sidebar ) {
Helpers.Calendar.displayYear = new Date().getFullYear();
Helpers.Calendar.displayMonth = new Date().getMonth();
root.popouts.currentName = "calendar";
root.popouts.currentCenter = Qt.binding( () => item.mapToItem( root.loader, root.implicitWidth / 2, 0 ).x );
root.popouts.hasCurrent = true;
}
}
}
}
}