1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-05 21:15:38 -05:00

notepad: use a mask over content area

This commit is contained in:
bbedward
2025-10-28 12:08:18 -04:00
parent 0109bd5bda
commit a9f8b835ee

View File

@@ -48,7 +48,7 @@ PanelWindow {
anchors.bottom: true
anchors.right: true
implicitWidth: expandable && expandedWidth ? expandedWidthValue : slideoutWidth
implicitWidth: expandable ? expandedWidthValue : slideoutWidth
implicitHeight: modelData ? modelData.height : 800
color: "transparent"
@@ -57,6 +57,15 @@ PanelWindow {
WlrLayershell.exclusiveZone: 0
WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
mask: Region {
item: Rectangle {
x: root.width - contentRect.width
y: 0
width: contentRect.width
height: root.height
}
}
StyledRect {
id: contentRect
layer.enabled: true