mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 16:05:36 +00:00
06481155fd
This adds a style.css file to allow the use of custom css Fixes https://source.puri.sm/Librem5/calls/issues/115: - Making the phone number larger - Moving the delete button to the bottom - Rounding all buttons, and making the grid buttons circular - Making the call button a bit less wide
468 lines
24 KiB
XML
468 lines
24 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- Generated with glade 3.22.0 -->
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<template class="CallsCallDisplay" parent="GtkOverlay">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">center</property>
|
|
<property name="margin_bottom">12</property>
|
|
<property name="margin_left">12</property>
|
|
<property name="margin_right">12</property>
|
|
<property name="margin_top">12</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">True</property>
|
|
<property name="visible">True</property>
|
|
<property name="width_request">300</property>
|
|
<property name="sensitive" bind-source="dial_pad_revealer" bind-property="reveal-child" bind-flags="invert-boolean|bidirectional|sync-create"/>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="incoming_phone_call">
|
|
<property name="visible">False</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_top">40</property>
|
|
<property name="margin_bottom">12</property>
|
|
<property name="label" translatable="yes">Incoming phone call</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="party_box">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">True</property>
|
|
<child>
|
|
<object class="GtkLabel" id="primary_contact_info">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_top">6</property>
|
|
<property name="margin_bottom">6</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
<attribute name="scale" value="1.6"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel" id="secondary_contact_info">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_top">4</property>
|
|
<property name="margin_bottom">4</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkLabel" id="status">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_top">30</property>
|
|
<property name="margin_bottom">40</property>
|
|
<attributes>
|
|
<attribute name="scale" value="1.6"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="controls">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">12</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="vexpand">False</property>
|
|
<child>
|
|
<object class="GtkBox" id="general_controls">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">12</property>
|
|
<property name="height_request">65</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="hexpand">True</property>
|
|
<child>
|
|
<object class="GtkToggleButton" id="mute">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="sensitive">False</property>
|
|
<signal name="toggled" handler="mute_toggled_cb" swapped="no"/>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">microphone-sensitivity-muted-symbolic</property>
|
|
<property name="icon_size">3</property>
|
|
<property name="vexpand">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_bottom">4</property>
|
|
<property name="label" translatable="yes">Mute</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleButton" id="speaker">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="sensitive">False</property>
|
|
<signal name="toggled" handler="speaker_toggled_cb" swapped="no"/>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">audio-volume-high-symbolic</property>
|
|
<property name="icon_size">3</property>
|
|
<property name="vexpand">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_bottom">4</property>
|
|
<property name="label" translatable="yes">Speaker</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="add_call">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="sensitive">False</property>
|
|
<signal name="clicked" handler="add_call_clicked_cb" swapped="no"/>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="resource">/sm/puri/calls/new-call-symbolic.svg</property>
|
|
<property name="icon_size">3</property>
|
|
<property name="vexpand">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_bottom">4</property>
|
|
<property name="label" translatable="yes">Add call</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="gsm_controls">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="spacing">12</property>
|
|
<property name="height_request">65</property>
|
|
<child>
|
|
<object class="GtkToggleButton" id="hold">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="sensitive">False</property>
|
|
<signal name="toggled" handler="hold_toggled_cb" swapped="no"/>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">media-playback-pause-symbolic</property>
|
|
<property name="icon_size">3</property>
|
|
<property name="vexpand">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_bottom">4</property>
|
|
<property name="label" translatable="yes">Hold</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkToggleButton" id="dial_pad">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="active" bind-source="dial_pad_revealer" bind-property="reveal-child" bind-flags="bidirectional|sync-create"/>
|
|
<property name="hexpand">True</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="icon_name">input-dialpad-symbolic</property>
|
|
<property name="icon_size">3</property>
|
|
<property name="vexpand">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_bottom">4</property>
|
|
<property name="label" translatable="yes">Dial Pad</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="blank">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="no_show_all">True</property>
|
|
<property name="hexpand">True</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="CallsEncryptionIndicator" id="encryption_indicator">
|
|
<property name="can_focus">False</property>
|
|
<property name="margin_top">50</property>
|
|
<property name="margin_bottom">30</property>
|
|
<property name="visible">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkBox" id="action_box">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">horizontal</property>
|
|
<property name="hexpand">True</property>
|
|
<child>
|
|
<object class="GtkButton" id="hang_up">
|
|
<property name="always_show_image">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="halign">center</property>
|
|
<property name="height_request">65</property>
|
|
<property name="receives_default">False</property>
|
|
<property name="valign">start</property>
|
|
<property name="visible">True</property>
|
|
<property name="width_request">150</property>
|
|
<property name="hexpand">True</property>
|
|
<signal name="clicked" handler="hang_up_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="destructive-action"/>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="a11y-hang-up">
|
|
<property name="accessible-name" translatable="yes">Hang up</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">call-stop-symbolic</property>
|
|
<property name="icon-size">5</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton" id="answer">
|
|
<property name="always_show_image">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="halign">center</property>
|
|
<property name="height_request">65</property>
|
|
<property name="receives_default">False</property>
|
|
<property name="valign">start</property>
|
|
<property name="visible">True</property>
|
|
<property name="width_request">150</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="margin_left">12</property>
|
|
<signal name="clicked" handler="answer_clicked_cb" swapped="no"/>
|
|
<style>
|
|
<class name="suggested-action"/>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="a11y-answer">
|
|
<property name="accessible-name" translatable="yes">Answer</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">call-start-symbolic</property>
|
|
<property name="icon-size">5</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child type="overlay">
|
|
<object class="GtkRevealer" id="dial_pad_revealer">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="halign">fill</property>
|
|
<property name="valign">end</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">False</property>
|
|
<property name="transition-type">slide-up</property>
|
|
<property name="reveal-child" bind-source="dial_pad" bind-property="active" bind-flags="bidirectional|sync-create"/>
|
|
<child>
|
|
<object class="GtkActionBar">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<style>
|
|
<class name="background"/>
|
|
</style>
|
|
<child type="center">
|
|
<object class="GtkBox" id="box_keypad">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="orientation">vertical</property>
|
|
<property name="width_request">300</property>
|
|
<property name="margin_bottom">6</property>
|
|
<property name="margin_top">12</property>
|
|
<property name="spacing">10</property>
|
|
<child>
|
|
<object class="GtkEntry" id="keypad_entry">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="xalign">0.5</property>
|
|
<signal name="delete-text" handler="block_delete_cb"/>
|
|
<signal name="insert-text" handler="insert_text_cb"/>
|
|
<style>
|
|
<class name="phone-number-entry"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="HdyKeypad" id="keypad">
|
|
<property name="visible">True</property>
|
|
<property name="can_focus">False</property>
|
|
<property name="column_spacing">16</property>
|
|
<property name="row_spacing">10</property>
|
|
<property name="halign">center</property>
|
|
<property name="entry">keypad_entry</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkButton">
|
|
<property name="always_show_image">True</property>
|
|
<property name="can_focus">True</property>
|
|
<property name="halign">center</property>
|
|
<property name="height_request">65</property>
|
|
<property name="receives_default">True</property>
|
|
<property name="valign">start</property>
|
|
<property name="relief">none</property>
|
|
<property name="visible">True</property>
|
|
<property name="width_request">150</property>
|
|
<signal name="clicked" handler="hide_dial_pad_clicked_cb" swapped="yes"/>
|
|
<style>
|
|
<class name="image-button"/>
|
|
</style>
|
|
<child internal-child="accessible">
|
|
<object class="AtkObject" id="a11y-hide-dial-pad">
|
|
<property name="accessible-name" translatable="yes">Hide the dial pad</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="visible">True</property>
|
|
<property name="icon-name">go-down-symbolic</property>
|
|
<property name="icon-size">5</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
<object class="GtkSizeGroup">
|
|
<widgets>
|
|
<widget name="mute"/>
|
|
<widget name="speaker"/>
|
|
<widget name="add_call"/>
|
|
<widget name="dial_pad"/>
|
|
<widget name="hold"/>
|
|
<widget name="blank"/>
|
|
</widgets>
|
|
</object>
|
|
</interface>
|