From e578a1bee4d12e45524da8e72f028cf071baa9f9 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 12 Jul 2019 14:28:28 +0300 Subject: [PATCH] improvements for communicator API --- .../package/contents/ui/applet/communicator/Actions.qml | 6 +++--- .../contents/ui/applet/communicator/LatteBridge.qml | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/containment/package/contents/ui/applet/communicator/Actions.qml b/containment/package/contents/ui/applet/communicator/Actions.qml index 055ecf8f7..ee25fb39a 100644 --- a/containment/package/contents/ui/applet/communicator/Actions.qml +++ b/containment/package/contents/ui/applet/communicator/Actions.qml @@ -91,7 +91,7 @@ Item{ } } - function getProperty(appletId, parameter, value) { + function getProperty(appletId, parameter) { if (parameter === "latteSideColoringEnabled") { return mainCommunicator.latteSideColoringEnabled; } else if (parameter === "latteIconOverlayEnabled") { @@ -113,8 +113,8 @@ Item{ //! USAGE: send message to , for command and set its property to //! EXPLANATION: applets can send messages/commands to other applets //! in order to communicate with each other - function broadcastToApplet(pluginName, action, value) { - root.broadcastedToApplet(pluginName, action, value); + function broadcastToApplet(receiverPluginId, action, value) { + root.broadcastedToApplet(receiverPluginId, action, value); } function version(major, minor, patch) { diff --git a/containment/package/contents/ui/applet/communicator/LatteBridge.qml b/containment/package/contents/ui/applet/communicator/LatteBridge.qml index 693258e8d..6cdaf883d 100644 --- a/containment/package/contents/ui/applet/communicator/LatteBridge.qml +++ b/containment/package/contents/ui/applet/communicator/LatteBridge.qml @@ -46,6 +46,14 @@ Item{ // @since: 0.9 readonly property bool inEditMode: root.inConfigureAppletsMode + // NAME: inPlasmaPanelStyle + // USAGE: read-only + // EXPLANATION: Latte sets it to true when this view behaves as Plasma panel concerning + // drawing background shadows externally and applets can take this into account in order + // to adjust their appearance and behavior + // @since: 0.9 + readonly property bool inPlasmaPanelStyle: root.behaveAsPlasmaPanel + // NAME: palette // USAGE: read-only // EXPLANATION: Latte updates it to its coloring palette in order for the applet