|
2 | 2 | <!-- Created with Cambalache 0.96.1 --> |
3 | 3 | <interface> |
4 | 4 | <!-- interface-name hardware.ui --> |
5 | | - <!-- interface-description The Hardware page for YAFI --> |
| 5 | + <!-- interface-description The Sensors page for YAFI --> |
6 | 6 | <!-- interface-copyright Steve-Tech --> |
7 | 7 | <requires lib="gtk" version="4.0"/> |
8 | 8 | <requires lib="libadwaita" version="1.0"/> |
|
15 | 15 | <child> |
16 | 16 | <object class="AdwActionRow"> |
17 | 17 | <property name="selectable">False</property> |
18 | | - <property name="title">Hardware Status</property> |
| 18 | + <property name="title">Sensors</property> |
| 19 | + </object> |
| 20 | + </child> |
| 21 | + <child> |
| 22 | + <object class="AdwActionRow" id="hw_als"> |
| 23 | + <property name="title">Ambient Light Sensor</property> |
| 24 | + <child> |
| 25 | + <object class="GtkLabel" id="hw_als_label"/> |
| 26 | + </child> |
19 | 27 | </object> |
20 | 28 | </child> |
21 | 29 | <child> |
|
26 | 34 | </child> |
27 | 35 | </object> |
28 | 36 | </child> |
| 37 | + <child> |
| 38 | + <object class="AdwActionRow" id="hw_fp_pwr"> |
| 39 | + <property name="title">Fingerprint</property> |
| 40 | + <property name="visible">False</property> |
| 41 | + <child> |
| 42 | + <object class="GtkBox"> |
| 43 | + <property name="halign">end</property> |
| 44 | + <property name="homogeneous">True</property> |
| 45 | + <property name="spacing">5</property> |
| 46 | + <property name="valign">center</property> |
| 47 | + <child> |
| 48 | + <object class="GtkButton" id="hw_fp_pwr_en"> |
| 49 | + <property name="label">Enable</property> |
| 50 | + </object> |
| 51 | + </child> |
| 52 | + <child> |
| 53 | + <object class="GtkButton" id="hw_fp_pwr_dis"> |
| 54 | + <property name="label">Disable</property> |
| 55 | + </object> |
| 56 | + </child> |
| 57 | + </object> |
| 58 | + </child> |
| 59 | + </object> |
| 60 | + </child> |
29 | 61 | <child> |
30 | 62 | <object class="AdwActionRow" id="hw_priv_cam"> |
31 | 63 | <property name="subtitle">Use Privacy Switch</property> |
|
65 | 97 | </object> |
66 | 98 | </child> |
67 | 99 | <child> |
68 | | - <object class="AdwActionRow" id="hw_fp_pwr"> |
69 | | - <property name="title">Fingerprint</property> |
70 | | - <property name="visible">False</property> |
| 100 | + <object class="AdwActionRow" id="hw_lid_open"> |
| 101 | + <property name="title">Lid Open</property> |
71 | 102 | <child> |
72 | 103 | <object class="GtkBox"> |
73 | 104 | <property name="halign">end</property> |
74 | 105 | <property name="homogeneous">True</property> |
75 | | - <property name="spacing">5</property> |
76 | 106 | <property name="valign">center</property> |
77 | 107 | <child> |
78 | | - <object class="GtkButton" id="hw_fp_pwr_en"> |
79 | | - <property name="label">Enable</property> |
| 108 | + <object class="GtkSwitch" id="hw_lid_open_sw"> |
| 109 | + <property name="active">True</property> |
| 110 | + <property name="sensitive">False</property> |
80 | 111 | </object> |
81 | 112 | </child> |
| 113 | + </object> |
| 114 | + </child> |
| 115 | + </object> |
| 116 | + </child> |
| 117 | + <child> |
| 118 | + <object class="AdwActionRow" id="hw_pwr_btn"> |
| 119 | + <property name="title">Power Button Pressed</property> |
| 120 | + <child> |
| 121 | + <object class="GtkBox"> |
| 122 | + <property name="halign">end</property> |
| 123 | + <property name="homogeneous">True</property> |
| 124 | + <property name="valign">center</property> |
82 | 125 | <child> |
83 | | - <object class="GtkButton" id="hw_fp_pwr_dis"> |
84 | | - <property name="label">Disable</property> |
| 126 | + <object class="GtkSwitch" id="hw_pwr_btn_sw"> |
| 127 | + <property name="active">True</property> |
| 128 | + <property name="sensitive">False</property> |
85 | 129 | </object> |
86 | 130 | </child> |
87 | 131 | </object> |
|
0 commit comments