The current placeholder that appears when no providers are available has some problems: - The row is activatable, but this is unnecessary - The row has no padding - The "No Apps Found" string doesn't use header capitalization Fix this by using a GtkListBox placeholder widget, with margins and with header capitalization in the string.
68 lines
3.1 KiB
XML
68 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcSearchPanel" parent="CcPanel">
|
|
<property name="child">
|
|
<object class="AdwToolbarView">
|
|
<child type="top">
|
|
<object class="AdwHeaderBar"/>
|
|
</child>
|
|
|
|
<property name="content">
|
|
<object class="AdwPreferencesPage">
|
|
<child>
|
|
<object class="AdwPreferencesGroup">
|
|
<child>
|
|
<object class="AdwSwitchRow" id="app_search_row">
|
|
<property name="title" translatable="yes">_App Search</property>
|
|
<property name="subtitle" translatable="yes">Include app-provided search results</property>
|
|
<property name="use-underline">True</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="CcListRow" id="settings_row">
|
|
<property name="title" translatable="yes">Search _Locations</property>
|
|
<property name="subtitle" translatable="yes">Filesystem locations which are searched by system apps</property>
|
|
<property name="show-arrow">True</property>
|
|
<signal name="activated" handler="show_search_locations_dialog" object="CcSearchPanel" swapped="yes"/>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="AdwPreferencesGroup" id="search_group">
|
|
<property name="title" translatable="yes">Search Results</property>
|
|
<property name="description" translatable="yes">Results are displayed according to the list order</property>
|
|
<child>
|
|
<object class="GtkListBox" id="list_box">
|
|
<property name="selection-mode">none</property>
|
|
<signal name="keynav-failed" handler="keynav_failed_cb" object="CcSearchPanel" swapped="yes"/>
|
|
<accessibility>
|
|
<relation name="labelled-by">search_group</relation>
|
|
</accessibility>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
<child type="placeholder">
|
|
<object class="GtkLabel">
|
|
<property name="margin-start">18</property>
|
|
<property name="margin-end">18</property>
|
|
<property name="margin-top">18</property>
|
|
<property name="margin-bottom">18</property>
|
|
<property name="label" translatable="yes">No Apps Found</property>
|
|
<property name="wrap">true</property>
|
|
<property name="max-width-chars">50</property>
|
|
<style>
|
|
<class name="dim-label" />
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</property>
|
|
</template>
|
|
</interface>
|