1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-29 05:47:23 +03:00

improvements for communicator API

This commit is contained in:
Michail Vourlakos 2019-07-12 14:28:28 +03:00
parent e52983df7d
commit e578a1bee4
2 changed files with 11 additions and 3 deletions

View File

@ -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 <pluginName>, for <action> command and set its property to <value>
//! 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) {

View File

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