Files
gnome-night-theme-switcher/src/data/ui/TimeChooser.ui
T

48 lines
1.9 KiB
XML

<?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>