summaryrefslogtreecommitdiffstats
path: root/panels/camera/cc-camera-panel.ui
blob: b357cec55c6f06816c72265fdc297a00719a4356 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <template class="CcCameraPanel" parent="CcPanel">

    <child type="titlebar-end">
      <object class="GtkSwitch" id="main_switch">
        <accessibility>
          <property name="label" translatable="yes">Enable</property>
        </accessibility>
        <property name="valign">center</property>
      </object>
    </child>

    <child type="content">
      <object class="GtkStack" id="stack">

        <!-- Empty page -->
        <child>
          <object class="GtkStackPage">
            <property name="name">empty</property>
            <property name="child">
              <object class="AdwStatusPage">
                <property name="icon-name">camera-disabled-symbolic</property>
                <property name="title" translatable="yes">Camera is Turned Off</property>
                <property name="description" translatable="yes">No applications can capture photos or video.</property>
              </object>
            </property>
          </object>
        </child>

        <!-- Cameras -->
        <child>
          <object class="GtkStackPage">
            <property name="name">content</property>
            <property name="child">
              <object class="AdwPreferencesPage">
                <child>
                  <object class="AdwPreferencesGroup">
                    <property name="description" translatable="yes">Use of the camera allows applications to capture photos and video. Disabling the camera may cause some applications to not function properly.

Allow the applications below to use your camera.</property>
                    <child>
                      <object class="GtkListBox" id="camera_apps_list_box">
                        <property name="selection-mode">none</property>
                        <style>
                          <class name="boxed-list"/>
                        </style>

                        <child type="placeholder">
                          <object class="GtkLabel">
                            <property name="margin-start">18</property>
                            <property name="margin-end">18</property>
                            <property name="margin-top">18</property>
                            <property name="margin-bottom">18</property>
                            <property name="label" translatable="yes">No Applications Have Asked for Camera Access</property>
                            <property name="wrap">true</property>
                            <property name="max-width-chars">50</property>
                            <style>
                              <class name="dim-label" />
                            </style>
                          </object>
                        </child>
                      </object>
                    </child>
                  </object>
                </child>
              </object>
            </property>
          </object>
        </child>

      </object>
    </child>
  </template>
</interface>