mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-09 16:58:16 +03:00
identify kdeconnect sms applet
This commit is contained in:
parent
6722162826
commit
0077029e3f
@ -22,6 +22,8 @@ function reconsiderAppletIconItem(){
|
||||
identifySimpleMenu();
|
||||
} else if (applet.pluginName === "org.kde.plasma.userswitcher"&& !root.behaveAsPlasmaPanel && !container.lockZoom) {
|
||||
identifyUserSwitcher();
|
||||
} else if (applet.pluginName === "org.kde.comexpertise.plasma.kdeconnect.sms") {
|
||||
identifyKdeConnectSms();
|
||||
} else if (applet.pluginName === "org.kde.redshiftControl") {
|
||||
//blacklist
|
||||
} else {
|
||||
@ -51,6 +53,28 @@ function identifyGeneric() {
|
||||
}
|
||||
}
|
||||
|
||||
function identifyKdeConnectSms()
|
||||
{
|
||||
if (applet.pluginName !== "org.kde.comexpertise.plasma.kdeconnect.sms")
|
||||
return;
|
||||
|
||||
var level0 = applet.children;
|
||||
|
||||
for(var i=0; i<level0.length; ++i){
|
||||
var level1 = level0[i].children;
|
||||
for(var j=0; j<level1.length; ++j){
|
||||
var level2 = level1[j].children;
|
||||
for(var k=0; k<level2.length; ++k){
|
||||
if (typeOf(level2[k], "IconItem")) {
|
||||
container.appletIconItem = level2[k];
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
function identifyKickOff() {
|
||||
if (applet.pluginName !== "org.kde.plasma.kickoff")
|
||||
return;
|
||||
@ -140,7 +164,7 @@ function identifyKicker() {
|
||||
}
|
||||
|
||||
if (imageIt){
|
||||
container.appletImageItem = imageIt;
|
||||
container.appletImageItem = imageIt;
|
||||
}
|
||||
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user