diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2024-09-15 17:54:59 +0200 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2024-09-22 14:20:06 +0200 |
commit | 50f97ccbf3f672ecd6d37cab3fa8c59ead9d1631 (patch) | |
tree | 5ee948c2b5b8931aacf04d578aba9c89bb8af697 /main/data | |
parent | 65404b24424b2c554c611b24e9ddf7e12ce1a9f4 (diff) | |
download | dino-set-presence.tar.gz dino-set-presence.zip |
Enable setting your own presenceset-presence
- added 1 new icon for xa (extended away/unavailable)
Diffstat (limited to 'main/data')
-rw-r--r-- | main/data/conversation_list_titlebar.ui | 13 | ||||
-rw-r--r-- | main/data/gresource.xml | 1 | ||||
-rw-r--r-- | main/data/icons/scalable/status/dino-status-xa.svg | 6 | ||||
-rw-r--r-- | main/data/menu_presence.ui | 23 |
4 files changed, 43 insertions, 0 deletions
diff --git a/main/data/conversation_list_titlebar.ui b/main/data/conversation_list_titlebar.ui index afe10926..9d02bad7 100644 --- a/main/data/conversation_list_titlebar.ui +++ b/main/data/conversation_list_titlebar.ui @@ -29,5 +29,18 @@ </child> </object> </child> + <child type="end"> + <object class="GtkMenuButton" id="presence_button"> + <property name="halign">end</property> + <property name="hexpand">True</property> + <property name="has-frame">False</property> + <child> + <object class="GtkImage"> + <property name="icon-name">dino-status-chat</property> + <property name="icon-size">normal</property> + </object> + </child> + </object> + </child> </object> </interface> diff --git a/main/data/gresource.xml b/main/data/gresource.xml index 304fa7a4..817c796b 100644 --- a/main/data/gresource.xml +++ b/main/data/gresource.xml @@ -65,6 +65,7 @@ <file>join_room_dialog2.ui</file> <file>menu_add.ui</file> <file>menu_app.ui</file> + <file>menu_presence.ui</file> <file>menu_conversation.ui</file> <file>menu_encryption.ui</file> <file>message_item_widget_edit_mode.ui</file> diff --git a/main/data/icons/scalable/status/dino-status-xa.svg b/main/data/icons/scalable/status/dino-status-xa.svg new file mode 100644 index 00000000..35bac866 --- /dev/null +++ b/main/data/icons/scalable/status/dino-status-xa.svg @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<svg width="28.222mm" height="28.222mm" version="1.1" viewBox="0 0 99.999997 99.999997" xmlns="http://www.w3.org/2000/svg"> + <g transform="translate(-62.857 -678.08)"> + <circle cx="112.86" cy="728.08" r="50" style="fill-rule:evenodd;fill:#e57373"/> + </g> +</svg> diff --git a/main/data/menu_presence.ui b/main/data/menu_presence.ui new file mode 100644 index 00000000..71ca8677 --- /dev/null +++ b/main/data/menu_presence.ui @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <menu id="menu_presence"> + <section> + <item> + <attribute name="action">app.presence_online</attribute> + <attribute name="label" translatable="yes">Online</attribute> + </item> + <item> + <attribute name="action">app.presence_dnd</attribute> + <attribute name="label" translatable="yes">Do not disturb</attribute> + </item> + <item> + <attribute name="action">app.presence_away</attribute> + <attribute name="label" translatable="yes">Away</attribute> + </item> + <item> + <attribute name="action">app.presence_xaway</attribute> + <attribute name="label" translatable="yes">Unavailable</attribute> + </item> + </section> + </menu> +</interface> |