mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-19 16:50:36 +00:00
Add sensors to Hardware/Sensors page
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<!-- Created with Cambalache 0.96.1 -->
|
||||
<interface>
|
||||
<!-- interface-name hardware.ui -->
|
||||
<!-- interface-description The Hardware page for YAFI -->
|
||||
<!-- interface-description The Sensors page for YAFI -->
|
||||
<!-- interface-copyright Steve-Tech -->
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<requires lib="libadwaita" version="1.0"/>
|
||||
@@ -15,7 +15,15 @@
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="selectable">False</property>
|
||||
<property name="title">Hardware Status</property>
|
||||
<property name="title">Sensors</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="hw_als">
|
||||
<property name="title">Ambient Light Sensor</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="hw_als_label"/>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
@@ -26,6 +34,30 @@
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="hw_fp_pwr">
|
||||
<property name="title">Fingerprint</property>
|
||||
<property name="visible">False</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="halign">end</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="spacing">5</property>
|
||||
<property name="valign">center</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="hw_fp_pwr_en">
|
||||
<property name="label">Enable</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="hw_fp_pwr_dis">
|
||||
<property name="label">Disable</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="hw_priv_cam">
|
||||
<property name="subtitle">Use Privacy Switch</property>
|
||||
@@ -65,23 +97,35 @@
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="hw_fp_pwr">
|
||||
<property name="title">Fingerprint</property>
|
||||
<property name="visible">False</property>
|
||||
<object class="AdwActionRow" id="hw_lid_open">
|
||||
<property name="title">Lid Open</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="halign">end</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="spacing">5</property>
|
||||
<property name="valign">center</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="hw_fp_pwr_en">
|
||||
<property name="label">Enable</property>
|
||||
<object class="GtkSwitch" id="hw_lid_open_sw">
|
||||
<property name="active">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow" id="hw_pwr_btn">
|
||||
<property name="title">Power Button Pressed</property>
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="halign">end</property>
|
||||
<property name="homogeneous">True</property>
|
||||
<property name="valign">center</property>
|
||||
<child>
|
||||
<object class="GtkButton" id="hw_fp_pwr_dis">
|
||||
<property name="label">Disable</property>
|
||||
<object class="GtkSwitch" id="hw_pwr_btn_sw">
|
||||
<property name="active">True</property>
|
||||
<property name="sensitive">False</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
<ui template-class="ThermalsPage" filename="thermals.ui" sha256="e301e65649005315ff60d250b60a47f6250ad6feb27db104051fcf0143cde173"/>
|
||||
<ui template-class="LedsPage" filename="leds.ui" sha256="abc3ee759974a5c92feb48cc258dbe7271d0402facf71fd5e779f2bb1a277e16"/>
|
||||
<ui template-class="BatteryLimiterPage" filename="battery-limiter.ui" sha256="b5d41b19cb1fb7ca5b4bcfae43244e54111f5e8d8c51d95448d6a92b5185d2c4"/>
|
||||
<ui template-class="HardwarePage" filename="hardware.ui" sha256="f4deec4e38e683fde97656802dbfb2a638ab46a0e36af5c9a37f277f49e2aabb"/>
|
||||
<ui template-class="HardwarePage" filename="hardware.ui" sha256="37ea282198d9f60435f80e4adf8256cd2249e590dcad4b63af634d828673f1bf"/>
|
||||
<ui template-class="BatteryPage" filename="battery.ui" sha256="d495280cb543a26cdee1c2939e5af980d8d3878c326e360eeab4f05195cdbdc9"/>
|
||||
</cambalache-project>
|
||||
|
||||
Reference in New Issue
Block a user