mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 08:50:28 +08:00

* [v3 linux/systray] dbus generation * [v3 linux] systemtray dbus implementation * [v3] add 'id' for MenuSeparator This is needed in order to have a unique value for all menuItem(s) such that the Linux implementation doesn't have to generate new identifiers. Allowing the reuse keeps a 1-1 mapping in place without any extra effort. * [v3 example/systray] add radio group to example * [v3 linux] stub out ExportStatusNotifierItem callbacks Can only seem to get the `SecondaryActivate` to fire when doing a 3-finger click! I was expecting a right-click interaction to trigger it.
86 lines
3.5 KiB
XML
86 lines
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<node name="/StatusNotifierItem">
|
|
<!-- Based on:
|
|
https://invent.kde.org/frameworks/knotifications/-/blob/master/src/org.kde.StatusNotifierItem.xml
|
|
-->
|
|
<interface name="org.kde.StatusNotifierItem">
|
|
<property name="Category" type="s" access="read"/>
|
|
<property name="Id" type="s" access="read"/>
|
|
<property name="Title" type="s" access="read"/>
|
|
<property name="Status" type="s" access="read"/>
|
|
<property name="WindowId" type="i" access="read"/>
|
|
<!-- An additional path to add to the theme search path to find the icons specified above. -->
|
|
<property name="IconThemePath" type="s" access="read"/>
|
|
<property name="Menu" type="o" access="read"/>
|
|
<property name="ItemIsMenu" type="b" access="read"/>
|
|
<!-- main icon -->
|
|
<!-- names are preferred over pixmaps -->
|
|
<property name="IconName" type="s" access="read"/>
|
|
<!-- struct containing width, height and image data -->
|
|
<property name="IconPixmap" type="a(iiay)" access="read">
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
|
|
</property>
|
|
<property name="OverlayIconName" type="s" access="read"/>
|
|
<property name="OverlayIconPixmap" type="a(iiay)" access="read">
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
|
|
</property>
|
|
<!-- Requesting attention icon -->
|
|
<property name="AttentionIconName" type="s" access="read"/>
|
|
<!-- same definition as image -->
|
|
<property name="AttentionIconPixmap" type="a(iiay)" access="read">
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusImageVector"/>
|
|
</property>
|
|
<property name="AttentionMovieName" type="s" access="read"/>
|
|
<!-- tooltip data -->
|
|
<!-- (iiay) is an image -->
|
|
<property name="ToolTip" type="(sa(iiay)ss)" access="read">
|
|
<annotation name="org.qtproject.QtDBus.QtTypeName" value="KDbusToolTipStruct"/>
|
|
</property>
|
|
<!-- interaction: the systemtray wants the application to do something -->
|
|
<method name="ContextMenu">
|
|
<!-- we're passing the coordinates of the icon, so the app knows where to put the popup window -->
|
|
<arg name="x" type="i" direction="in"/>
|
|
<arg name="y" type="i" direction="in"/>
|
|
</method>
|
|
<method name="Activate">
|
|
<arg name="x" type="i" direction="in"/>
|
|
<arg name="y" type="i" direction="in"/>
|
|
</method>
|
|
<method name="SecondaryActivate">
|
|
<arg name="x" type="i" direction="in"/>
|
|
<arg name="y" type="i" direction="in"/>
|
|
</method>
|
|
<method name="Scroll">
|
|
<arg name="delta" type="i" direction="in"/>
|
|
<arg name="orientation" type="s" direction="in"/>
|
|
</method>
|
|
<!-- Signals: the client wants to change something in the status -->
|
|
<signal name="NewTitle"> </signal>
|
|
<signal name="NewIcon"> </signal>
|
|
<signal name="NewAttentionIcon"> </signal>
|
|
<signal name="NewOverlayIcon"> </signal>
|
|
<!-- We disable this as we don't support tooltip, so no need to go through it
|
|
<signal name="NewToolTip">
|
|
</signal>
|
|
-->
|
|
<signal name="NewStatus">
|
|
<arg name="status" type="s"/>
|
|
</signal>
|
|
<!-- The following items are not supported by specs, but widely used -->
|
|
<signal name="NewIconThemePath">
|
|
<arg type="s" name="icon_theme_path" direction="out"/>
|
|
</signal>
|
|
<signal name="NewMenu"/>
|
|
<!-- ayatana labels -->
|
|
<!-- These are commented out because GDBusProxy would otherwise require them,
|
|
but they are not available for KDE indicators
|
|
-->
|
|
<!-- <signal name="XAyatanaNewLabel">
|
|
<arg type="s" name="label" direction="out" />
|
|
<arg type="s" name="guide" direction="out" />
|
|
</signal>
|
|
<property name="XAyatanaLabel" type="s" access="read" />
|
|
<property name="XAyatanaLabelGuide" type="s" access="read" /> -->
|
|
</interface>
|
|
</node>
|