gnome-control-center/panels/printers/cc-printers-panel.ui
Sam Hewitt 2bcea589b6 common: Add small cross icon
- ship symbolic asset for remove/delete actions
- replace references to window-close-symbolic with new cross-small
2024-04-29 11:01:18 -02:30

206 lines
10 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0"?>
<interface>
<requires lib="gtk+" version="3.12"/>
<template class="CcPrintersPanel" parent="CcPanel">
<property name="child">
<object class="AdwBreakpointBin">
<property name="width-request">300</property>
<property name="height-request">200</property>
<child>
<object class="AdwBreakpoint">
<condition>max-width: 500sp</condition>
<setter object="CcPrintersPanel" property="compact">True</setter>
</object>
</child>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar">
<child type="end">
<object class="GtkToggleButton" id="search_button">
<property name="tooltip_text" translatable="yes" comments="Translators: this is a verb.">Search</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
</child>
<child type="end">
<object class="GtkButton" id="printer_add_button">
<property name="tooltip_text" translatable="yes">All Connected and Network Printers</property>
<property name="sensitive">False</property>
<property name="use_underline">True</property>
<property name="can_shrink">True</property>
<property name="label" translatable="yes" comments="Translators: This button adds new printer.">_Add Printer…</property>
<signal name="clicked" handler="printer_add_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</child>
<child type="top">
<object class="GtkSearchBar" id="search_bar">
<property name="search_mode_enabled" bind-source="search_button" bind-property="active" bind-flags="bidirectional" />
<child>
<object class="AdwClamp">
<property name="maximum-size">400</property>
<child>
<object class="GtkSearchEntry" id="search_entry">
<property name="placeholder_text" translatable="yes">Search printers</property>
</object>
</child>
</object>
</child>
</object>
</child>
<property name="content">
<object class="GtkOverlay">
<child type="overlay">
<object class="GtkRevealer" id="notification">
<property name="halign">GTK_ALIGN_CENTER</property>
<property name="valign">GTK_ALIGN_START</property>
<child>
<object class="GtkBox">
<property name="spacing">6</property>
<style>
<class name="app-notification"/>
</style>
<child>
<object class="GtkLabel" id="notification_label">
<property name="wrap">True</property>
<property name="max_width_chars">50</property>
</object>
</child>
<child>
<object class="GtkButton">
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="label" translatable="yes" comments="Translators: This is the button which allows undoing the removal of the printer.">Undo</property>
<signal name="clicked" handler="on_printer_deletion_undone" swapped="yes"/>
</object>
</child>
<child>
<object class="GtkButton">
<property name="valign">GTK_ALIGN_CENTER</property>
<property name="icon_name">cross-small-symbolic</property>
<signal name="clicked" handler="on_notification_dismissed" swapped="yes"/>
<style>
<class name="flat"/>
</style>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox">
<property name="orientation">GTK_ORIENTATION_VERTICAL</property>
<child>
<object class="CcPermissionInfobar" id="permission_infobar">
</object>
</child>
<child>
<object class="GtkStack" id="main_stack">
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkStackPage">
<property name="name">loading-page</property>
<property name="child">
<object class="GtkBox">
<child>
<object class="GtkSpinner">
<property name="spinning">True</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="halign">center</property>
<property name="valign">center</property>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">printers-list</property>
<property name="child">
<object class="GtkScrolledWindow" id="scrolled_window">
<property name="hscrollbar-policy">never</property>
<child>
<object class="AdwClamp">
<child>
<object class="GtkListBox" id="content">
<property name="selection-mode">none</property>
<property name="valign">start</property>
<property name="margin-top">24</property>
<property name="margin-bottom">24</property>
<property name="margin-start">12</property>
<property name="margin-end">12</property>
<style>
<class name="boxed-list-separate"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">empty-state</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon_name">printer-symbolic</property>
<property name="title" translatable="yes">No Printers</property>
<child>
<object class="GtkButton" id="printer_add_button_empty">
<property name="label" translatable="yes" comments="Translators: This button adds a new printer.">_Add Printer…</property>
<property name="use-underline">True</property>
<property name="receives_default">True</property>
<property name="halign">center</property>
<signal name="clicked" handler="printer_add_cb" swapped="yes"/>
<style>
<class name="suggested-action"/>
<class name="pill"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">no-cups-page</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon_name">computer-fail-symbolic</property>
<property name="title" translatable="yes" comments="Translators: Title if the CUPS server is not running (we can not connect to it).">No Print Service</property>
<property name="description" translatable="yes" comments="Translators: Description if the CUPS server is not running (we can not connect to it).">The system printing service doesnt seem to be available</property>
</object>
</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</property>
</template>
</interface>