Improve keyboard navigation with Up/Down arrow keys between Search entry and the search results list. Pressing Arrow Down in search entry will now move focus to search list, and when pressing Arrow Up on the first list result will move back focus to Search entry.
134 lines
5.6 KiB
XML
134 lines
5.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<requires lib="gtk+" version="3.20"/>
|
|
<template class="CcPanelList" parent="AdwBin">
|
|
|
|
<child>
|
|
<object class="GtkStack" id="stack">
|
|
<property name="vhomogeneous">False</property>
|
|
<property name="hhomogeneous">True</property>
|
|
<property name="transition_type">slide-left-right</property>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">main</property>
|
|
<property name="child">
|
|
<object class="GtkListBox" id="main_listbox">
|
|
<accessibility>
|
|
<property name="label" translatable="yes">Settings categories</property>
|
|
</accessibility>
|
|
<signal name="row-activated" handler="row_activated_cb" object="CcPanelList" swapped="no" />
|
|
<style>
|
|
<class name="navigation-sidebar" />
|
|
</style>
|
|
<child>
|
|
<object class="GtkListBoxRow" id="privacy_row">
|
|
<property name="visible">False</property>
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="margin-start">6</property>
|
|
<property name="margin-end">6</property>
|
|
<property name="margin-top">12</property>
|
|
<property name="margin-bottom">12</property>
|
|
<property name="spacing">12</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="icon_name">preferences-system-privacy-symbolic</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="hexpand">True</property>
|
|
<property name="label" translatable="yes">Privacy</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="icon_name">go-next-symbolic</property>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">privacy</property>
|
|
<property name="child">
|
|
<object class="GtkListBox" id="privacy_listbox">
|
|
<signal name="row-activated" handler="row_activated_cb" object="CcPanelList" swapped="no" />
|
|
<style>
|
|
<class name="navigation-sidebar" />
|
|
</style>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">search</property>
|
|
<property name="child">
|
|
<object class="GtkListBox" id="search_listbox">
|
|
<signal name="row-activated" handler="search_row_activated_cb" object="CcPanelList" swapped="no" />
|
|
<signal name="keynav-failed" handler="search_list_keynav_failed_cb" swapped="yes"/>
|
|
<style>
|
|
<class name="navigation-sidebar" />
|
|
</style>
|
|
|
|
<!-- Placeholder -->
|
|
<child type="placeholder">
|
|
<object class="GtkBox" id="empty_search_placeholder">
|
|
<property name="halign">center</property>
|
|
<property name="valign">center</property>
|
|
<property name="hexpand">True</property>
|
|
<property name="vexpand">True</property>
|
|
<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="orientation">vertical</property>
|
|
<property name="spacing">6</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="pixel_size">64</property>
|
|
<property name="icon_name">edit-find-symbolic</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">No results found</property>
|
|
<attributes>
|
|
<attribute name="weight" value="bold"/>
|
|
<attribute name="scale" value="1.44"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">Try a different search</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|