anotherim-desktop/main/data/settings_dialog.ui
Maxim Logaev 4f7809dd6c Added language change in settings
Signed-off-by: Maxim Logaev <maxlogaev@proton.me>
2024-04-24 15:57:57 +03:00

166 lines
9.8 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>
<child>
<object class="AdwPreferencesGroup" id="select_lang_group">
<property name="visible">False</property>
<child>
<object class="AdwComboRow" id="select_lang_comborow">
<property name="title" translatable="yes">Select language</property>
<property name="subtitle" translatable="yes">Application restart required</property>
<property name="model">
<object class="GtkStringList" id="select_lang_list">
<items>
<item>English</item>
<item>Русский</item>
</items>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>