f2096694c6
Two new switches have been added to the application preferences: - Enable send button - Use Enter to insert newline ('\n') The latter cannot be active or sensitive if the former is not active. Otherwise, users would not be able to send messages. Thanks to horazont for suggesting a separate switch for the behaviour of the Enter key.
147 lines
8.7 KiB
XML
147 lines
8.7 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="DinoUiSettingsDialog" parent="AdwPreferencesWindow">
|
|
<property name="default-width">500</property>
|
|
<property name="default-height">360</property>
|
|
<property name="modal">True</property>
|
|
<property name="search-enabled">False</property>
|
|
<child>
|
|
<object class="AdwPreferencesPage">
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Default encryption for 1-on-1 chats</property>
|
|
<child>
|
|
<object class="GtkBox" id="default_encryption_box">
|
|
<child>
|
|
<object class="GtkCheckButton" id="encryption_radio_undecided">
|
|
<property name="label" translatable="yes">Ask</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">False</property>
|
|
<property name="active">False</property>
|
|
<property name="group">encryption_radio_undecided</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="encryption_radio_omemo">
|
|
<property name="label" translatable="yes">OMEMO</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">False</property>
|
|
<property name="active">False</property>
|
|
<property name="group">encryption_radio_undecided</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkCheckButton" id="encryption_radio_openpgp">
|
|
<property name="label" translatable="yes">OpenPGP</property>
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">False</property>
|
|
<property name="active">False</property>
|
|
<property name="group">encryption_radio_undecided</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Send _Typing Notifications</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">typing_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="typing_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">Send _Read Receipts</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">marker_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="marker_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">_Notifications</property>
|
|
<property name="subtitle" translatable="yes">Notify when a new message arrives</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">notification_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="notification_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">_Convert Smileys to Emoji</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">emoji_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="emoji_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">_Display send button</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">send_button_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="send_button_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title" translatable="yes">_Use Enter key to start a new line</property>
|
|
<property name="subtitle" translatable="yes">If disabled, use Shift+Enter to start a new line</property>
|
|
<property name="use-underline">True</property>
|
|
<property name="activatable-widget">enter_newline_switch</property>
|
|
<child type="suffix">
|
|
<object class="GtkSwitch" id="enter_newline_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|