mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
Disable powermenu bg on cc
This commit is contained in:
@@ -17,6 +17,14 @@ DankModal {
|
|||||||
function openCentered() {
|
function openCentered() {
|
||||||
parentBounds = Qt.rect(0, 0, 0, 0)
|
parentBounds = Qt.rect(0, 0, 0, 0)
|
||||||
parentScreen = null
|
parentScreen = null
|
||||||
|
backgroundOpacity = 0.5
|
||||||
|
open()
|
||||||
|
}
|
||||||
|
|
||||||
|
function openFromControlCenter(bounds, targetScreen) {
|
||||||
|
parentBounds = bounds
|
||||||
|
parentScreen = targetScreen
|
||||||
|
backgroundOpacity = 0
|
||||||
open()
|
open()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,9 +127,8 @@ DankPopout {
|
|||||||
powerMenuModalLoader.active = true
|
powerMenuModalLoader.active = true
|
||||||
if (powerMenuModalLoader.item) {
|
if (powerMenuModalLoader.item) {
|
||||||
const popoutPos = controlContent.mapToItem(null, 0, 0)
|
const popoutPos = controlContent.mapToItem(null, 0, 0)
|
||||||
powerMenuModalLoader.item.parentScreen = root.triggerScreen
|
const bounds = Qt.rect(popoutPos.x, popoutPos.y, controlContent.width, controlContent.height)
|
||||||
powerMenuModalLoader.item.parentBounds = Qt.rect(popoutPos.x, popoutPos.y, controlContent.width, controlContent.height)
|
powerMenuModalLoader.item.openFromControlCenter(bounds, root.triggerScreen)
|
||||||
powerMenuModalLoader.item.open()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user