diff options
Diffstat (limited to 'src/gtk/preferences_window.ui')
-rw-r--r-- | src/gtk/preferences_window.ui | 157 |
1 files changed, 47 insertions, 110 deletions
diff --git a/src/gtk/preferences_window.ui b/src/gtk/preferences_window.ui index a1192ac..08f9720 100644 --- a/src/gtk/preferences_window.ui +++ b/src/gtk/preferences_window.ui @@ -10,15 +10,9 @@ <property name="title" translatable="yes">Appearance</property> <property name="visible">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="dark_theme_switch"> <property name="title" translatable="yes">_Dark theme</property> <property name="use_underline">True</property> - <property name="activatable_widget">dark_theme_switch</property> - <child> - <object class="GtkSwitch" id="dark_theme_switch"> - <property name="valign">center</property> - </object> - </child> </object> </child> </object> @@ -34,24 +28,19 @@ <property name="show_enable_switch">True</property> <property name="use_underline">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSpinRow" id="notify_of_idle_spin"> <property name="title" translatable="yes">_Minutes to idle</property> <property name="subtitle" translatable="yes">Number of minutes before the user is considered idle</property> <property name="use_underline">True</property> - <child> - <object class="GtkSpinButton" id="notify_of_idle_spin"> - <property name="valign">center</property> - <property name="adjustment"> - <object class="GtkAdjustment"> - <property name="upper">60</property> - <property name="lower">1</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> - </object> - </property> - <property name="numeric">True</property> + <property name="adjustment"> + <object class="GtkAdjustment"> + <property name="upper">60</property> + <property name="lower">1</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> </object> - </child> + </property> + <property name="numeric">True</property> </object> </child> </object> @@ -69,24 +58,19 @@ <property name="show_enable_switch">True</property> <property name="use_underline">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSpinRow" id="pomodoro_spin"> <property name="title" translatable="yes">Interval</property> <property name="subtitle" translatable="yes">Start time in minutes</property> <property name="use_underline">True</property> - <child> - <object class="GtkSpinButton" id="pomodoro_spin"> - <property name="valign">center</property> - <property name="adjustment"> - <object class="GtkAdjustment"> - <property name="upper">999</property> - <property name="lower">1</property> - <property name="step_increment">1</property> - <property name="page_increment">15</property> - </object> - </property> - <property name="numeric">True</property> + <property name="adjustment"> + <object class="GtkAdjustment"> + <property name="upper">999</property> + <property name="lower">1</property> + <property name="step_increment">1</property> + <property name="page_increment">15</property> </object> - </child> + </property> + <property name="numeric">True</property> </object> </child> </object> @@ -98,38 +82,27 @@ <property name="show_enable_switch">True</property> <property name="use_underline">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSpinRow" id="autosave_spin"> <property name="title" translatable="yes">Autosave every X _minutes</property> <property name="use_underline">True</property> - <child> - <object class="GtkSpinButton" id="autosave_spin"> - <property name="valign">center</property> - <property name="adjustment"> - <object class="GtkAdjustment"> - <property name="upper">60</property> - <property name="lower">1</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> - </object> - </property> - <property name="numeric">True</property> + <property name="adjustment"> + <object class="GtkAdjustment"> + <property name="upper">60</property> + <property name="lower">1</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> </object> - </child> + </property> + <property name="numeric">True</property> </object> </child> </object> </child> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="inclusive_total_switch"> <property name="title" translatable="yes">Inclusive total time</property> - <property name="use_underline">True</property> - <property name="activatable_widget">inclusive_total_switch</property> <property name="subtitle" translatable="yes">Today's total time includes the ongoing timer</property> - <child> - <object class="GtkSwitch" id="inclusive_total_switch"> - <property name="valign">center</property> - </object> - </child> + <property name="use_underline">True</property> </object> </child> </object> @@ -145,15 +118,9 @@ <property name="title" translatable="yes">Task List</property> <property name="visible">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="delete_confirmation_switch"> <property name="title" translatable="yes">_Delete confirmation</property> <property name="use_underline">True</property> - <property name="activatable_widget">delete_confirmation_switch</property> - <child> - <object class="GtkSwitch" id="delete_confirmation_switch"> - <property name="valign">center</property> - </object> - </child> </object> </child> <child> @@ -163,64 +130,41 @@ <property name="show_enable_switch">True</property> <property name="use_underline">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSpinRow" id="limit_days_spin"> <property name="title" translatable="yes">_Days ago</property> <property name="subtitle" translatable="yes">Number of days to display in the list</property> <property name="use_underline">True</property> - <child> - <object class="GtkSpinButton" id="limit_days_spin"> - <property name="valign">center</property> - <property name="adjustment"> - <object class="GtkAdjustment"> - <property name="upper">365</property> - <property name="lower">1</property> - <property name="step_increment">1</property> - <property name="page_increment">10</property> - </object> - </property> - <property name="numeric">True</property> + <property name="adjustment"> + <object class="GtkAdjustment"> + <property name="upper">365</property> + <property name="lower">1</property> + <property name="step_increment">1</property> + <property name="page_increment">10</property> </object> - </child> + </property> + <property name="numeric">True</property> </object> </child> </object> </child> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="show_daily_sums_switch"> <property name="title" translatable="yes">Show daily sums</property> <property name="use_underline">True</property> - <property name="activatable_widget">show_daily_sums_switch</property> - <child> - <object class="GtkSwitch" id="show_daily_sums_switch"> - <property name="valign">center</property> - </object> - </child> </object> </child> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="show_seconds_switch"> <property name="title" translatable="yes">_Show seconds</property> - <property name="use_underline">True</property> - <property name="activatable_widget">show_seconds_switch</property> <property name="subtitle" translatable="yes">Tasks list only. Seconds always show on timer</property> - <child> - <object class="GtkSwitch" id="show_seconds_switch"> - <property name="valign">center</property> - </object> - </child> + <property name="use_underline">True</property> </object> </child> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="show_tags_switch"> <property name="title" translatable="yes">Show tags</property> - <property name="use_underline">True</property> - <property name="activatable_widget">show_tags_switch</property> <property name="subtitle" translatable="yes">Tags are saved, just not shown</property> - <child> - <object class="GtkSwitch" id="show_tags_switch"> - <property name="valign">center</property> - </object> - </child> + <property name="use_underline">True</property> </object> </child> </object> @@ -230,15 +174,9 @@ <property name="title" translatable="yes">Task Input</property> <property name="visible">True</property> <child> - <object class="AdwActionRow"> + <object class="AdwSwitchRow" id="autocomplete_switch"> <property name="title" translatable="yes">_Autocomplete</property> <property name="use_underline">True</property> - <property name="activatable_widget">autocomplete_switch</property> - <child> - <object class="GtkSwitch" id="autocomplete_switch"> - <property name="valign">center</property> - </object> - </child> </object> </child> </object> @@ -282,7 +220,7 @@ <property name="valign">center</property> <property name="label" translatable="yes">Browse</property> <style> - <class name="flat"/> + <class name="flat" /> </style> </object> </child> @@ -294,4 +232,3 @@ </child> </template> </interface> - |