summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTimothy Lee <timothy.ty.lee@gmail.com>2020-01-06 00:43:14 +0100
committerSimon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>2020-01-06 00:45:39 +0100
commitc866cf9faec6333e60f6b55a56b92ec9494747f3 (patch)
tree440256f4383b74dc578063b2ab53e9e6459b50ec /data
parent5a32cb254f0cfdf0b2a35067a435ab1d2b3c50b8 (diff)
downloadixfce4-power-manager-c866cf9faec6333e60f6b55a56b92ec9494747f3.tar.gz
Make brightness steps configurable (Bug #12062)
This commit introduces two new options: 1) Configuring the amount of brightness steps 2) Whether to distribute the steps in a linear or exponential way Both options are presented in the settings dialog and affect the brightness keys and the panel plugin.
Diffstat (limited to 'data')
-rw-r--r--data/interfaces/xfpm-settings.ui60
1 files changed, 60 insertions, 0 deletions
diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index b5cc3cfa..89e5c63d 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -31,6 +31,12 @@
<property name="step_increment">1</property>
<property name="page_increment">10</property>
</object>
+ <object class="GtkAdjustment" id="brightness-step-count-spin-adjustment">
+ <property name="lower">2</property>
+ <property name="upper">100</property>
+ <property name="value">10</property>
+ <property name="step_increment">5</property>
+ </object>
<object class="GtkAdjustment" id="critical-power-level-spin-adjustment">
<property name="lower">1</property>
<property name="upper">20</property>
@@ -455,6 +461,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="halign">end</property>
+ <signal name="state-set" handler="handle_brightness_keys_toggled_cb" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>
@@ -462,6 +469,59 @@
</packing>
</child>
<child>
+ <object class="GtkBox" id="hbox4">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkSpinButton" id="brightness-step-count-spin">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">False</property>
+ <property name="invisible_char">●</property>
+ <property name="primary_icon_activatable">False</property>
+ <property name="secondary_icon_activatable">False</property>
+ <property name="adjustment">brightness-step-count-spin-adjustment</property>
+ <signal name="value-changed" handler="brightness_step_count_value_changed_cb" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="brightness-exponential">
+ <property name="label" translatable="yes">Exponential</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ <signal name="toggled" handler="brightness_exponential_toggled_cb" swapped="no"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">5</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="brightness-step-count-label">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Brightness step count:</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">5</property>
+ </packing>
+ </child>
+ <child>
<object class="GtkLabel" id="handle-brightness-keys-label">
<property name="visible">True</property>
<property name="can_focus">False</property>