mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -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"
|
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.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
|
WlrLayershell.keyboardFocus: shouldBeVisible ? WlrKeyboardFocus.OnDemand : WlrKeyboardFocus.None
|
||||||
|
|
||||||
anchors {
|
anchors {
|
||||||
@@ -90,7 +82,7 @@ PanelWindow {
|
|||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: contentContainer
|
id: contentContainer
|
||||||
layer.enabled: true
|
layer.enabled: false
|
||||||
|
|
||||||
readonly property real screenWidth: root.screen ? root.screen.width : 1920
|
readonly property real screenWidth: root.screen ? root.screen.width : 1920
|
||||||
readonly property real screenHeight: root.screen ? root.screen.height : 1080
|
readonly property real screenHeight: root.screen ? root.screen.height : 1080
|
||||||
@@ -116,12 +108,12 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
width: popupWidth
|
width: Math.round(popupWidth)
|
||||||
height: popupHeight
|
height: Math.round(popupHeight)
|
||||||
x: calculatedX
|
x: Math.round(calculatedX)
|
||||||
y: calculatedY
|
y: Math.round(calculatedY)
|
||||||
opacity: shouldBeVisible ? 1 : 0
|
opacity: shouldBeVisible ? 1 : 0
|
||||||
scale: shouldBeVisible ? 1 : 0.9
|
scale: 1
|
||||||
|
|
||||||
Behavior on opacity {
|
Behavior on opacity {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
@@ -130,12 +122,7 @@ PanelWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Behavior on scale {
|
|
||||||
NumberAnimation {
|
|
||||||
duration: animationDuration
|
|
||||||
easing.type: animationEasing
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
id: contentLoader
|
id: contentLoader
|
||||||
|
|||||||
Reference in New Issue
Block a user