waffles: task view: workspaces

This commit is contained in:
end-4
2025-12-11 23:29:42 +01:00
parent 70c0adb8e5
commit 044221be93
8 changed files with 333 additions and 7 deletions
@@ -0,0 +1,45 @@
import QtQuick
import qs
import qs.modules.common
import qs.modules.common.functions
import qs.modules.waffle.looks
MouseArea {
id: root
property real radius: Looks.radius.medium
hoverEnabled: true
property color colBackground: ColorUtils.transparentize(Looks.colors.bg2)
property color colBackgroundHover: Looks.colors.bg2Hover
property color colBackgroundActive: Looks.colors.bg2Active
property color colBorder: ColorUtils.transparentize(Looks.colors.bg2Border)
property color colBorderHover: Looks.colors.bg2Border
property color color: {
if (containsMouse) {
return pressed ? colBackgroundActive : colBackgroundHover;
} else {
return colBackground;
}
}
property color borderColor: {
if (containsMouse) {
return colBorderHover;
} else {
return colBorder;
}
}
property Item background: Rectangle {
id: bgRect
parent: root
anchors.fill: parent
color: root.color
radius: root.radius
border.color: root.borderColor
border.width: 1
}
}