mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 23:42:51 -05:00
notepad: use a mask over content area
This commit is contained in:
@@ -48,7 +48,7 @@ PanelWindow {
|
|||||||
anchors.bottom: true
|
anchors.bottom: true
|
||||||
anchors.right: true
|
anchors.right: true
|
||||||
|
|
||||||
implicitWidth: expandable && expandedWidth ? expandedWidthValue : slideoutWidth
|
implicitWidth: expandable ? expandedWidthValue : slideoutWidth
|
||||||
implicitHeight: modelData ? modelData.height : 800
|
implicitHeight: modelData ? modelData.height : 800
|
||||||
|
|
||||||
color: "transparent"
|
color: "transparent"
|
||||||
@@ -57,6 +57,15 @@ PanelWindow {
|
|||||||
WlrLayershell.exclusiveZone: 0
|
WlrLayershell.exclusiveZone: 0
|
||||||
WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
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 {
|
StyledRect {
|
||||||
id: contentRect
|
id: contentRect
|
||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
|
|||||||
Reference in New Issue
Block a user