File: entry-area.ui

package info (click to toggle)
polari 49.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,204 kB
  • sloc: javascript: 8,663; ansic: 1,904; xml: 140; python: 30; makefile: 10; sh: 5
file content (139 lines) | stat: -rw-r--r-- 5,796 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<?xml version="1.0" encoding="UTF-8"?>

<!--
SPDX-FileCopyrightText: 2016 Florian Müllner <fmuellner@gnome.org>

SPDX-License-Identifier: GPL-2.0-or-later
-->

<interface>
  <template class="Gjs_EntryArea" parent="GtkStack">
    <property name="valign">end</property>
    <property name="transition-type">crossfade</property>
    <style>
      <class name="polari-entry-area"/>
      <class name="view"/>
    </style>
    <child>
      <object class="GtkStackPage">
        <property name="name">default</property>
        <property name="child">
          <object class="GtkBox">
            <property name="spacing">6</property>
            <property name="margin-start">6</property>
            <property name="margin-end">12</property>
            <property name="margin-top">12</property>
            <property name="margin-bottom">12</property>
            <child>
              <object class="GtkToggleButton" id="nickButton">
                <property name="receives-default">True</property>
                <property name="focus-on-click">False</property>
                <style>
                  <class name="flat"/>
                  <class name="polari-nick-button"/>
                </style>
                <child>
                  <object class="GtkLabel" id="nickLabel">
                    <property name="xalign">0</property>
                    <attributes>
                      <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
                    </attributes>
                  </object>
                </child>
                <accessibility>
                  <property name="label" translatable="yes">Change nickname</property>
                </accessibility>
              </object>
            </child>
            <child>
              <object class="Gjs_ChatEntry" id="chatEntry">
                <property name="hexpand">True</property>
                <property name="show-emoji-icon">True</property>
                <property name="enable-emoji-completion">True</property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
    <child>
      <object class="GtkStackPage">
        <property name="name">paste-confirmation</property>
        <property name="child">
          <object class="GtkBox" id="pasteBox">
            <property name="spacing">6</property>
            <style>
              <class name="background"/>
              <class name="polari-paste-confirmation"/>
            </style>
            <child>
              <object class="AdwBin">
                <property name="width-request">16</property>
                <property name="child">
                  <object class="AdwSpinner" id="uploadSpinner">
                    <property name="visible">False</property>
                  </object>
                </property>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="uploadLabel">
                <property name="visible" bind-source="confirmLabel"
                          bind-property="visible"
                          bind-flags="sync-create|invert-boolean"/>
                <property name="halign">start</property>
                <property name="hexpand">True</property>
                <property name="ellipsize">end</property>
                <property name="xalign">0</property>
              </object>
            </child>
            <child>
              <object class="GtkLabel" id="confirmLabel">
                <property name="halign">start</property>
                <property name="hexpand">True</property>
                <property name="ellipsize">end</property>
                <property name="xalign">0</property>
                <property name="visible">False</property>
              </object>
            </child>
            <child>
              <object class="GtkRevealer">
                <property name="transition-type">slide-left</property>
                <property name="reveal-child" bind-source="confirmLabel"
                          bind-property="visible" bind-flags="sync-create"/>
                <property name="child">
                  <object class="GtkBox">
                    <property name="valign">center</property>
                    <property name="spacing">6</property>
                    <property name="margin-end">14</property>
                    <child>
                      <object class="GtkButton" id="cancelButton">
                        <property name="label" translatable="yes">_Cancel</property>
                        <property name="receives-default">True</property>
                        <property name="use-underline">True</property>
                        <property name="sensitive" bind-source="confirmLabel"
                                  bind-property="visible" bind-flags="sync-create" />
                      </object>
                    </child>
                    <child>
                      <object class="GtkButton" id="pasteButton">
                        <property name="label" translatable="yes">_Paste</property>
                        <property name="receives-default">True</property>
                        <property name="use-underline">True</property>
                        <property name="sensitive" bind-source="confirmLabel"
                                  bind-property="visible" bind-flags="sync-create"/>
                        <style>
                          <class name="suggested-action"/>
                        </style>
                      </object>
                    </child>
                  </object>
                </property>
              </object>
            </child>
          </object>
        </property>
      </object>
    </child>
  </template>
</interface>