Add inactive background color adjustment in prefs

This commit is contained in:
Kacper Kowalski 2023-02-03 15:50:33 +01:00
parent 6551dba9dc
commit 272328c82d
1 changed files with 116 additions and 61 deletions

View File

@ -340,6 +340,11 @@
<property name="step-increment">0.10</property> <property name="step-increment">0.10</property>
<property name="page-increment">0.20</property> <property name="page-increment">0.20</property>
</object> </object>
<object class="GtkAdjustment" id="adjustment8">
<property name="upper">1</property>
<property name="step-increment">0.10</property>
<property name="page-increment">0.20</property>
</object>
<object class="GtkAdjustment" id="adjustment_cellheight"> <object class="GtkAdjustment" id="adjustment_cellheight">
<property name="lower">1</property> <property name="lower">1</property>
<property name="upper">2</property> <property name="upper">2</property>
@ -887,7 +892,7 @@
<property name="spacing">36</property> <property name="spacing">36</property>
<property name="homogeneous">True</property> <property name="homogeneous">True</property>
<child> <child>
<!-- n-columns=3 n-rows=6 --> <!-- n-columns=3 n-rows=7 -->
<object class="GtkGrid" id="grid3"> <object class="GtkGrid" id="grid3">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">False</property> <property name="can-focus">False</property>
@ -906,7 +911,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">0</property> <property name="left-attach">0</property>
<property name="top-attach">3</property> <property name="top-attach">4</property>
<property name="width">3</property> <property name="width">3</property>
</packing> </packing>
</child> </child>
@ -960,7 +965,7 @@
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="halign">baseline</property> <property name="halign">baseline</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="adjustment">adjustment7</property> <property name="adjustment">adjustment8</property>
<property name="round-digits">2</property> <property name="round-digits">2</property>
<property name="digits">2</property> <property name="digits">2</property>
<property name="draw-value">False</property> <property name="draw-value">False</property>
@ -1030,7 +1035,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">0</property> <property name="left-attach">0</property>
<property name="top-attach">5</property> <property name="top-attach">6</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -1046,7 +1051,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">1</property> <property name="left-attach">1</property>
<property name="top-attach">5</property> <property name="top-attach">6</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -1064,7 +1069,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">2</property> <property name="left-attach">2</property>
<property name="top-attach">5</property> <property name="top-attach">6</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -1081,7 +1086,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">2</property> <property name="left-attach">2</property>
<property name="top-attach">4</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -1097,7 +1102,7 @@
</object> </object>
<packing> <packing>
<property name="left-attach">1</property> <property name="left-attach">1</property>
<property name="top-attach">4</property> <property name="top-attach">5</property>
</packing> </packing>
</child> </child>
<child> <child>
@ -1109,7 +1114,52 @@
</object> </object>
<packing> <packing>
<property name="left-attach">0</property> <property name="left-attach">0</property>
<property name="top-attach">4</property> <property name="top-attach">5</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="label35">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">Unfocused terminal background color</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="inactive_bg_color_offset_value_label">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="label" translatable="yes">100%</property>
<property name="justify">right</property>
<property name="width-chars">5</property>
<property name="max-width-chars">5</property>
<property name="xalign">1</property>
</object>
<packing>
<property name="left-attach">1</property>
<property name="top-attach">3</property>
</packing>
</child>
<child>
<object class="GtkScale" id="inactive_bg_color_offset">
<property name="width-request">100</property>
<property name="visible">True</property>
<property name="can-focus">True</property>
<property name="hexpand">True</property>
<property name="adjustment">adjustment7</property>
<property name="round-digits">2</property>
<property name="digits">2</property>
<property name="draw-value">False</property>
<property name="value-pos">bottom</property>
<signal name="value-changed" handler="on_inactive_bg_color_offset_value_changed" swapped="no"/>
</object>
<packing>
<property name="left-attach">2</property>
<property name="top-attach">3</property>
</packing> </packing>
</child> </child>
</object> </object>
@ -3721,12 +3771,12 @@
</child> </child>
<child> <child>
<object class="GtkVBox" id="vbox124"> <object class="GtkVBox" id="vbox124">
<property name="can-focus">False</property>
<child> <child>
<object class="GtkEntry" id="keybindingsearchentry"> <object class="GtkEntry" id="keybindingsearchentry">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can-focus">True</property> <property name="can-focus">True</property>
<property name="has-focus">False</property> <property name="placeholder-text">filter keybindings</property>
<property name="placeholder_text">filter keybindings</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
@ -3794,6 +3844,11 @@
</object> </object>
</child> </child>
</object> </object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child> </child>
</object> </object>
<packing> <packing>