A GNOME extension to manage the built-in night light temperature https://extensions.gnome.org/extension/1276/night-light-slider/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

410 lines
19 KiB

<?xml version="1.0" encoding="UTF-8"?>
<interface domain="night-light-slider.timur@linux.com">
<template class="NightLightExtensionPrefs" parent="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="GtkInfoBar" id="infobar_status">
<property name="show-close-button">0</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Night Light is disabled in system preferences</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
</object>
</child>
<child type="action">
<object class="GtkButton" id="btn_enable_night_light">
<property name="label" translatable="yes">Enable</property>
</object>
</child>
<action-widgets>
<action-widget response="ok">btn_enable_night_light</action-widget>
</action-widgets>
</object>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="has-frame">1</property>
<property name="hscrollbar-policy">never</property>
<property name="min-content-height">200</property>
<property name="hexpand">0</property>
<property name="vexpand">1</property>
<child>
<object class="GtkListBox">
<property name="vexpand">1</property>
<property name="selection-mode">none</property>
<property name="show-separators">1</property>
<style>
<class name="rich-list"/>
</style>
<child type="placeholder">
<object class="GtkLabel">
<property name="label">No rows found</property>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Slider position</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Manage where in the aggregate menu the slider should show</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkComboBoxText" id="show_in_submenu_combo">
<property name="valign">center</property>
<items>
<item id="show_in_submenu_false" translatable="yes">Top-level menu</item>
<item id="show_in_submenu_true" translatable="yes">Night Light submenu</item>
</items>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Always show slider</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Show the slider even when night light is disabled or off</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="show_always_toggle_switch">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Show indicator</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Show the night light indicator in the status area when night light is enabled</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="show_status_icon_toggle_switch">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Swap slider axis</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Invert the slider axis such that lower is cooler and higher is warmer</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="swap_axis_toggle_switch">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Sync brightness percentage</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Adjust both brightness and night light warmth</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="brightness_sync_toggle_switch">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Enable permanent night light</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Constantly update the night light schedule such that it is enabled throughout the day</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSwitch" id="enable_always_toggle_switch">
<property name="halign">end</property>
<property name="valign">center</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Highest temperature</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Maximum slider value, higher is cooler</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSpinButton" id="spinbutton_maximum">
<property name="valign">center</property>
<property name="adjustment">temperature_adjustment_maximum</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">4</property>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Lowest temperature</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<style>
<class name="heading"/>
</style>
</object>
</child>
<child>
<object class="GtkLabel">
<property name="label" translatable="yes">Minimum slider value, lower is warmer</property>
<property name="halign">start</property>
<property name="valign">center</property>
<property name="hexpand">1</property>
<property name="ellipsize">middle</property>
<style>
<class name="body"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="GtkSpinButton" id="spinbutton_minimum">
<property name="valign">center</property>
<property name="adjustment">temperature_adjustment_minimum</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
<object class="GtkAdjustment" id="temperature_adjustment_maximum">
<property name="lower" bind-source="temperature_adjustment_minimum" bind-property="value" bind-flags="default|sync-create"/>
<property name="upper">9000</property>
<property name="step_increment">100</property>
<property name="page_increment">10</property>
</object>
<object class="GtkAdjustment" id="temperature_adjustment_minimum">
<property name="lower">1000</property>
<property name="upper" bind-source="temperature_adjustment_maximum" bind-property="value" bind-flags="default|sync-create"/>
<property name="step_increment">100</property>
<property name="page_increment">10</property>
</object>
</interface>