Adapt to plasma nano API change

This commit is contained in:
Jonah Brüchert 2020-05-25 19:07:38 +02:00
parent 2f578016e3
commit f3ab3c0a56
No known key found for this signature in database
GPG key ID: A81E075ABEC80A7E
2 changed files with 6 additions and 6 deletions

View file

@ -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: {

View file

@ -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) {