mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-30 15:07:49 -04:00
1 parent
6f68c94bc3
commit
fd137f0c81
2 files changed
+5
-3
No files matched your search
@@ -21,7 +21,8 @@ DModal {
|
||||
keepContentLoaded: true
|
||||
allowStacking: true
|
||||
|
||||
function show() {
|
||||
function show(overlayLayer = false) {
|
||||
useOverlayLayer = overlayLayer;
|
||||
open();
|
||||
contentLoader?.item?.setColor(selectedColor);
|
||||
}
|
||||
@@ -54,6 +55,7 @@ DModal {
|
||||
if (contentLoader?.item?.pickingFromScreen)
|
||||
return;
|
||||
onColorSelectedCallback = null;
|
||||
useOverlayLayer = false;
|
||||
}
|
||||
onColorSelected: color => {
|
||||
if (typeof onColorSelectedCallback === "function")
|
||||
@@ -111,7 +113,7 @@ DModal {
|
||||
root.hideInstant();
|
||||
startScreenPick();
|
||||
}
|
||||
onShowRequested: root.show()
|
||||
onShowRequested: root.show(root.useOverlayLayer)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -101,7 +101,7 @@ SettingsRow {
|
||||
root.customColorSelected(selectedColor);
|
||||
root.colorModeSelected("custom");
|
||||
};
|
||||
PopoutService.colorPickerModal.show();
|
||||
PopoutService.colorPickerModal.show(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user