Build system: Replace Make by Meson
This commit is contained in:
@@ -1,45 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="BackgroundButton" parent="GtkButton">
|
||||
<property name="tooltip-text" translatable="yes">Change background</property>
|
||||
<signal name="clicked" handler="onClicked" swapped="no"/>
|
||||
<style>
|
||||
<class name="image-button"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="GtkPicture">
|
||||
<binding name="paintable">
|
||||
<closure function="getThumbnail" type="GdkPaintable">
|
||||
<lookup name="uri">BackgroundButton</lookup>
|
||||
<lookup name="thumb-width">BackgroundButton</lookup>
|
||||
<lookup name="thumb-height">BackgroundButton</lookup>
|
||||
</closure>
|
||||
</binding>
|
||||
<property name="can-shrink">False</property>
|
||||
<property name="width-request" bind-source="BackgroundButton" bind-property="thumb-width" bind-flags="sync-create"/>
|
||||
<property name="height-request" bind-source="BackgroundButton" bind-property="thumb-height" bind-flags="sync-create"/>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
<object class="GtkFileChooserNative" id="filechooser">
|
||||
<property name="modal">True</property>
|
||||
<property name="action">open</property>
|
||||
<property name="title" translatable="yes">Select your background image</property>
|
||||
<property name="select-multiple">False</property>
|
||||
<signal name="response" handler="onFileChooserResponse" swapped="no"/>
|
||||
<property name="filter">
|
||||
<object class="GtkFileFilter">
|
||||
<mime-types>
|
||||
<mime-type>image/jpeg</mime-type>
|
||||
<mime-type>image/png</mime-type>
|
||||
<mime-type>image/tiff</mime-type>
|
||||
<mime-type>application/xml</mime-type>
|
||||
</mime-types>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -1,42 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021, 2022 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="BackgroundsPage" parent="AdwPreferencesPage">
|
||||
<property name="name">backgrounds</property>
|
||||
<property name="title" translatable="yes">Backgrounds</property>
|
||||
<property name="icon-name">nightthemeswitcher-backgrounds-symbolic</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Day background</property>
|
||||
<property name="activatable-widget">day_button</property>
|
||||
<child>
|
||||
<object class="BackgroundButton" id="day_button">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="margin-bottom">12</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Night background</property>
|
||||
<property name="activatable-widget">night_button</property>
|
||||
<child>
|
||||
<object class="BackgroundButton" id="night_button">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="margin-bottom">12</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="ClearableEntry" parent="GtkEntry">
|
||||
<property name="secondary-icon-name">edit-clear-symbolic</property>
|
||||
<property name="secondary-icon-activatable">True</property>
|
||||
<property name="secondary-icon-tooltip-text" translatable="yes">Clear</property>
|
||||
<signal name="icon-release" handler="onIconReleased" swapped="no"/>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,50 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021, 2022 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="CommandsPage" parent="AdwPreferencesPage">
|
||||
<property name="name">commands</property>
|
||||
<property name="title" translatable="yes">Commands</property>
|
||||
<property name="icon-name">nightthemeswitcher-commands-symbolic</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Run commands</property>
|
||||
<property name="header-suffix">
|
||||
<object class="GtkSwitch" id="enabled_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Sunrise</property>
|
||||
<property name="activatable-widget">sunrise_entry</property>
|
||||
<child>
|
||||
<object class="ClearableEntry" id="sunrise_entry">
|
||||
<property name="placeholder-text" translatable="yes" comments="Don't translate the `notify-send` command.">notify-send "Hello sunshine!"</property>
|
||||
<property name="input-purpose">terminal</property>
|
||||
<property name="width-chars">28</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Sunset</property>
|
||||
<property name="activatable-widget">sunset_entry</property>
|
||||
<child>
|
||||
<object class="ClearableEntry" id="sunset_entry">
|
||||
<property name="placeholder-text" translatable="yes" comments="Don't translate the `notify-send` command.">notify-send "Hello moonshine!"</property>
|
||||
<property name="input-purpose">terminal</property>
|
||||
<property name="width-chars">28</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,82 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2022 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="ContributePage" parent="AdwPreferencesPage">
|
||||
<property name="name">contribute</property>
|
||||
<property name="title" translatable="yes">Contribute</property>
|
||||
<property name="icon-name">nightthemeswitcher-contribute-symbolic</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="margin-top">24</property>
|
||||
<property name="margin-bottom">24</property>
|
||||
<property name="spacing">18</property>
|
||||
<child>
|
||||
<object class="GtkImage">
|
||||
<property name="icon-name">nightthemeswitcher-symbolic</property>
|
||||
<property name="pixel-size">64</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Night Theme Switcher</property>
|
||||
<property name="wrap">True</property>
|
||||
<style>
|
||||
<class name="title-1"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">View the code and report issues</property>
|
||||
<property name="icon-name">nightthemeswitcher-code-symbolic</property>
|
||||
<property name="activatable-widget">gitlab_button</property>
|
||||
<child>
|
||||
<object class="GtkLinkButton" id="gitlab_button">
|
||||
<property name="label">GitLab</property>
|
||||
<property name="uri">https://gitlab.com/rmnvgr/nightthemeswitcher-gnome-shell-extension</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Contribute to the translation</property>
|
||||
<property name="icon-name">nightthemeswitcher-translate-symbolic</property>
|
||||
<property name="activatable-widget">weblate_button</property>
|
||||
<child>
|
||||
<object class="GtkLinkButton" id="weblate_button">
|
||||
<property name="label">Weblate</property>
|
||||
<property name="uri">https://hosted.weblate.org/engage/night-theme-switcher/</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Support me with a donation</property>
|
||||
<property name="icon-name">nightthemeswitcher-support-symbolic</property>
|
||||
<property name="activatable-widget">liberapay_button</property>
|
||||
<child>
|
||||
<object class="GtkLinkButton" id="liberapay_button">
|
||||
<property name="label">Liberapay</property>
|
||||
<property name="uri">https://liberapay.com/rmnvgr/donate</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,130 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021, 2022 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="SchedulePage" parent="AdwPreferencesPage">
|
||||
<property name="name">schedule</property>
|
||||
<property name="title" translatable="yes">Schedule</property>
|
||||
<property name="icon-name">nightthemeswitcher-schedule-symbolic</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Manual time source</property>
|
||||
<property name="subtitle" translatable="yes">The extension will try to use Night Light or Location Services to automatically set your current sunrise and sunset times if they are enabled. If you prefer, you can manually choose a time source.</property>
|
||||
<property name="activatable-widget">manual_time_source_switch</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="manual_time_source_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="time_source_combo_row">
|
||||
<property name="title" translatable="yes">Time source</property>
|
||||
<property name="sensitive" bind-source="manual_time_source_switch" bind-property="active" bind-flags="sync-create"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Always show on-demand controls</property>
|
||||
<property name="subtitle" translatable="yes">Allows you to override the current time when using a schedule.</property>
|
||||
<property name="activatable-widget">always_show_ondemand_switch</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="always_show_ondemand_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Advanced</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Transition</property>
|
||||
<property name="subtitle" translatable="yes">Smooth transition between day and night appearance.</property>
|
||||
<property name="activatable-widget">transition_switch</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="transition_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwExpanderRow" id="nightlight_expander_row">
|
||||
<property name="title" translatable="yes">Night Light</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes"><![CDATA[Follow <i>Disable until tomorrow</i>]]></property>
|
||||
<property name="subtitle" translatable="yes">When Night Light is temporarily disabled, the extension will switch to day variants.</property>
|
||||
<property name="activatable-widget">nightlight_follow_disable_switch</property>
|
||||
<child>
|
||||
<object class="GtkSwitch" id="nightlight_follow_disable_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwExpanderRow">
|
||||
<property name="title" translatable="yes">Manual schedule</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Sunrise</property>
|
||||
<child>
|
||||
<object class="TimeChooser" id="schedule_sunrise_time_chooser">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="margin-bottom">12</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Sunset</property>
|
||||
<child>
|
||||
<object class="TimeChooser" id="schedule_sunset_time_chooser">
|
||||
<property name="margin-top">12</property>
|
||||
<property name="margin-bottom">12</property>
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwExpanderRow">
|
||||
<property name="title" translatable="yes">On-demand</property>
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">Keyboard shortcut</property>
|
||||
<property name="activatable-widget">ondemand_shortcut_button</property>
|
||||
<child>
|
||||
<object class="ShortcutButton" id="ondemand_shortcut_button">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="ondemand_button_location_combo_row">
|
||||
<property name="title" translatable="yes">Button location</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,98 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="ShortcutButton" parent="GtkStack">
|
||||
<property name="hhomogeneous">False</property>
|
||||
<signal name="notify::keybinding" handler="onKeybindingChanged" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkStackPage">
|
||||
<property name="name">choose</property>
|
||||
<property name="child">
|
||||
<object class="GtkButton" id="choose_button">
|
||||
<property name="label" translatable="yes">Choose…</property>
|
||||
<signal name="clicked" handler="onChooseButtonClicked" swapped="no"/>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkStackPage">
|
||||
<property name="name">edit</property>
|
||||
<property name="child">
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">horizontal</property>
|
||||
<style>
|
||||
<class name="linked"/>
|
||||
</style>
|
||||
<child>
|
||||
<object class="GtkButton" id="change_button">
|
||||
<property name="tooltip-text" translatable="yes">Change keyboard shortcut</property>
|
||||
<signal name="clicked" handler="onChangeButtonClicked" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkShortcutLabel">
|
||||
<property name="accelerator" bind-source="ShortcutButton" bind-property="keybinding"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkButton" id="clear_button">
|
||||
<property name="label" translatable="yes">Clear</property>
|
||||
<property name="icon-name">edit-delete-symbolic</property>
|
||||
<property name="tooltip-text" translatable="yes">Clear</property>
|
||||
<signal name="clicked" handler="onClearButtonClicked" swapped="no"/>
|
||||
<style>
|
||||
<class name="destructive-action"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
<object class="AdwWindow" id="dialog">
|
||||
<property name="modal">True</property>
|
||||
<property name="default-width">440</property>
|
||||
<property name="hide-on-close">True</property>
|
||||
<property name="content">
|
||||
<object class="GtkWindowHandle">
|
||||
<property name="vexpand">True</property>
|
||||
<property name="hexpand">True</property>
|
||||
<child>
|
||||
<object class="GtkOverlay">
|
||||
<child type="overlay">
|
||||
<object class="AdwHeaderBar">
|
||||
<property name="title-widget">
|
||||
<object class="GtkBox"/>
|
||||
</property>
|
||||
<property name="valign">start</property>
|
||||
<style>
|
||||
<class name="flat"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwStatusPage">
|
||||
<property name="title" translatable="yes">Press your keyboard shortcut…</property>
|
||||
<property name="icon-name">preferences-desktop-keyboard-shortcuts-symbolic</property>
|
||||
<property name="vexpand">true</property>
|
||||
<style>
|
||||
<class name="compact"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="GtkEventControllerKey">
|
||||
<signal name="key-pressed" handler="onKeyPressed" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
||||
@@ -1,108 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021, 2022 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="ThemesPage" parent="AdwPreferencesPage">
|
||||
<property name="name">themes</property>
|
||||
<property name="title" translatable="yes">Themes</property>
|
||||
<property name="icon-name">nightthemeswitcher-themes-symbolic</property>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">GNOME has a built-in dark mode that the extension uses. Manually switching themes is discouraged and is only here for legacy reasons.</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="xalign">0</property>
|
||||
<style>
|
||||
<class name="heading"/>
|
||||
<class name="error"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">GTK theme</property>
|
||||
<property name="description" translatable="yes">Forcing a dark theme on applications not designed to support it can have undesirable side-effects such as unreadable text or invisible icons.</property>
|
||||
<property name="header-suffix">
|
||||
<object class="GtkSwitch" id="gtk_enabled_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="gtk_day_variant_combo_row">
|
||||
<property name="title" translatable="yes">Day variant</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="gtk_night_variant_combo_row">
|
||||
<property name="title" translatable="yes">Night variant</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Shell theme</property>
|
||||
<property name="header-suffix">
|
||||
<object class="GtkSwitch" id="shell_enabled_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="shell_day_variant_combo_row">
|
||||
<property name="title" translatable="yes">Day variant</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="shell_night_variant_combo_row">
|
||||
<property name="title" translatable="yes">Night variant</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Icon theme</property>
|
||||
<property name="header-suffix">
|
||||
<object class="GtkSwitch" id="icon_enabled_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="icon_day_variant_combo_row">
|
||||
<property name="title" translatable="yes">Day variant</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="icon_night_variant_combo_row">
|
||||
<property name="title" translatable="yes">Night variant</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwPreferencesGroup">
|
||||
<property name="title" translatable="yes">Cursor theme</property>
|
||||
<property name="header-suffix">
|
||||
<object class="GtkSwitch" id="cursor_enabled_switch">
|
||||
<property name="valign">center</property>
|
||||
</object>
|
||||
</property>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="cursor_day_variant_combo_row">
|
||||
<property name="title" translatable="yes">Day variant</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="AdwComboRow" id="cursor_night_variant_combo_row">
|
||||
<property name="title" translatable="yes">Night variant</property>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
</interface>
|
||||
@@ -1,47 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
SPDX-FileCopyrightText: 2021 Romain Vigier <contact AT romainvigier.fr>
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
||||
-->
|
||||
<interface domain="nightthemeswitcher@romainvigier.fr">
|
||||
<template class="TimeChooser" parent="GtkBox">
|
||||
<property name="orientation">horizontal</property>
|
||||
<property name="spacing">8</property>
|
||||
<signal name="notify::time" handler="onTimeChanged" swapped="no"/>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="hours">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="numeric">True</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="adjustment">hours_adjustment</property>
|
||||
<signal name="value-changed" handler="onValueChanged" swapped="no"/>
|
||||
<signal name="output" handler="onOutputChanged" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes" comments="Time separator (eg. 08:27)">:</property>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkSpinButton" id="minutes">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="numeric">True</property>
|
||||
<property name="wrap">True</property>
|
||||
<property name="adjustment">minutes_adjustment</property>
|
||||
<signal name="value-changed" handler="onValueChanged" swapped="no"/>
|
||||
<signal name="output" handler="onOutputChanged" swapped="no"/>
|
||||
</object>
|
||||
</child>
|
||||
</template>
|
||||
<object class="GtkAdjustment" id="hours_adjustment">
|
||||
<property name="lower">0</property>
|
||||
<property name="upper">23</property>
|
||||
<property name="step-increment">1</property>
|
||||
</object>
|
||||
<object class="GtkAdjustment" id="minutes_adjustment">
|
||||
<property name="lower">0</property>
|
||||
<property name="upper">59</property>
|
||||
<property name="step-increment">1</property>
|
||||
</object>
|
||||
</interface>
|
||||
Reference in New Issue
Block a user