mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-20 01:00:37 +00:00
158 lines
6.5 KiB
XML
158 lines
6.5 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!-- Created with Cambalache 0.96.1 -->
|
|
<interface>
|
|
<!-- interface-name battery.ui -->
|
|
<requires lib="gtk" version="4.0"/>
|
|
<requires lib="libadwaita" version="1.0"/>
|
|
<template class="BatteryPage" parent="GtkBox">
|
|
<property name="homogeneous">True</property>
|
|
<child>
|
|
<object class="GtkPaned">
|
|
<property name="end-child">
|
|
<object class="GtkListBox">
|
|
<property name="width-request">100</property>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_manu">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Manufacturer</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_model">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Model</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_serial">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Serial</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_type">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Type</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_orig_cap">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Design Capacity</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_orig_volts">
|
|
<property name="css-classes">property</property>
|
|
<property name="selectable">False</property>
|
|
<property name="title">Design Voltage</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
<property name="start-child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<child>
|
|
<object class="GtkListBox">
|
|
<property name="margin-end">10</property>
|
|
<property name="margin-start">10</property>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_status">
|
|
<property name="selectable">False</property>
|
|
<property name="title">Battery Statistics</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title">Charge</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="halign">end</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<object class="GtkProgressBar" id="batt_charge">
|
|
<property name="show-text">True</property>
|
|
<property name="width-request">300</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow">
|
|
<property name="title">Health</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="halign">end</property>
|
|
<property name="homogeneous">True</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<object class="GtkProgressBar" id="batt_health">
|
|
<property name="show-text">True</property>
|
|
<property name="width-request">300</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_cycles">
|
|
<property name="title">Charge Cycles</property>
|
|
<child>
|
|
<object class="GtkLabel" id="batt_cycles_label"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_volts">
|
|
<property name="title">Current Voltage</property>
|
|
<child>
|
|
<object class="GtkLabel" id="batt_volts_label"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_watts">
|
|
<property name="title">Current Wattage</property>
|
|
<child>
|
|
<object class="GtkLabel" id="batt_watts_label"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_cap_rem">
|
|
<property name="title">Remaining Charge</property>
|
|
<child>
|
|
<object class="GtkLabel" id="batt_cap_rem_label"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwActionRow" id="batt_cap_full">
|
|
<property name="title">Last Full Charge</property>
|
|
<child>
|
|
<object class="GtkLabel" id="batt_cap_full_label"/>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|