diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2018-12-11 20:41:12 -0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2018-12-11 20:46:48 -0200 |
commit | 8f1c9736764a6ccaa20e098f320928f52e2d14e5 (patch) | |
tree | 62319a0c7058b0ea13de695c460fa56e3c8b42e5 /data | |
parent | 6da2513484d9bb6ecff233850aacf3f43be80e6f (diff) | |
download | gnome-todo-8f1c9736764a6ccaa20e098f320928f52e2d14e5.tar.gz |
project: Reorganize files
* Move .ui files to src/ and match their respective .c filenames
* Reorganize plugins a bit
Diffstat (limited to 'data')
-rw-r--r-- | data/icons/icons.gresource.xml | 11 | ||||
-rw-r--r-- | data/theme/Adwaita.css | 138 | ||||
-rw-r--r-- | data/todo.gresource.xml | 94 | ||||
-rw-r--r-- | data/ui/dnd-row.ui | 31 | ||||
-rw-r--r-- | data/ui/edit-pane.ui | 185 | ||||
-rw-r--r-- | data/ui/empty-list.ui | 37 | ||||
-rw-r--r-- | data/ui/initial-setup.ui | 92 | ||||
-rw-r--r-- | data/ui/list-view.ui | 91 | ||||
-rw-r--r-- | data/ui/new-task-row.ui | 36 | ||||
-rw-r--r-- | data/ui/notification.ui | 68 | ||||
-rw-r--r-- | data/ui/plugin-dialog.ui | 103 | ||||
-rw-r--r-- | data/ui/plugin-row.ui | 103 | ||||
-rw-r--r-- | data/ui/provider-popover.ui | 162 | ||||
-rw-r--r-- | data/ui/provider-row.ui | 75 | ||||
-rw-r--r-- | data/ui/provider-selector.ui | 112 | ||||
-rw-r--r-- | data/ui/sidebar-list-row.ui | 134 | ||||
-rw-r--r-- | data/ui/sidebar-panel-row.ui | 41 | ||||
-rw-r--r-- | data/ui/sidebar-provider-row.ui | 101 | ||||
-rw-r--r-- | data/ui/sidebar.ui | 29 | ||||
-rw-r--r-- | data/ui/task-list-panel.ui | 48 | ||||
-rw-r--r-- | data/ui/task-list-popover.ui | 44 | ||||
-rw-r--r-- | data/ui/task-row.ui | 160 | ||||
-rw-r--r-- | data/ui/window.ui | 199 |
23 files changed, 11 insertions, 2083 deletions
diff --git a/data/icons/icons.gresource.xml b/data/icons/icons.gresource.xml new file mode 100644 index 00000000..fa89008b --- /dev/null +++ b/data/icons/icons.gresource.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<gresources> + <!-- Icons --> + <gresource prefix="/org/gnome/todo/icons"> + <file preprocess="xml-stripblanks" alias="scalable/actions/drag-handle-symbolic.svg">hicolor/symbolic/actions/drag-handle-symbolic.svg</file> + <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-all-symbolic.svg">hicolor/symbolic/actions/view-tasks-all-symbolic.svg</file> + <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-today-symbolic.svg">hicolor/symbolic/actions/view-tasks-today-symbolic.svg</file> + <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-unscheduled-symbolic.svg">hicolor/symbolic/actions/view-tasks-unscheduled-symbolic.svg</file> + <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-week-symbolic.svg">hicolor/symbolic/actions/view-tasks-week-symbolic.svg</file> + </gresource> +</gresources> diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css deleted file mode 100644 index 7009e028..00000000 --- a/data/theme/Adwaita.css +++ /dev/null @@ -1,138 +0,0 @@ -.transparent { - background-color: transparent; -} - -row.thumbnail { - border: solid 1px @borders; - box-shadow: 0px 0px 3px alpha(@borders, 0.8);; - border-radius: 16px; -} - -grid-item.thumbnail { - padding: 6px; - font-size: 10px; -} - -grid-item image { - margin: 12px 24px; - font-size: 10px; - border: solid 1px @borders; - border-radius: 4px; - box-shadow: 0px 0px 4px alpha(@borders, 0.8); -} - -grid-item { - background-color: transparent; -} - -grid-item.light { - color: #000003; -} - -grid-item.dark { - color: #eeeeec; -} - -arrow-frame { - border: solid 1px; - border-bottom-width: 0px; - border-top-width: 0px; - background-color: @theme_bg_color; - border-color: @borders; -} - -arrow-frame:dir(ltr) { - border-right-width: 0px; -} - -arrow-frame:dir(rtl) { - border-left-width: 0px; -} - -label.main-title { - font-size: 28px; -} - - -/* - * GtdTaskRow - */ - -taskrow { border-radius: 3px;} - -taskrow:dir(ltr) { padding-left: 6px; } -taskrow:dir(rtl) { padding-right: 6px; } - -taskrow.active { - background-color: @theme_bg_color; - border: solid 1px @borders; -} - -/* task title entry */ -taskrow entry { border: none; background: none; } -taskrow entry { border: solid 1px transparent; } -taskrow entry:hover:not(:focus) { border: solid 1px @borders; } - -/* line-through complete tasks */ -taskrow.complete > * { opacity: 0.5; } -taskrow.complete entry.title { text-decoration-line: line-through; } - -/* dnd row */ -taskrow box.dnd { - background: alpha(@theme_fg_color, 0.1); -} - -tasklistview { background-color: @theme_base_color; } - -/* new task row */ -newtaskrow entry { padding: 0 16px 0 14px; } - -/* extension list */ -list.extension-list row { - border-bottom: solid 1px @borders -} - -/* circle button */ -button.circle { - border-radius: 20px; -} - -/* - * Tasklist view - */ -tasklistview.dark stack spinner, -tasklistview.dark emptylistwidget label, -tasklistview.dark emptylistwidget image { - color: white; -} - -tasklistview.light stack spinner, -tasklistview.light emptylistwidget label, -tasklistview.light emptylistwidget image { - color: black; -} - -/* Add a subtle shadow to color circles */ -image.color-circle-icon { - -gtk-icon-shadow: 0 1px alpha(black, 0.18); -} - -/* - * Hack: Move separator by 1px so that it aligns with the sidebar - * - * Stolen from https://gitlab.gnome.org/GNOME/polari/blob/master/data/resources/application.css - */ -.titlebar > separator:dir(ltr) { margin-left: -1px; } -.titlebar > headerbar:first-child:dir(ltr) { margin-right: 1px; } -.titlebar > separator:dir(rtl) { margin-right: -1px; } -.titlebar > headerbar:first-child:dir(rtl) { margin-left: 1px; } - - -/* Color button */ -colorbutton.dark image { - color: white; -} - -colorbutton.light image { - color: black; -} diff --git a/data/todo.gresource.xml b/data/todo.gresource.xml deleted file mode 100644 index 73718a67..00000000 --- a/data/todo.gresource.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<gresources> - <gresource prefix="/org/gnome/todo"> - <file compressed="true" preprocess="xml-stripblanks">ui/dnd-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/edit-pane.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/empty-list.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/initial-setup.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/list-view.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/sidebar.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/sidebar-list-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/sidebar-panel-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/sidebar-provider-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/new-task-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/notification.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/plugin-dialog.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/plugin-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/provider-popover.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/provider-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/provider-selector.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/task-list-panel.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/task-list-popover.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/task-row.ui</file> - <file compressed="true" preprocess="xml-stripblanks">ui/window.ui</file> - <file compressed="true">theme/Adwaita.css</file> - </gresource> - - - <!-- Icons --> - <gresource prefix="/org/gnome/todo/icons"> - <file preprocess="xml-stripblanks" alias="scalable/actions/drag-handle-symbolic.svg">icons/hicolor/symbolic/actions/drag-handle-symbolic.svg</file> - <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-all-symbolic.svg">icons/hicolor/symbolic/actions/view-tasks-all-symbolic.svg</file> - <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-today-symbolic.svg">icons/hicolor/symbolic/actions/view-tasks-today-symbolic.svg</file> - <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-unscheduled-symbolic.svg">icons/hicolor/symbolic/actions/view-tasks-unscheduled-symbolic.svg</file> - <file preprocess="xml-stripblanks" alias="scalable/actions/view-tasks-week-symbolic.svg">icons/hicolor/symbolic/actions/view-tasks-week-symbolic.svg</file> - </gresource> - - - <!-- Plugins --> - - <!--All Tasks --> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/all-tasks-panel/all-tasks-panel.plugin">../plugins/all-tasks-panel/all-tasks-panel.plugin</file> - </gresource> - - <!--Background--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/background/background.plugin">../plugins/background/background.plugin</file> - <file compressed="true" alias="ui/background/preferences.ui">../plugins/background/ui/preferences.ui</file> - </gresource> - - <!--Dark theme--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/dark-theme/dark-theme.plugin">../plugins/dark-theme/dark-theme.plugin</file> - </gresource> - - <!--EDS Plugin--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/eds/eds.plugin">../plugins/eds/eds.plugin</file> - </gresource> - - <!--Next Week panel--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/next-week-panel/scheduled-panel.plugin">../plugins/next-week-panel/next-week-panel.plugin</file> - <file compressed="true" alias="theme/next-week-panel/Adwaita.css">../plugins/next-week-panel/theme/Adwaita.css</file> - </gresource> - - <!--Night Light--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/night-light/night-light.plugin">../plugins/night-light/night-light.plugin</file> - </gresource> - - <!--Scheduled panel--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/scheduled-panel/scheduled-panel.plugin">../plugins/scheduled-panel/scheduled-panel.plugin</file> - <file compressed="true" alias="theme/scheduled-panel/Adwaita.css">../plugins/scheduled-panel/theme/Adwaita.css</file> - </gresource> - - <!--Today panel--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/today-panel/today-panel.plugin">../plugins/today-panel/today-panel.plugin</file> - <file compressed="true" alias="theme/today-panel/Adwaita.css">../plugins/today-panel/theme/Adwaita.css</file> - </gresource> - - <!--Todo.Txt--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/todo-txt/todo-txt.plugin">../plugins/todo-txt/todo-txt.plugin</file> - </gresource> - - <!--Todoist--> - <gresource prefix="/org/gnome/todo"> - <file alias="plugins/todoist/todoist.plugin">../plugins/todoist/todoist.plugin</file> - <file compressed="true" alias="ui/todoist/preferences.ui">../plugins/todoist/ui/preferences.ui</file> - </gresource> -</gresources> diff --git a/data/ui/dnd-row.ui b/data/ui/dnd-row.ui deleted file mode 100644 index 53826c55..00000000 --- a/data/ui/dnd-row.ui +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.20"/> - <template class="GtdDndRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - <property name="activatable">False</property> - <property name="selectable">False</property> - <property name="halign">center</property> - <property name="margin">3</property> - <child> - <object class="GtkBox" id="box"> - <property name="can_focus">False</property> - <child> - <object class="GtkFrame" id='frame'> - <property name="can_focus">False</property> - <property name="expand">True</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> - <child> - <object class="GtkBox"> - <property name="margin_end">20</property> - <property name="margin_top">20</property> - <property name="margin_bottom">20</property> - </object> - </child> - </object> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/edit-pane.ui b/data/ui/edit-pane.ui deleted file mode 100644 index 9c394183..00000000 --- a/data/ui/edit-pane.ui +++ /dev/null @@ -1,185 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdEditPane" parent="GtkBox"> - <property name="orientation">vertical</property> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="spacing">6</property> - <property name="margin-start">12</property> - <property name="margin-end">12</property> - <property name="margin-bottom">12</property> - - <!-- Header separator --> - <child> - <object class="GtkSeparator" id="separator"> - <property name="can_focus">False</property> - </object> - </child> - - - <!-- Due date --> - <child> - <object class="GtkLabel" id="due_date_dim_label"> - <property name="label" translatable="yes">D_ue Date</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">date_button</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="margin-top">12</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <child> - <object class="GtkButton"> - <property name="label" translatable="yes">_Today</property> - <property name="use_underline">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="on_today_button_clicked_cb" object="GtdEditPane" swapped="no" /> - </object> - </child> - <child> - <object class="GtkButton"> - <property name="label" translatable="yes">To_morrow</property> - <property name="use_underline">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="on_tomorrow_button_clicked_cb" object="GtdEditPane" swapped="no"/> - </object> - </child> - <child> - <object class="GtkMenuButton" id="date_button"> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="popover">date_popover</property> - <child> - <object class="GtkBox" id="date_button_box"> - <property name="can_focus">False</property> - <property name="spacing">7</property> - <child> - <object class="GtkLabel" id="date_label"> - <property name="can_focus">False</property> - <property name="width-chars">10</property> - </object> - </child> - <child> - <object class="GtkImage" id="date_button_image"> - <property name="can_focus">False</property> - <property name="icon_name">pan-down-symbolic</property> - </object> - </child> - </object> - </child> - </object> - </child> - <style> - <class name="linked"/> - </style> - </object> - </child> - - <!-- Notes --> - <child> - <object class="GtkLabel"> - <property name="label" translatable="yes">_Notes</property> - <property name="use_underline">True</property> - <property name="mnemonic_widget">notes_textview</property> - <property name="can_focus">False</property> - <property name="xalign">0</property> - <property name="margin-top">12</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkScrolledWindow"> - <property name="expand">True</property> - <property name="can-focus">True</property> - <property name="shadow-type">in</property> - <property name="min-content-height">200</property> - <child> - <object class="GtkTextView" id="notes_textview"> - <property name="can_focus">True</property> - <property name="accepts_tab">False</property> - <property name="left-margin">6</property> - <property name="right-margin">6</property> - <property name="pixels-above-lines">6</property> - <property name="wrap-mode">word-char</property> - <property name="buffer">text_buffer</property> - - <child> - <object class="GtkGestureMultiPress"> - <property name="propagation-phase">capture</property> - <signal name="pressed" handler="on_hyperlink_clicked_cb" object="GtdEditPane" swapped="no" /> - </object> - </child> - <child> - <object class="GtkEventControllerMotion"> - <signal name="motion" handler="on_hyperlink_hover_cb" object="GtdEditPane" swapped="no" /> - </object> - </child> - </object> - </child> - </object> - </child> - - <!-- Delete button --> - <child> - <object class="GtkButton" id="remove_button"> - <property name="label" translatable="yes">_Delete</property> - <property name="use_underline">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="vexpand">True</property> - <property name="valign">end</property> - <property name="halign">end</property> - <property name="margin-top">12</property> - <signal name="clicked" handler="on_delete_button_clicked_cb" object="GtdEditPane" swapped="no" /> - <style> - <class name="destructive-action"/> - </style> - </object> - </child> - - </template> - - <object class="GtkTextBuffer" id="text_buffer"> - <signal name="notify::text" handler="on_text_buffer_changed_cb" object="GtdEditPane" swapped="no" /> - </object> - - <object class="GtkPopover" id="date_popover"> - <property name="can_focus">False</property> - <property name="position">bottom</property> - <child> - <object class="GtkBox" id="date_popover_box"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="margin">12</property> - <property name="spacing">12</property> - <child> - <object class="GtkCalendar" id="calendar"> - <property name="can_focus">True</property> - <property name="show_week_numbers">True</property> - <signal name="day-selected" handler="on_date_selected_cb" object="GtdEditPane" swapped="no"/> - </object> - </child> - <child> - <object class="GtkButton" id="no_date_button"> - <property name="label" translatable="yes" context="taskdate">None</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <signal name="clicked" handler="on_no_date_button_clicked_cb" object="GtdEditPane" swapped="no"/> - </object> - </child> - </object> - </child> - </object> -</interface> diff --git a/data/ui/empty-list.ui b/data/ui/empty-list.ui deleted file mode 100644 index 3718d9db..00000000 --- a/data/ui/empty-list.ui +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.20"/> - <template class="GtdEmptyListWidget" parent="GtkBox"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child> - <object class="GtkImage" id="icon"> - <property name="can_focus">False</property> - <property name="margin_bottom">18</property> - <property name="vexpand">True</property> - <property name="pixel_size">128</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkLabel" id="title_label"> - <property name="can_focus">False</property> - <attributes> - <attribute name="weight" value="bold"/> - <attribute name="scale" value="1.44"/> - </attributes> - </object> - </child> - <child> - <object class="GtkLabel" id="subtitle_label"> - <property name="can_focus">False</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - </template> -</interface> diff --git a/data/ui/initial-setup.ui b/data/ui/initial-setup.ui deleted file mode 100644 index 466be7cb..00000000 --- a/data/ui/initial-setup.ui +++ /dev/null @@ -1,92 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdInitialSetupWindow" parent="GtkApplicationWindow"> - <property name="width_request">800</property> - <property name="height_request">600</property> - <property name="can_focus">False</property> - <property name="resizable">False</property> - <property name="window_position">center</property> - <property name="default_width">800</property> - <property name="default_height">600</property> - <child> - <object class="GtkBox" id="box"> - <property name="can_focus">False</property> - <property name="valign">center</property> - <property name="margin_bottom">48</property> - <property name="vexpand">True</property> - <property name="orientation">vertical</property> - <property name="spacing">18</property> - <child> - <object class="GtkLabel" id="welcome_label"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Welcome</property> - <style> - <class name="main-title"/> - </style> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="subtitle_label"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Log in to online accounts to access your tasks</property> - <style> - <class name="main-subtitle"/> - </style> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="position">1</property> - </packing> - </child> - <child> - <object class="GtdStorageSelector" id="storage_selector"> - <property name="receives_default">True</property> - <property name="width_request">400</property> - <property name="valign">center</property> - <property name="halign">center</property> - <signal name="storage-selected" handler="gtd_initial_setup_window__location_selected" object="GtdInitialSetupWindow" swapped="yes" /> - </object> - </child> - </object> - </child> - <child type="titlebar"> - <object class="GtkHeaderBar" id="headerbar"> - <property name="can_focus">False</property> - <property name="title" translatable="yes">To Do Setup</property> - <child> - <object class="GtkButton" id="cancel_button"> - <property name="label" translatable="yes">_Cancel</property> - <property name="use_underline">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="gtd_initial_setup_window__button_clicked" object="GtdInitialSetupWindow" swapped="yes"/> - </object> - </child> - <child> - <object class="GtkButton" id="done_button"> - <property name="label" translatable="yes">_Done</property> - <property name="use_underline">True</property> - <property name="sensitive">False</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="gtd_initial_setup_window__button_clicked" object="GtdInitialSetupWindow" swapped="yes"/> - <style> - <class name="suggested-action"/> - </style> - </object> - <packing> - <property name="pack_type">end</property> - <property name="position">1</property> - </packing> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/list-view.ui b/data/ui/list-view.ui deleted file mode 100644 index baca0ec4..00000000 --- a/data/ui/list-view.ui +++ /dev/null @@ -1,91 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdTaskListView" parent="GtkOverlay"> - <property name="can_focus">False</property> - <child> - <object class="GtkBox" id="main_box"> - <property name="can_focus">False</property> - <property name="vexpand">True</property> - <property name="orientation">vertical</property> - - <child> - <object class="GtkScrolledWindow" id="scrolled_window"> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="min-content-height">320</property> - - <!-- Stack --> - <child> - <object class="GtkStack" id="stack"> - <property name="can_focus">False</property> - <property name="homogeneous">False</property> - <property name="expand">True</property> - <property name="transition-type">crossfade</property> - - <!-- Listbox --> - <child> - <object class="GtkBox"> - <property name="can_focus">false</property> - <property name="margin-top">6</property> - <property name="margin-bottom">64</property> - <property name="margin-start">18</property> - <property name="margin-end">18</property> - <property name="orientation">vertical</property> - - <child> - <object class="GtkListBox" id="listbox"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="selection_mode">none</property> - <signal name="drag-drop" handler="listbox_drag_drop" object="GtdTaskListView" swapped="no" /> - <signal name="drag-leave" handler="listbox_drag_leave" object="GtdTaskListView" swapped="no" /> - <signal name="drag-motion" handler="listbox_drag_motion" object="GtdTaskListView" swapped="no" /> - <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdTaskListView" swapped="no" /> - <style> - <class name="transparent" /> - </style> - </object> - </child> - - <child> - <object class="GtdNewTaskRow" id="new_task_row"> - <property name="margin-bottom">24</property> - <signal name="enter" handler="on_new_task_row_entered_cb" object="GtdTaskListView" swapped="yes" /> - <signal name="exit" handler="on_new_task_row_exited_cb" object="GtdTaskListView" swapped="yes" /> - </object> - </child> - </object> - <packing> - <property name="name">listbox</property> - </packing> - </child> - - <!-- Spinner --> - <child> - <object class="GtkSpinner"> - <property name="can_focus">False</property> - <property name="active">True</property> - <property name="width-request">96</property> - <property name="height-request">96</property> - </object> - <packing> - <property name="name">loading</property> - </packing> - </child> - - </object> - </child> - </object> - </child> - </object> - </child> - </template> - <object class="GtkSizeGroup" id="tasklist_name_sizegroup"> - <property name="mode">horizontal</property> - </object> - <object class="GtkSizeGroup" id="due_date_sizegroup"> - <property name="mode">horizontal</property> - </object> -</interface> diff --git a/data/ui/new-task-row.ui b/data/ui/new-task-row.ui deleted file mode 100644 index d7af3583..00000000 --- a/data/ui/new-task-row.ui +++ /dev/null @@ -1,36 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdNewTaskRow" parent="GtkBin"> - <property name="can_focus">True</property> - <property name="margin-top">12</property> - <property name="height-request">42</property> - <property name="halign">center</property> - <property name="css-name">newtaskrow</property> - - <child> - <object class="GtkEntry" id="entry"> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="placeholder-text" translatable="yes">New task…</property> - <property name="primary-icon-name">list-add-symbolic</property> - <signal name="activate" handler="entry_activated_cb" object="GtdNewTaskRow" swapped="yes" /> - <signal name="icon-release" handler="on_entry_icon_released_cb" object="GtdNewTaskRow" swapped="no" /> - - <child> - <object class="GtkEventControllerKey"> - <signal name="focus-in" handler="on_focus_in_cb" object="GtdNewTaskRow" swapped="no" /> - </object> - </child> - - </object> - </child> - </template> - - <object class="GtdTaskListPopover" id="tasklist_popover"> - <property name="can_focus">False</property> - <property name="relative-to">entry</property> - <signal name="notify::task-list" handler="on_tasklist_popover_changed_cb" object="GtdNewTaskRow" swapped="no" /> - <signal name="closed" handler="on_tasklist_popover_closed_cb" object="GtdNewTaskRow" swapped="no" after="yes" /> - </object> -</interface> diff --git a/data/ui/notification.ui b/data/ui/notification.ui deleted file mode 100644 index 47657280..00000000 --- a/data/ui/notification.ui +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdNotificationWidget" parent="GtkRevealer"> - <property name="can_focus">False</property> - - <!-- Event Controller --> - <child> - <object class="GtkEventControllerMotion"> - <signal name="enter" handler="on_motion_controller_enter_cb" object="GtdNotificationWidget" swapped="no" /> - <signal name="leave" handler="on_motion_controller_leave_cb" object="GtdNotificationWidget" swapped="no" /> - </object> - </child> - - <child> - <object class="GtkFrame" id="frame"> - <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <property name="shadow_type">none</property> - <child> - <object class="GtkBox" id="box"> - <property name="can_focus">False</property> - <property name="spacing">12</property> - <child> - <object class="GtkSpinner" id="spinner"> - <property name="visible">False</property> - <property name="can_focus">False</property> - <property name="active">True</property> - </object> - </child> - <child> - <object class="GtkLabel" id="text_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="use_markup">True</property> - <property name="xalign">0</property> - <property name="max-width-chars">30</property> - <property name="ellipsize">middle</property> - </object> - </child> - <child> - <object class="GtkButton" id="secondary_button"> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="on_secondary_button_clicked_cb" object="GtdNotificationWidget" swapped="yes" /> - </object> - </child> - <child> - <object class="GtkButton" id="close_button"> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="relief">none</property> - <property name="icon-name">window-close-symbolic</property> - <signal name="clicked" handler="on_close_button_clicked_cb" object="GtdNotificationWidget" swapped="yes" /> - </object> - </child> - </object> - </child> - <child type="label_item"> - <placeholder/> - </child> - <style> - <class name="app-notification"/> - </style> - </object> - </child> - </template> -</interface> diff --git a/data/ui/plugin-dialog.ui b/data/ui/plugin-dialog.ui deleted file mode 100644 index 48a4f720..00000000 --- a/data/ui/plugin-dialog.ui +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdPluginDialog" parent="GtkDialog"> - <property name="can_focus">False</property> - <property name="type_hint">dialog</property> - <property name="destroy_with_parent">True</property> - <property name="modal">True</property> - <property name="width_request">600</property> - <property name="height_request">450</property> - <property name="hide-on-close">True</property> - <child internal-child="vbox"> - <object class="GtkBox" id="dialog-vbox1"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkStack" id="stack"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="interpolate_size">True</property> - <child> - <object class="GtkScrolledWindow"> - <property name="can_focus">True</property> - <property name="propagate_natural_width">True</property> - <child> - <object class="GtkViewport"> - <property name="can_focus">False</property> - <property name="shadow_type">none</property> - <child> - <object class="GtkListBox" id="listbox"> - <property name="can_focus">False</property> - <property name="selection_mode">none</property> - <style> - <class name="extension-list" /> - </style> - </object> - </child> - </object> - </child> - </object> - <packing> - <property name="name">list</property> - </packing> - </child> - <child> - <object class="GtkFrame" id="frame"> - <property name="can_focus">False</property> - <property name="shadow_type">none</property> - </object> - <packing> - <property name="name">config</property> - </packing> - </child> - </object> - </child> - </object> - </child> - <child type="titlebar"> - <object class="GtkHeaderBar" id="headerbar"> - <property name="can_focus">False</property> - <property name="title" translatable="yes">Extensions</property> - <property name="show-title-buttons">True</property> - <child> - <object class="GtkButton" id="back_button"> - <property name="visible">False</property> - <property name="can_focus">True</property> - <property name="icon-name">go-previous-symbolic</property> - <signal name="clicked" handler="back_button_clicked" object="GtdPluginDialog" swapped="no" /> - </object> - </child> - </object> - </child> - </template> - <object class="GtkBox" id="extension_list_placeholder"> - <property name="can_focus">False</property> - <property name="halign">center</property> - <property name="valign">center</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="orientation">vertical</property> - <property name="spacing">18</property> - <child> - <object class="GtkImage"> - <property name="can_focus">False</property> - <property name="pixel_size">64</property> - <property name="icon_name">preferences-system-symbolic</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkLabel"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">No extensions found</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - </object> -</interface> diff --git a/data/ui/plugin-row.ui b/data/ui/plugin-row.ui deleted file mode 100644 index a013990a..00000000 --- a/data/ui/plugin-row.ui +++ /dev/null @@ -1,103 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.19.0 --> -<interface> - <requires lib="gtk+" version="3.18"/> - <template class="GtdPluginDialogRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - <child> - <object class="GtkGrid"> - <property name="can_focus">False</property> - <property name="margin">12</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkImage" id="icon_image"> - <property name="can_focus">False</property> - <property name="pixel_size">32</property> - <property name="icon_name">application-system-symbolic</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="name_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="description_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <style> - <class name="dim-label"/> - </style> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> - <object class="GtkImage" id="error_image"> - <property name="visible">False</property> - <property name="can_focus">False</property> - <property name="valign">center</property> - <property name="halign">center</property> - <property name="icon_name">dialog-warning-symbolic</property> - <property name="pixel_size">16</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - <child> - <object class="GtkSwitch" id="loaded_switch"> - <property name="can_focus">True</property> - <property name="valign">center</property> - <signal name="notify::active" handler="loaded_switch_changed" object="GtdPluginDialogRow" swapped="yes" /> - </object> - <packing> - <property name="left_attach">3</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - <child> - <object class="GtkButton" id="preferences_button"> - <property name="can_focus">True</property> - <property name="sensitive">False</property> - <property name="halign">center</property> - <property name="valign">center</property> - <signal name="clicked" handler="preferences_button_clicked" object="GtdPluginDialogRow" swapped="yes" /> - <style> - <class name="circle" /> - </style> - <child> - <object class="GtkImage"> - <property name="can_focus">False</property> - <property name="icon_name">preferences-system-symbolic</property> - <property name="pixel_size">16</property> - </object> - </child> - </object> - <packing> - <property name="left_attach">4</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/provider-popover.ui b/data/ui/provider-popover.ui deleted file mode 100644 index 9e24a620..00000000 --- a/data/ui/provider-popover.ui +++ /dev/null @@ -1,162 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdProviderPopover" parent="GtkPopover"> - <property name="can_focus">False</property> - <signal name="closed" handler="gtd_provider_popover__closed" swapped="no" /> - <child> - <object class="GtkStack" id="stack"> - <property name="can_focus">False</property> - <property name="margin">18</property> - <property name="vhomogeneous">False</property> - <property name="interpolate_size">True</property> - <property name="transition_duration">300</property> - <property name="transition_type">slide-left-right</property> - <child> - <object class="GtkGrid" id="new_list_popover_grid"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="row_spacing">12</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkButton" id="new_list_create_button"> - <property name="label" translatable="yes">Create _List</property> - <property name="use_underline">True</property> - <property name="sensitive">False</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="gtd_provider_popover__action_button_clicked" object="GtdProviderPopover" swapped="yes" /> - <style> - <class name="suggested-action"/> - </style> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">2</property> - </packing> - </child> - <child> - <object class="GtkButton" id="new_list_cancel_button"> - <property name="label" translatable="yes">_Cancel</property> - <property name="use_underline">True</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="gtd_provider_popover__action_button_clicked" object="GtdProviderPopover" swapped="yes" /> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">2</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="new_list_popover_dim_label"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">List Name</property> - <property name="xalign">0</property> - <style> - <class name="dim-label"/> - </style> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="width">2</property> - </packing> - </child> - <child> - <object class="GtkBox" id="location_box"> - <property name="can_focus">False</property> - <child> - <object class="GtkEntry" id="new_list_name_entry"> - <property name="can_focus">True</property> - <property name="hexpand">True</property> - <property name="width_chars">35</property> - <signal name="notify::text" handler="gtd_provider_popover__text_changed_cb" object="GtdProviderPopover" swapped="yes" /> - <signal name="activate" handler="gtd_provider_popover__entry_activate" object="GtdProviderPopover" swapped="yes" /> - </object> - </child> - <child> - <object class="GtkButton" id="change_location_button"> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="sensitive">True</property> - <signal name="clicked" handler="gtd_provider_popover__change_location_clicked" object="GtdProviderPopover" swapped="yes" /> - <child> - <object class="GtkImage" id="location_provider_image"> - <property name="can_focus">False</property> - <property name="pixel_size">16</property> - <property name="icon_name">goa-account</property> - </object> - </child> - </object> - </child> - <style> - <class name="linked"/> - </style> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">1</property> - <property name="width">2</property> - </packing> - </child> - </object> - <packing> - <property name="name">main</property> - </packing> - </child> - <child> - <object class="GtkGrid" id="selector_grid"> - <property name="column_spacing">12</property> - <property name="row_spacing">12</property> - <child> - <object class="GtkButton" id="back_button"> - <property name="halign">start</property> - <signal name="clicked" handler="gtd_provider_popover__change_location_clicked" object="GtdProviderPopover" swapped="yes" /> - <child> - <object class="GtkImage" id="back_image"> - <property name="icon-name">go-previous-symbolic</property> - <property name="pixel-size">16</property> - </object> - </child> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="width">1</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="title_label"> - <property name="hexpand">True</property> - <property name="label" translatable="yes">Select a storage location</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="width">1</property> - </packing> - </child> - <child> - <object class="GtdProviderSelector" id="provider_selector"> - <property name="can_focus">True</property> - <property name="show_local">True</property> - <property name="select_default">True</property> - <property name="show_stub_rows">False</property> - <signal name="provider-selected" handler="gtd_provider_popover__provider_selected" object="GtdProviderPopover" swapped="yes" /> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">1</property> - <property name="width">2</property> - </packing> - </child> - </object> - <packing> - <property name="name">selector</property> - </packing> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/provider-row.ui b/data/ui/provider-row.ui deleted file mode 100644 index 7e3338d8..00000000 --- a/data/ui/provider-row.ui +++ /dev/null @@ -1,75 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.18.1 --> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdProviderRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - <property name="selectable">False</property> - <child> - <object class="GtkGrid" id="grid"> - <property name="can_focus">False</property> - <property name="margin">12</property> - <property name="column_spacing">12</property> - <child> - <object class="GtkImage" id="selected"> - <property name="visible">False</property> - <property name="can_focus">False</property> - <property name="icon_name">emblem-ok-symbolic</property> - </object> - <packing> - <property name="left_attach">3</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="name"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - <style> - <class name="dim-label"/> - </style> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">1</property> - </packing> - </child> - <child> - <object class="GtkImage" id="icon"> - <property name="can_focus">False</property> - <property name="pixel_size">32</property> - <property name="icon_name">goa-account</property> - </object> - <packing> - <property name="left_attach">0</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="description"> - <property name="can_focus">False</property> - <property name="xalign">0</property> - </object> - <packing> - <property name="left_attach">1</property> - <property name="top_attach">0</property> - </packing> - </child> - <child> - <object class="GtkLabel" id="enabled"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Off</property> - </object> - <packing> - <property name="left_attach">2</property> - <property name="top_attach">0</property> - <property name="height">2</property> - </packing> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/provider-selector.ui b/data/ui/provider-selector.ui deleted file mode 100644 index aa6b393c..00000000 --- a/data/ui/provider-selector.ui +++ /dev/null @@ -1,112 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdProviderSelector" parent="GtkBox"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <child> - <object class="GtkFrame" id="frame"> - <property name="can_focus">False</property> - <property name="label_xalign">0</property> - <child> - <object class="GtkListBox" id="listbox"> - <property name="sensitive" bind-source="local_check" bind-property="active" bind-flags="default|sync-create|invert-boolean" /> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="vexpand">True</property> - <property name="selection_mode">none</property> - <signal name="row-activated" handler="gtd_provider_selector__listbox_row_activated" object="GtdProviderSelector" swapped="yes" /> - <child> - <object class="GtkListBoxRow" id="google_stub_row"> - <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes">Click to add a new Google account</property> - <child> - <object class="GtkBox" id="google_stub_row_box"> - <property name="can_focus">False</property> - <property name="margin">12</property> - <property name="spacing">12</property> - <child> - <object class="GtkImage" id="google_stub_row_icon_image"> - <property name="can_focus">False</property> - <property name="pixel_size">32</property> - <property name="icon_name">goa-account-google</property> - </object> - </child> - <child> - <object class="GtkLabel" id="google_stub_row_label"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Google</property> - </object> - </child> - </object> - </child> - </object> - </child> - <child> - <object class="GtkListBoxRow" id="owncloud_stub_row"> - <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes">Click to add a new ownCloud account</property> - <child> - <object class="GtkBox" id="box3"> - <property name="can_focus">False</property> - <property name="margin">12</property> - <property name="spacing">12</property> - <child> - <object class="GtkImage" id="image2"> - <property name="can_focus">False</property> - <property name="pixel_size">32</property> - <property name="icon_name">goa-account-owncloud</property> - </object> - </child> - <child> - <object class="GtkLabel" id="label2"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">ownCloud</property> - </object> - </child> - </object> - </child> - </object> - </child> - <child> - <object class="GtkListBoxRow" id="exchange_stub_row"> - <property name="can_focus">True</property> - <property name="tooltip_text" translatable="yes">Click to add a new Microsoft Exchange account</property> - <child> - <object class="GtkBox" id="box4"> - <property name="can_focus">False</property> - <property name="margin">12</property> - <property name="spacing">12</property> - <child> - <object class="GtkImage" id="image3"> - <property name="can_focus">False</property> - <property name="pixel_size">32</property> - <property name="icon_name">goa-account</property> - </object> - </child> - <child> - <object class="GtkLabel" id="label3"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Microsoft Exchange</property> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - </child> - </object> - </child> - <child> - <object class="GtkCheckButton" id="local_check"> - <property name="label" translatable="yes">Or you can just store your tasks on this computer</property> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="draw_indicator">True</property> - <signal name="toggled" handler="gtd_provider_selector__check_toggled" object="GtdProviderSelector" swapped="yes" /> - </object> - </child> - </template> -</interface> diff --git a/data/ui/sidebar-list-row.ui b/data/ui/sidebar-list-row.ui deleted file mode 100644 index b38904c2..00000000 --- a/data/ui/sidebar-list-row.ui +++ /dev/null @@ -1,134 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.20"/> - <template class="GtdSidebarListRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - - <!-- Gestures --> - <child> - <object class="GtkGestureLongPress"> - <property name="propagation-phase">target</property> - <property name="touch-only">true</property> - <signal name="pressed" handler="on_gesture_long_press_cb" object="GtdSidebarListRow" swapped="no" /> - </object> - </child> - <child> - <object class="GtkGestureMultiPress"> - <property name="propagation-phase">bubble</property> - <property name="touch-only">false</property> - <property name="button">3</property> - <signal name="pressed" handler="on_gesture_multipress_released_cb" object="GtdSidebarListRow" swapped="no" /> - </object> - </child> - - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="margin">10</property> - <property name="spacing">6</property> - <child> - <object class="GtkImage" id="color_icon"> - <property name="can_focus">False</property> - <property name="width-request">12</property> - <property name="height-request">12</property> - <property name="halign">center</property> - <property name="valign">center</property> - <style> - <class name="color-circle-icon" /> - </style> - </object> - </child> - <child> - <object class="GtkLabel" id="name_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - </object> - </child> - <child> - <object class="GtkLabel" id="tasks_counter_label"> - <property name="can_focus">False</property> - <attributes> - <attribute name="scale" value="0.88"/> - </attributes> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - </object> - </child> - </template> - - <!-- Rename popover --> - <object class="GtkPopover" id="rename_popover"> - <property name="visible">false</property> - <property name="can_focus">False</property> - <property name="position">right</property> - <signal name="hide" handler="on_rename_popover_hidden_cb" object="GtdSidebarListRow" swapped="no" /> - - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - <property name="margin">12</property> - - <child> - <object class="GtkLabel" id="rename_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0.0</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - </child> - - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="spacing">12</property> - - <!-- Entry --> - <child> - <object class="GtkEntry" id="rename_entry"> - <signal name="activate" handler="on_rename_entry_activated_cb" object="GtdSidebarListRow" swapped="no" /> - <signal name="notify::text" handler="on_rename_entry_text_changed_cb" object="GtdSidebarListRow" swapped="no" /> - </object> - </child> - - <!-- Button --> - <child> - <object class="GtkButton" id="rename_button"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">Rename</property> - <signal name="clicked" handler="on_rename_button_clicked_cb" object="GtdSidebarListRow" swapped="no" /> - <style> - <class name="destructive-action"/> - </style> - </object> - </child> - - </object> - </child> - - </object> - </child> - </object> - - <!-- Right-click menu --> - <menu id="menu"> - <section> - <item> - <attribute name="label" translatable="yes">Rename</attribute> - <attribute name="action">list-row.rename</attribute> - </item> - <item> - <attribute name="label" translatable="yes">Delete</attribute> - <attribute name="action">list-row.delete</attribute> - </item> - </section> - </menu> - -</interface> diff --git a/data/ui/sidebar-panel-row.ui b/data/ui/sidebar-panel-row.ui deleted file mode 100644 index be9bb237..00000000 --- a/data/ui/sidebar-panel-row.ui +++ /dev/null @@ -1,41 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.20"/> - <template class="GtdSidebarPanelRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="margin">10</property> - <property name="spacing">6</property> - <child> - <object class="GtkImage" id="panel_icon"> - <property name="can_focus">False</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkLabel" id="title_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0</property> - </object> - </child> - <child> - <object class="GtkLabel" id="subtitle_label"> - <property name="can_focus">False</property> - <property name="xalign">1.0</property> - <attributes> - <attribute name="scale" value="0.88"/> - </attributes> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - </object> - </child> - </template> -</interface> diff --git a/data/ui/sidebar-provider-row.ui b/data/ui/sidebar-provider-row.ui deleted file mode 100644 index a852723b..00000000 --- a/data/ui/sidebar-provider-row.ui +++ /dev/null @@ -1,101 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.20"/> - <template class="GtdSidebarProviderRow" parent="GtkListBoxRow"> - <property name="can_focus">True</property> - <property name="selectable">False</property> - <property name="activatable">False</property> - <property name="margin_top">6</property> - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="margin_start">6</property> - <property name="margin_end">6</property> - <property name="margin_top">6</property> - <property name="spacing">3</property> - <property name="orientation">vertical</property> - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="margin_start">6</property> - <property name="margin_end">6</property> - <property name="spacing">12</property> - - <!-- Main label --> - <child> - <object class="GtkLabel" id="provider_label"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="xalign">0.0</property> - <attributes> - <attribute name="weight" value="bold"/> - <attribute name="scale" value="0.88"/> - </attributes> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - - <!-- Stack with the loading spinner & pan-down arrow --> - <child> - <object class="GtkStack" id="stack"> - <property name="can_focus">False</property> - <property name="homogeneous">True</property> - <property name="transition-type">crossfade</property> - - <!-- Loading spinner --> - <child> - <object class="GtkSpinner"> - <property name="can_focus">False</property> - <property name="active">True</property> - </object> - <packing> - <property name="name">spinner</property> - </packing> - </child> - - <!-- Drop down icon --> - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - </object> - <packing> - <property name="name">empty</property> - </packing> - </child> - - </object> - </child> - </object> - </child> - - <child> - <object class="GtkSeparator"> - <property name="can_focus">False</property> - </object> - </child> - - <!-- Loading label --> - <child> - <object class="GtkLabel" id="loading_label"> - <property name="can_focus">False</property> - <property name="margin-start">6</property> - <property name="margin-end">6</property> - <property name="margin-top">6</property> - <property name="margin-bottom">12</property> - <property name="xalign">0.0</property> - <property name="label" translatable="yes">Loading…</property> - <attributes> - <attribute name="scale" value="0.88"/> - </attributes> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - - </object> - </child> - </template> -</interface> diff --git a/data/ui/sidebar.ui b/data/ui/sidebar.ui deleted file mode 100644 index 54ab93cd..00000000 --- a/data/ui/sidebar.ui +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <template class="GtdSidebar" parent="GtkBox"> - <property name="can_focus">False</property> - <property name="hexpand">False</property> - <child> - <object class="GtkScrolledWindow"> - <property name="can_focus">True</property> - <property name="min-content-width">300</property> - <property name="hscrollbar-policy">never</property> - <property name="vscrollbar-policy">automatic</property> - - <!-- Listbox --> - <child> - <object class="GtkListBox" id="listbox"> - <property name="can_focus">False</property> - <property name="expand">True</property> - <property name="selection_mode">browse</property> - <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdSidebar" swapped="no" /> - <style> - <class name="sidebar"/> - </style> - </object> - </child> - - </object> - </child> - </template> -</interface> diff --git a/data/ui/task-list-panel.ui b/data/ui/task-list-panel.ui deleted file mode 100644 index 7de76b98..00000000 --- a/data/ui/task-list-panel.ui +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <template class="GtdTaskListPanel" parent="GtkBox"> - <property name="visible">true</property> - <property name="can-focus">false</property> - - <!-- Main task list view --> - <child> - <object class="GtdTaskListView" id="task_list_view"> - </object> - </child> - - </template> - - <!-- Popover --> - <object class="GtkPopoverMenu" id="popover"> - <property name="visible">false</property> - <child> - <object class="GtkBox"> - <property name="orientation">vertical</property> - <property name="spacing">12</property> - - <!-- Color grid --> - <child> - <object class="GtkFlowBox" id="colors_flowbox"> - <property name="expand">true</property> - <property name="selection-mode">none</property> - <property name="min-children-per-line">3</property> - <property name="max-children-per-line">3</property> - <signal name="child-activated" handler="on_colors_flowbox_child_activated_cb" object="GtdTaskListPanel" swapped="no" /> - </object> - </child> - - <child> - <object class="GtkSeparator"> - </object> - </child> - - <child> - <object class="GtkModelButton"> - <property name="label" translatable="yes">Clear completed tasks…</property> - <property name="action-name">list.clear-completed-tasks</property> - </object> - </child> - </object> - </child> - </object> -</interface> diff --git a/data/ui/task-list-popover.ui b/data/ui/task-list-popover.ui deleted file mode 100644 index 1c21981e..00000000 --- a/data/ui/task-list-popover.ui +++ /dev/null @@ -1,44 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <template class="GtdTaskListPopover" parent="GtkPopover"> - <signal name="closed" handler="on_popover_closed_cb" object="GtdTaskListPopover" swapped="no" /> - <child> - <object class="GtkBox"> - <property name="margin">18</property> - <property name="spacing">12</property> - <property name="orientation">vertical</property> - - <!-- Search entry --> - <child> - <object class="GtkSearchEntry" id="search_entry"> - <signal name="activate" handler="on_search_entry_activated_cb" object="GtdTaskListPopover" swapped="no" /> - <signal name="search-changed" handler="on_search_entry_search_changed_cb" object="GtdTaskListPopover" swapped="no" /> - </object> - </child> - - <!-- Listbox --> - <child> - <object class="GtkScrolledWindow"> - <property name="hscrollbar-policy">never</property> - <property name="max-content-height">480</property> - <property name="propagate-natural-height">true</property> - <child> - <object class="GtkListBox" id="listbox"> - <property name="selection_mode">none</property> - <signal name="row-activated" handler="on_listbox_row_activated_cb" object="GtdTaskListPopover" swapped="no" /> - <style> - <class name="background" /> - </style> - </object> - </child> - </object> - </child> - - </object> - </child> - </template> - - <object class="GtkSizeGroup" id="sizegroup"> - <property name="mode">horizontal</property> - </object> -</interface> diff --git a/data/ui/task-row.ui b/data/ui/task-row.ui deleted file mode 100644 index 9ea74ef1..00000000 --- a/data/ui/task-row.ui +++ /dev/null @@ -1,160 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdTaskRow" parent="GtkBin"> - <property name="halign">center</property> - - <!-- Controllers --> - <child> - <object class="GtkEventControllerKey"> - <property name="propagation-phase">capture</property> - <signal name="key-pressed" handler="on_key_pressed_cb" object="GtdTaskRow" swapped="no" /> - </object> - </child> - - <child> - <object class="GtkBox" id="main_box"> - <property name="orientation">vertical</property> - - <child> - <object class="GtkBox" id="content_box"> - <property name="can_focus">False</property> - <property name="orientation">vertical</property> - - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - <property name="margin-end">18</property> - <property name="margin-start">5</property> - <property name="margin-top">5</property> - <property name="margin-bottom">5</property> - <property name="height-request">32</property> - <property name="spacing">6</property> - - <!-- Box with DnD margin --> - <child> - <object class="GtkBox" id="dnd_box"> - <property name="can_focus">False</property> - </object> - </child> - - <child> - <object class="GtkImage" id="dnd_icon"> - <property name="icon-name">drag-handle-symbolic</property> - <property name="pixel-size">16</property> - <signal name="drag-begin" handler="on_drag_begin_cb" object="GtdTaskRow" swapped="no" /> - <signal name="drag-end" handler="on_drag_end_cb" object="GtdTaskRow" swapped="no" /> - <signal name="drag-data-get" handler="on_drag_data_get_cb" object="GtdTaskRow" swapped="no" /> - <signal name="drag-failed" handler="on_drag_failed_cb" object="GtdTaskRow" swapped="no" /> - - <child> - <object class="GtkGestureMultiPress"> - <property name="propagation-phase">capture</property> - <signal name="pressed" handler="on_button_press_event_cb" object="GtdTaskRow" swapped="no" /> - </object> - </child> - <style> - <class name="dim-label" /> - </style> - </object> - </child> - - <!-- Done checkbutton --> - <child> - <object class="GtkCheckButton" id="done_check"> - <property name="can_focus">True</property> - <property name="receives_default">False</property> - <property name="halign">center</property> - <property name="valign">center</property> - <property name="vexpand">True</property> - <property name="draw_indicator">True</property> - <property name="margin-start">6</property> - <signal name="toggled" handler="on_complete_check_toggled_cb" object="GtdTaskRow" swapped="no" /> - </object> - </child> - - <child> - <object class="GtkBox" id="header_event_box"> - <property name="can_focus">False</property> - <signal name="drag-begin" handler="on_drag_begin_cb" object="GtdTaskRow" swapped="no" /> - <signal name="drag-end" handler="on_drag_end_cb" object="GtdTaskRow" swapped="no" /> - <signal name="drag-failed" handler="on_drag_failed_cb" object="GtdTaskRow" swapped="no" /> - - <child> - <object class="GtkGestureMultiPress"> - <property name="propagation-phase">capture</property> - <signal name="pressed" handler="on_button_press_event_cb" object="GtdTaskRow" swapped="no" /> - </object> - </child> - - <!-- Task title entry --> - <child> - <object class="GtdExpandableEntry" id="title_entry"> - <property name="hexpand">True</property> - <property name="halign">start</property> - <property name="width-chars">5</property> - <property name="propagate-natural-width">True</property> - <signal name="activate" handler="on_task_changed_cb" object="GtdTaskRow" swapped="yes" /> - <signal name="notify::text" handler="on_task_changed_cb" object="GtdTaskRow" swapped="yes" /> - <style> - <class name="title" /> - </style> - </object> - </child> - - <child> - <object class="GtkLabel" id="task_date_label"> - <property name="can_focus">False</property> - <property name="xalign">1.0</property> - <property name="margin-start">6</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - <child> - <object class="GtkLabel" id="task_list_label"> - <property name="visible">False</property> - <property name="can_focus">False</property> - <property name="xalign">1.0</property> - <property name="max_width_chars">18</property> - <property name="ellipsize">middle</property> - <style> - <class name="dim-label"/> - </style> - </object> - </child> - - </object> - </child> - </object> - </child> - - <!-- Edit Panel revealer --> - <child> - <object class="GtkRevealer" id="edit_panel_revealer"> - <property name="can_focus">False</property> - <property name="transition_type">slide-down</property> - <property name="transition_duration">250</property> - </object> - </child> - - </object> - </child> - - <!-- Drop indicator --> - <child> - <object class="GtkBox" id='dnd_frame'> - <property name="visible">false</property> - <property name="expand">true</property> - <property name="margin-start">48</property> - <style> - <class name="dnd" /> - </style> - </object> - </child> - - </object> - </child> - </template> -</interface> diff --git a/data/ui/window.ui b/data/ui/window.ui deleted file mode 100644 index 31b88727..00000000 --- a/data/ui/window.ui +++ /dev/null @@ -1,199 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Generated with glade 3.18.1 --> -<interface> - <requires lib="gtk+" version="3.16"/> - <template class="GtdWindow" parent="GtkApplicationWindow"> - <property name="can_focus">False</property> - <property name="default_width">800</property> - <property name="default_height">600</property> - <style> - <class name="org-gnome-Todo"/> - </style> - <child> - <object class="GtkOverlay" id="overlay"> - <property name="can_focus">False</property> - <child type="overlay"> - <object class="GtdNotificationWidget" id="notification_widget"> - <property name="can_focus">False</property> - <property name="halign">center</property> - <property name="valign">start</property> - </object> - </child> - <child> - <object class="GtkBox"> - <property name="can_focus">False</property> - - <!-- Sidebar --> - <child> - <object class="GtdSidebar" id="sidebar"> - <property name="can_focus">False</property> - <property name="vexpand">True</property> - </object> - </child> - - <!-- Main list --> - <child> - <object class="GtkStack" id="stack"> - <property name="can_focus">False</property> - <property name="expand">True</property> - <property name="homogeneous">False</property> - <property name="transition_duration">250</property> - <property name="transition_type">crossfade</property> - <signal name="notify::visible-child" handler="on_stack_visible_child_cb" object="GtdWindow" swapped="yes" /> - <style> - <class name="background" /> - </style> - </object> - </child> - </object> - </child> - </object> - </child> - <child type="titlebar"> - <object class="GtkBox"> - - <!-- First headerbar --> - <child> - <object class="GtkHeaderBar" id="start_headerbar"> - <property name="can_focus">False</property> - - <child> - <object class="GtkMenuButton"> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <property name="popover">new_list_popover</property> - <property name="halign">start</property> - <child> - <object class="GtkLabel"> - <property name="can_focus">False</property> - <property name="label" translatable="yes">_New List</property> - <property name="use_underline">True</property> - </object> - </child> - </object> - </child> - - <!-- App menu --> - <child> - <object class="GtkMenuButton"> - <property name="menu-model">app-menu</property> - <property name="direction">none</property> - </object> - <packing> - <property name="pack-type">end</property> - </packing> - </child> - </object> - </child> - - <child> - <object class="GtkSeparator"> - <property name="orientation">vertical</property> - </object> - </child> - - <!-- Second headerbar --> - <child> - <object class="GtkHeaderBar" id="headerbar"> - <property name="can_focus">False</property> - <property name="hexpand">True</property> - <property name="show-title-buttons">True</property> - <child> - <object class="GtkBox" id="panel_box_start"> - <property name="can_focus">False</property> - <property name="spacing">6</property> - </object> - <packing> - <property name="pack_type">start</property> - </packing> - </child> - <child> - <object class="GtkBox" id="extension_box_start"> - <property name="can_focus">False</property> - <property name="spacing">6</property> - </object> - <packing> - <property name="pack_type">start</property> - </packing> - </child> - <child> - <object class="GtkButton" id="cancel_selection_button"> - <property name="label" translatable="yes">_Cancel</property> - <property name="use_underline">True</property> - <property name="visible">False</property> - <property name="can_focus">True</property> - <property name="receives_default">True</property> - <signal name="clicked" handler="on_cancel_selection_button_clicked" object="GtdWindow" swapped="no" /> - </object> - <packing> - <property name="pack_type">end</property> - <property name="position">2</property> - </packing> - </child> - <child> - <object class="GtkMenuButton" id="gear_menu_button"> - <property name="can_focus">True</property> - <property name="icon-name">view-more-symbolic</property> - </object> - <packing> - <property name="pack_type">end</property> - </packing> - </child> - <child> - <object class="GtkBox" id="panel_box_end"> - <property name="can_focus">False</property> - <property name="spacing">6</property> - </object> - <packing> - <property name="pack_type">end</property> - </packing> - </child> - <child> - <object class="GtkBox" id="extension_box_end"> - <property name="can_focus">False</property> - <property name="spacing">6</property> - </object> - <packing> - <property name="pack_type">end</property> - </packing> - </child> - </object> - </child> - </object> - </child> - </template> - - <!-- New List popover --> - <object class="GtdProviderPopover" id="new_list_popover"> - <property name="can_focus">False</property> - <property name="position">bottom</property> - </object> - - <!-- Sizegroup to keep sidebar & headerbar aligned --> - <object class="GtkSizeGroup"> - <property name="mode">horizontal</property> - <widgets> - <widget name="sidebar" /> - <widget name="start_headerbar" /> - </widgets> - </object> - - <menu id="app-menu"> - <section> - <item> - <attribute name="label" translatable="yes">Extensions</attribute> - <attribute name="action">app.show-extensions</attribute> - </item> - </section> - <section> - <item> - <attribute name="label" translatable="yes">_About</attribute> - <attribute name="action">app.about</attribute> - </item> - <item> - <attribute name="label" translatable="yes">_Quit</attribute> - <attribute name="action">app.quit</attribute> - </item> - </section> - </menu> -</interface> |