Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yate (yate-client) primary and tray icons #1687

Closed
5 tasks
Grief opened this issue Mar 28, 2019 · 5 comments
Closed
5 tasks

yate (yate-client) primary and tray icons #1687

Grief opened this issue Mar 28, 2019 · 5 comments

Comments

@Grief
Copy link

Grief commented Mar 28, 2019

  • App Name: yate
  • Icon Name: null_team-48
  • Description: YateClient is an Instant Messenger and a SoftPhone.
  • Webpage: http://yateclient.yate.ro/
  • Original Icon:

null_team-48


[Desktop Entry]
Encoding=UTF-8
Name=Yate VoIP Client
Name[ro]=Yate client de VoIP
GenericName=VoIP Phone
GenericName[ro]=Telefon VoIP
Comment=Place phone calls over the Internet
Comment[ro]=Apeluri telefonice peste Internet
Exec=yate-qt4
Icon=null_team-48.png
TryExec=yate-qt4
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;Network;Qt
  • tray_incomingcall.png tray_incomingcall
  • null_team-32.png null_team-32
  • tray_notification.png tray_notification
  • tray_info.png tray_info
  • tray_incomingchat.png tray_incomingchat

Hardcoded paths: /usr/share/yate/skins/default/ and /usr/local/share/yate/skins/default/

Source code
if (type == "main") {
    prio = Client::TrayIconMain;
    iconParams = new NamedList(name);
    iconParams->addParam("icon",Client::s_skinPath + "null_team-32.png");
    triggerAction = "action_toggleshow_mainwindow";
    doubleClickAction = false;
}
else if (type == "incomingcall") {
    prio = Client::TrayIconIncomingCall;
    iconParams = new NamedList(name);
    iconParams->addParam("icon",Client::s_skinPath + "tray_incomingcall.png");
    info << "\r\nAn incoming call is waiting";
    triggerAction = s_actionShowCallsList;
    specific = "View calls";
}
else if (type == "notification" || type == "info") {
    iconParams = new NamedList(name);
    if (type == "notification") {
	prio = Client::TrayIconNotification;
	iconParams->addParam("icon",Client::s_skinPath + "tray_notification.png");
	triggerAction = s_actionShowNotification;
    }
    else {
	prio = Client::TrayIconInfo;
	iconParams->addParam("icon",Client::s_skinPath + "tray_info.png");
	triggerAction = s_actionShowInfo;
    }
    info << "\r\nA notification is requiring your attention";
    specific = "View notifications";
}
else if (type == "incomingchat") {
    prio = Client::TrayIconIncomingChat;
    iconParams = new NamedList(name);
    iconParams->addParam("icon",Client::s_skinPath + "tray_incomingchat.png");
    info << "\r\nYou have unread chat";
    triggerAction = s_actionPendingChat;
    specific = "View chat";
}
@varlesh
Copy link
Contributor

varlesh commented Mar 28, 2019

What is this?
Icon Name: /usr/local/share/yate/skins/default/{null_team-16.png,null_team-32.png,null_team-48.png}

@Grief
Copy link
Author

Grief commented Mar 28, 2019

@varlesh This is the location of the icons in the filesystem. I guess, that hard-code-tray is required to change the icons as well

@varlesh
Copy link
Contributor

varlesh commented Mar 31, 2019

@Grief null_team-48 used for application. But where used null_team-32? It's tray icon?

@varlesh
Copy link
Contributor

varlesh commented Mar 31, 2019

ouh, i see sources...
"icon",Client::s_skinPath + "null_team-32.png"

@Grief
Copy link
Author

Grief commented Apr 1, 2019

@varlesh Thanks a lot!
изображение

bilelmoussaoui pushed a commit to bilelmoussaoui/Hardcode-Tray that referenced this issue Apr 2, 2019
RogueScholar pushed a commit to RogueScholar/Hardcode-Tray that referenced this issue Jan 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants