diff options
Diffstat (limited to '')
-rw-r--r-- | src/resources/ui/nautilus-search-popover.ui | 336 |
1 files changed, 336 insertions, 0 deletions
diff --git a/src/resources/ui/nautilus-search-popover.ui b/src/resources/ui/nautilus-search-popover.ui new file mode 100644 index 0000000..08ce86a --- /dev/null +++ b/src/resources/ui/nautilus-search-popover.ui @@ -0,0 +1,336 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <template class="NautilusSearchPopover" parent="GtkPopover"> + <property name="child"> + <object class="GtkGrid"> + <property name="margin-top">20</property> + <property name="margin-bottom">20</property> + <property name="margin-start">20</property> + <property name="margin-end">20</property> + <property name="row_spacing">8</property> + <property name="column_spacing">18</property> + <child> + <object class="GtkLabel" id="when_dim_label"> + <property name="label" translatable="yes">When</property> + <property name="xalign">0</property> + <style> + <class name="dim-label"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">0</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkStack" id="date_stack"> + <property name="transition_type">crossfade</property> + <property name="transition_duration">250</property> + <child> + <object class="GtkStackPage"> + <property name="name">date-button</property> + <property name="child"> + <object class="GtkBox"> + <child> + <object class="GtkButton" id="select_date_button"> + <property name="tooltip_text" translatable="yes">Select a date</property> + <property name="hexpand">True</property> + <child> + <object class="GtkLabel" id="select_date_button_label"> + <property name="label" translatable="yes">Select Dates…</property> + <property name="xalign">0</property> + </object> + </child> + <signal name="clicked" handler="select_date_button_clicked" object="NautilusSearchPopover" swapped="no"/> + </object> + </child> + <child> + <object class="GtkButton" id="clear_date_button"> + <property name="visible">False</property> + <property name="tooltip_text" translatable="yes">Clear the currently selected date</property> + <property name="icon_name">edit-clear-symbolic</property> + <signal name="clicked" handler="clear_date_button_clicked" object="NautilusSearchPopover" swapped="no"/> + </object> + </child> + <style> + <class name="linked"/> + </style> + </object> + </property> + </object> + </child> + <child> + <object class="GtkStackPage"> + <property name="name">date-entry</property> + <property name="child"> + <object class="GtkEntry" id="date_entry"> + <property name="secondary_icon_name">x-office-calendar-symbolic</property> + <property name="secondary_icon_tooltip_text" translatable="yes">Show a calendar to select the date</property> + <signal name="icon-release" handler="toggle_calendar_icon_clicked" object="NautilusSearchPopover" swapped="no"/> + <signal name="activate" handler="date_entry_activate" object="NautilusSearchPopover" swapped="no"/> + </object> + </property> + </object> + </child> + <layout> + <property name="column">0</property> + <property name="row">1</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkRevealer" id="around_revealer"> + <property name="child"> + <object class="GtkGrid"> + <property name="row_spacing">8</property> + <property name="column_spacing">12</property> + <child> + <object class="GtkLabel" id="around_dim_label"> + <property name="margin_top">10</property> + <property name="label" translatable="yes">Since…</property> + <property name="xalign">0</property> + <style> + <class name="dim-label"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">0</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkStack" id="around_stack"> + <property name="vhomogeneous">False</property> + <property name="transition_type">crossfade</property> + <property name="transition_duration">250</property> + <child> + <object class="GtkStackPage"> + <property name="name">date-list</property> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="height_request">200</property> + <property name="hexpand">True</property> + <property name="child"> + <object class="GtkViewport"> + <property name="child"> + <object class="GtkListBox" id="dates_listbox"> + <property name="selection_mode">none</property> + <signal name="row-activated" handler="dates_listbox_row_activated" object="NautilusSearchPopover" swapped="no"/> + </object> + </property> + </object> + </property> + </object> + </property> + </object> + </child> + <child> + <object class="GtkStackPage"> + <property name="name">date-calendar</property> + <property name="child"> + <object class="GtkCalendar" id="calendar"> + <property name="valign">start</property> + <property name="show_week_numbers">True</property> + <signal name="day-selected" handler="calendar_day_selected" object="NautilusSearchPopover" swapped="no" /> + </object> + </property> + </object> + </child> + <layout> + <property name="column">0</property> + <property name="row">1</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkCheckButton" id="last_modified_button"> + <property name="label" translatable="yes">Last _modified</property> + <property name="use_underline">True</property> + <property name="active">True</property> + <signal name="toggled" handler="search_time_type_changed" object="NautilusSearchPopover" swapped="no"/> + <layout> + <property name="column">0</property> + <property name="row">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkCheckButton" id="last_used_button"> + <property name="label" translatable="yes">Last _used</property> + <property name="use_underline">True</property> + <property name="group">last_modified_button</property> + <signal name="toggled" handler="search_time_type_changed" object="NautilusSearchPopover" swapped="no"/> + <layout> + <property name="column">0</property> + <property name="row">3</property> + </layout> + </object> + </child> + <child> + <object class="GtkCheckButton" id="created_button"> + <property name="label" translatable="yes">Created</property> + <property name="use-underline">True</property> + <property name="group">last_modified_button</property> + <signal name="toggled" handler="search_time_type_changed" object="NautilusSearchPopover" swapped="no"/> + <layout> + <property name="column">0</property> + <property name="row">4</property> + </layout> + </object> + </child> + </object> + </property> + <layout> + <property name="column">0</property> + <property name="row">2</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkLabel" id="what_dim_label"> + <property name="margin_top">10</property> + <property name="label" translatable="yes">What</property> + <property name="xalign">0</property> + <style> + <class name="dim-label"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">3</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkStack" id="type_stack"> + <property name="vhomogeneous">False</property> + <property name="transition_type">crossfade</property> + <property name="transition_duration">250</property> + <child> + <object class="GtkStackPage"> + <property name="name">type-button</property> + <property name="child"> + <object class="GtkButton" id="select_type_button"> + <property name="tooltip_text" translatable="yes">Which file types will be searched</property> + <signal name="clicked" handler="select_type_button_clicked" object="NautilusSearchPopover" swapped="no"/> + <child> + <object class="GtkBox"> + <child> + <object class="GtkLabel" id="type_label"> + <property name="hexpand">True</property> + <property name="label" translatable="yes">Anything</property> + <property name="width_chars">30</property> + <property name="xalign">0</property> + </object> + </child> + <child> + <object class="GtkImage"> + <property name="icon_name">pan-down-symbolic</property> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + <child> + <object class="GtkStackPage"> + <property name="name">type-list</property> + <property name="child"> + <object class="GtkScrolledWindow"> + <property name="height_request">250</property> + <property name="child"> + <object class="GtkViewport"> + <property name="child"> + <object class="GtkListBox" id="type_listbox"> + <signal name="row-activated" handler="types_listbox_row_activated" object="NautilusSearchPopover" swapped="no"/> + </object> + </property> + </object> + </property> + </object> + </property> + </object> + </child> + <layout> + <property name="column">0</property> + <property name="row">4</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkLabel" id="search_dim_label"> + <property name="margin_top">10</property> + <property name="label" translatable="yes">Search</property> + <property name="xalign">0</property> + <style> + <class name="dim-label"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">5</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + <child> + <object class="GtkBox"> + <property name="hexpand">True</property> + <child> + <object class="GtkToggleButton" id="full_text_search_button"> + <property name="label" translatable="yes">Full Text</property> + <property name="tooltip_text" translatable="yes">Search on the file content and name</property> + <property name="hexpand">True</property> + <property name="active">True</property> + <signal name="toggled" handler="search_fts_mode_changed" object="NautilusSearchPopover" swapped="no" /> + </object> + </child> + <child> + <object class="GtkToggleButton" id="filename_search_button"> + <property name="label" translatable="yes">File Name</property> + <property name="tooltip_text" translatable="yes">Search only on the file name</property> + <property name="hexpand">True</property> + <property name="group">full_text_search_button</property> + <property name="active">True</property> + <signal name="toggled" handler="search_fts_mode_changed" object="NautilusSearchPopover" swapped="no"/> + </object> + </child> + <style> + <class name="linked"/> + </style> + <layout> + <property name="column">0</property> + <property name="row">6</property> + <property name="column-span">2</property> + </layout> + </object> + </child> + </object> + </property> + </template> + <object class="GtkSizeGroup"> + <property name="mode">vertical</property> + <widgets> + <widget name="full_text_search_button"/> + <widget name="filename_search_button"/> + <widget name="select_date_button"/> + <widget name="clear_date_button"/> + </widgets> + </object> + <object class="GtkSizeGroup"> + <widgets> + <widget name="search_dim_label"/> + <widget name="when_dim_label"/> + <widget name="around_dim_label"/> + <widget name="what_dim_label"/> + </widgets> + </object> +</interface> |