Verified Commit f3ab3c0a authored by Jonah Brüchert's avatar Jonah Brüchert 🌳
Browse files

Adapt to plasma nano API change

parent 2f578016
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment