mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Adapt to plasma nano API change
This commit is contained in:
parent
2f578016e3
commit
f3ab3c0a56
2 changed files with 6 additions and 6 deletions
|
|
@ -70,10 +70,10 @@ LauncherContainer {
|
|||
NanoShell.StartupFeedback.open(
|
||||
icon,
|
||||
title,
|
||||
ColourAverage.averageColour(img.image),
|
||||
delegate.iconItem.Kirigami.ScenePosition.x + delegate.iconItem.width/2,
|
||||
delegate.iconItem.Kirigami.ScenePosition.y + delegate.iconItem.height/2,
|
||||
Math.min(delegate.iconItem.width, delegate.iconItem.height));
|
||||
Math.min(delegate.iconItem.width, delegate.iconItem.height),
|
||||
ColourAverage.averageColour(img.image));
|
||||
});
|
||||
}
|
||||
onParentFromLocationChanged: {
|
||||
|
|
|
|||
|
|
@ -61,10 +61,10 @@ ColumnLayout {
|
|||
NanoShell.StartupFeedback.open(
|
||||
model.icon,
|
||||
model.text,
|
||||
theme.textColor,
|
||||
icon.Kirigami.ScenePosition.x + icon.width/2,
|
||||
icon.Kirigami.ScenePosition.y + icon.height/2,
|
||||
Math.min(icon.width, icon.height));
|
||||
Math.min(icon.width, icon.height),
|
||||
theme.textColor);
|
||||
plasmoid.nativeInterface.executeCommand(model.settingsCommand);
|
||||
root.closeRequested();
|
||||
}
|
||||
|
|
@ -108,10 +108,10 @@ ColumnLayout {
|
|||
NanoShell.StartupFeedback.open(
|
||||
model.icon,
|
||||
model.text,
|
||||
theme.textColor,
|
||||
icon.Kirigami.ScenePosition.x + icon.width/2,
|
||||
icon.Kirigami.ScenePosition.y + icon.height/2,
|
||||
Math.min(icon.width, icon.height));
|
||||
Math.min(icon.width, icon.height),
|
||||
theme.textColor);
|
||||
//plasmoid.nativeInterface.executeCommand(model.settingsCommand);
|
||||
closeRequested();
|
||||
} else if (model.toggleFunction) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue