Make battery page interactive

This commit is contained in:
Stephen Horvath
2025-03-19 15:07:10 +10:00
parent 17307fc7d5
commit cf179ca9bd
3 changed files with 163 additions and 8 deletions

View File

@@ -91,7 +91,7 @@
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<object class="AdwPreferencesGroup" id="bat-ext-group">
<property name="description">Preserve the battery lifespan by gradually lowering battery charge voltage automatically if the system is connected to AC for more than the set day limit.</property>
<property name="margin-bottom">5</property>
<property name="margin-end">5</property>
@@ -99,7 +99,7 @@
<property name="margin-top">5</property>
<property name="title">Battery Extender</property>
<child>
<object class="AdwSwitchRow">
<object class="AdwSwitchRow" id="bat-ext-enable">
<property name="title">Enable</property>
</object>
</child>

View File

@@ -62,13 +62,13 @@
(4,5,"GtkBox",None,4,None,None,None,0,None,None),
(4,6,"GtkScale","chg-limit-scale",5,None,None,None,0,None,None),
(4,7,"GtkAdjustment",None,6,None,None,None,0,None,None),
(4,13,"AdwPreferencesGroup",None,2,None,None,None,5,None,None),
(4,13,"AdwPreferencesGroup","bat-ext-group",2,None,None,None,5,None,None),
(4,27,"AdwSpinRow","bat-ext-trigger",13,None,None,None,5,None,None),
(4,28,"GtkAdjustment",None,27,None,None,None,0,None,None),
(4,29,"AdwSpinRow","bat-ext-reset",13,None,None,None,6,None,None),
(4,30,"GtkAdjustment",None,29,None,None,None,0,None,None),
(4,31,"AdwActionRow","bat-ext-stage",13,None,None,None,2,None,None),
(4,32,"AdwSwitchRow",None,13,None,None,None,1,None,None),
(4,32,"AdwSwitchRow","bat-ext-enable",13,None,None,None,1,None,None),
(4,33,"AdwActionRow","bat-limit",2,None,None,None,3,None,None),
(4,34,"GtkBox",None,33,None,None,None,0,None,None),
(4,35,"GtkScale","bat-limit-scale",34,None,None,None,0,None,None),