Schedule page: Move manual schedule switch to a preference row

This commit is contained in:
Romain Vigier
2022-08-17 14:13:01 +02:00
parent 36bb3b4728
commit f2544d1705
2 changed files with 17 additions and 12 deletions
+9 -4
View File
@@ -10,11 +10,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
<property name="icon-name">nightthemeswitcher-schedule-symbolic</property>
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Manual schedule</property>
<property name="description" translatable="yes">Your location will be used to calculate the current sunrise and sunset times. If you prefer, you can set a manual schedule. It will also be used when your location is unavailable.</property>
<child type="header-suffix">
<object class="GtkSwitch" id="manual_schedule_switch">
<property name="valign">start</property>
<child>
<object class="AdwActionRow">
<property name="title" translatable="yes">Manual schedule</property>
<property name="activatable-widget">manual_schedule_switch</property>
<child>
<object class="GtkSwitch" id="manual_schedule_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: nightthemeswitcher@romainvigier.fr\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-08-16 09:49+0200\n"
"POT-Creation-Date: 2022-08-17 14:12+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -56,7 +56,7 @@ msgstr ""
msgid "Run commands"
msgstr ""
#: src/data/ui/CommandsPage.ui:21 src/data/ui/SchedulePage.ui:22
#: src/data/ui/CommandsPage.ui:21 src/data/ui/SchedulePage.ui:27
msgid "Sunrise"
msgstr ""
@@ -65,7 +65,7 @@ msgstr ""
msgid "notify-send \"Hello sunshine!\""
msgstr ""
#: src/data/ui/CommandsPage.ui:35 src/data/ui/SchedulePage.ui:34
#: src/data/ui/CommandsPage.ui:35 src/data/ui/SchedulePage.ui:39
msgid "Sunset"
msgstr ""
@@ -95,17 +95,17 @@ msgid "Schedule"
msgstr ""
#: src/data/ui/SchedulePage.ui:13
msgid "Manual schedule"
msgstr ""
#: src/data/ui/SchedulePage.ui:14
msgid ""
"Your location will be used to calculate the current sunrise and sunset "
"times. If you prefer, you can set a manual schedule. It will also be used "
"when your location is unavailable."
msgstr ""
#: src/data/ui/SchedulePage.ui:50
#: src/data/ui/SchedulePage.ui:16
msgid "Manual schedule"
msgstr ""
#: src/data/ui/SchedulePage.ui:55
msgid "Keyboard shortcut"
msgstr ""