mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-30 00:12:50 -05:00
niri: re-gen layout kdl on dbar spacing change
This commit is contained in:
@@ -1283,6 +1283,9 @@ Singleton {
|
|||||||
function setDankBarSpacing(spacing) {
|
function setDankBarSpacing(spacing) {
|
||||||
dankBarSpacing = spacing
|
dankBarSpacing = spacing
|
||||||
saveSettings()
|
saveSettings()
|
||||||
|
if (typeof NiriService !== "undefined" && CompositorService.isNiri) {
|
||||||
|
NiriService.generateNiriLayoutConfig()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function setDankBarBottomGap(gap) {
|
function setDankBarBottomGap(gap) {
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Item {
|
|||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onPressed: {
|
onPressed: function (mouse){
|
||||||
if (mouse.button === Qt.RightButton) {
|
if (mouse.button === Qt.RightButton) {
|
||||||
if (CompositorService.isNiri) {
|
if (CompositorService.isNiri) {
|
||||||
NiriService.toggleOverview()
|
NiriService.toggleOverview()
|
||||||
|
|||||||
Reference in New Issue
Block a user