File: memory-speedometer.ui

package info (click to toggle)
gnome-usage 48.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,340 kB
  • sloc: sh: 33; xml: 27; makefile: 4
file content (102 lines) | stat: -rw-r--r-- 3,154 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="UTF-8"?>
<interface>
  <requires lib="gtk" version="4.0"/>
  <template class="UsageMemorySpeedometer" parent="AdwBin">
    <property name="width_request">120</property>
    <property name="height_request">120</property>

    <property name="child">
      <object class="GtkBox">
        <property name="orientation">vertical</property>
        <property name="spacing">10</property>

        <child>
          <object class="UsageSpeedometer" id="speedometer">
            <property name="width_request">120</property>
            <property name="height_request">120</property>

            <child>
              <object class="GtkLabel" id="label">
                <property name="hexpand">True</property>
                <property name="label">0%</property>

                <attributes>
                  <attribute name="scale" value="2"/>
                </attributes>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkLabel">
            <property name="label" translatable="yes">RAM</property>
            <attributes>
              <attribute name="weight" value="bold"/>
            </attributes>
          </object>
        </child>

        <child>
          <object class="GtkBox" id="ram_used_box">
            <property name="halign">center</property>
            <property name="spacing">10</property>
            <child>
              <object class="GtkLabel" id="ram_used_label">
                <property name="xalign">1.0</property>
                <property name="label" translatable="yes">Used</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>

            <child>
              <object class="GtkLabel" id="ram_used">
                <property name="label">0.0 GB</property>
              </object>
            </child>
          </object>
        </child>

        <child>
          <object class="GtkBox" id="ram_available_box">
            <property name="halign">center</property>
            <property name="spacing">10</property>
            <child>
              <object class="GtkLabel" id="ram_available_label">
                <property name="xalign">1.0</property>
                <property name="label" translatable="yes">Available</property>
                <style>
                  <class name="dim-label"/>
                </style>
              </object>
            </child>

            <child>
              <object class="GtkLabel" id="ram_available">
                <property name="label">0.0 GB</property>
              </object>
            </child>
          </object>
        </child>
      </object>
    </property>
  </template>

  <object class="GtkSizeGroup">
    <property name="mode">horizontal</property>
    <widgets>
      <widget name="ram_used_label"/>
      <widget name="ram_available_label"/>
    </widgets>
  </object>

  <object class="GtkSizeGroup">
    <widgets>
      <widget name="ram_available_box"/>
      <widget name="ram_used_box"/>
    </widgets>
  </object>

</interface>