mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
fix(popouts): disable layer compositing and scale to keep text sharp at 1.25 (#277)
This commit is contained in:
@@ -57,16 +57,8 @@ PanelWindow {
|
||||
}
|
||||
|
||||
color: "transparent"
|
||||
WlrLayershell.layer: WlrLayershell.Top // if set to overlay -> virtual keyboards can be stuck under popup
|
||||
WlrLayershell.layer: WlrLayershell.Top
|
||||
WlrLayershell.exclusiveZone: -1
|
||||
|
||||
// WlrLayershell.keyboardFocus should be set to Exclusive,
|
||||
// if popup contains input fields and does NOT create new popups/modals
|
||||
// with input fields.
|
||||
// With OnDemand virtual keyboards can't send input to popup
|
||||
// If set to Exclusive AND this popup creates other popups, that also have
|
||||
// input fields -> they can't get keyboard focus, because the parent popup
|
||||
// already took the lock
|
||||
WlrLayershell.keyboardFocus: shouldBeVisible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||
|
||||
anchors {
|
||||
@@ -90,7 +82,7 @@ PanelWindow {
|
||||
|
||||
Item {
|
||||
id: contentContainer
|
||||
layer.enabled: true
|
||||
layer.enabled: false
|
||||
|
||||
readonly property real screenWidth: root.screen ? root.screen.width : 1920
|
||||
readonly property real screenHeight: root.screen ? root.screen.height : 1080
|
||||
@@ -116,12 +108,12 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
width: popupWidth
|
||||
height: popupHeight
|
||||
x: calculatedX
|
||||
y: calculatedY
|
||||
width: Math.round(popupWidth)
|
||||
height: Math.round(popupHeight)
|
||||
x: Math.round(calculatedX)
|
||||
y: Math.round(calculatedY)
|
||||
opacity: shouldBeVisible ? 1 : 0
|
||||
scale: shouldBeVisible ? 1 : 0.9
|
||||
scale: 1
|
||||
|
||||
Behavior on opacity {
|
||||
NumberAnimation {
|
||||
@@ -130,12 +122,7 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
Behavior on scale {
|
||||
NumberAnimation {
|
||||
duration: animationDuration
|
||||
easing.type: animationEasing
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loader {
|
||||
id: contentLoader
|
||||
|
||||
Reference in New Issue
Block a user