1
0
Fork 0
gnome-control-center/panels/applications/cc-applications-panel.ui
Daniel Baumann 0a49575b51
Adding upstream version 1:48.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 19:52:18 +02:00

602 lines
31 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcApplicationsPanel" parent="CcPanel">
<!-- App Search Page (Main Landing Page) -->
<child type="subpage">
<object class="AdwNavigationPage">
<property name="title" translatable="yes">Apps</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<!-- Searchbar -->
<child type="top">
<object class="GtkSearchBar">
<property name="search-mode-enabled">True</property>
<property name="child">
<object class="AdwClamp">
<property name="margin-start">6</property>
<property name="margin-end">6</property>
<child>
<object class="GtkSearchEntry" id="app_search_entry">
<property name="placeholder_text" translatable="yes">Search apps</property>
<signal name="activate" handler="on_app_search_entry_activated_cb" object="CcApplicationsPanel" swapped="yes" />
<signal name="search-changed" handler="on_app_search_entry_search_changed_cb" object="CcApplicationsPanel" swapped="yes" />
<signal name="stop-search" handler="on_app_search_entry_search_stopped_cb" object="CcApplicationsPanel" swapped="yes" />
</object>
</child>
</object>
</property>
</object>
</child>
<property name="content">
<object class="GtkStack" id="main_page_stack">
<child>
<object class="GtkStackPage">
<property name="name">apps-page</property>
<property name="child">
<object class="AdwPreferencesPage">
<!-- Default Apps Row -->
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="CcListRow">
<property name="title" translatable="yes">_Default Apps</property>
<property name="subtitle" translatable="yes">Set which apps open links, files, and media</property>
<property name="show-arrow">True</property>
<property name="action-name">navigation.push</property>
<property name="action-target">'default-apps'</property>
</object>
</child>
</object>
</child>
<!-- Apps List -->
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkListBox" id="app_listbox">
<property name="selection-mode">none</property>
<style>
<class name="boxed-list" />
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">no-search-results-page</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon-name">edit-find-symbolic</property>
<property name="title" translatable="yes">No Results Found</property>
<property name="description" translatable="yes">Try a different search</property>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">no-apps-found-page</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon-name">computer-fail-symbolic</property>
<property name="title" translatable="yes">No Apps Found</property>
<child>
<object class="GtkButton" id="install_button">
<property name="label" translatable="yes">_Find in Software</property>
<property name="use_underline">True</property>
<property name="halign">center</property>
<signal name="clicked" handler="open_software_cb" object="CcApplicationsPanel" swapped="yes"/>
<style>
<class name="pill"/>
<class name="suggested-action"/>
</style>
</object>
</child>
</object>
</property>
</object>
</child>
<child>
<object class="GtkStackPage">
<property name="name">malcontent-not-found-page</property>
<property name="child">
<object class="AdwStatusPage">
<property name="icon-name">dialog-error-symbolic</property>
<property name="title" translatable="yes">Unable to List Apps</property>
<property name="description" translatable="yes" comments="Translators: Parental Controls here refers to the features provided by 'malcontent'">An error has occurred and apps cannot be listed.
Error details: Parental Controls are not installed.</property>
</object>
</property>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
<!-- Default Apps Page -->
<child type="subpage">
<object class="AdwNavigationPage">
<property name="title" translatable="yes">Default Apps</property>
<property name="tag">default-apps</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage">
<!-- Default Apps Settings -->
<child>
<object class="CcDefaultAppsPage" id="default_apps_page" />
</child>
<!-- "Automatically Launch Apps" row -->
<child>
<object class="AdwPreferencesGroup">
<property name="title" translatable="yes">Removable Media</property>
<child>
<object class="AdwSwitchRow" id="autorun_never_row">
<property name="title" translatable="yes">Med_ia Autostart</property>
<property name="subtitle" translatable="yes">Start apps or prompt when media is connected</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
<!-- Removable Media Settings -->
<child>
<object class="CcRemovableMediaSettings" id="removable_media_settings" />
</child>
</object>
</property>
</object>
</property>
</object>
</child>
<!-- App Settings Page -->
<child type="subpage">
<object class="AdwNavigationPage" id="app_settings_page">
<property name="title" translatable="yes">App Settings</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="GtkBox">
<property name="orientation">vertical</property>
<child>
<object class="AdwBanner" id="sandbox_banner">
<property name="visible">False</property>
<property name="revealed">True</property>
<property name="title" translatable="yes">App is not sandboxed</property>
<child>
<object class="CcListRowInfoButton" id="sandbox_info_button">
<property name="visible" bind-source="sandbox_banner" bind-property="visible" bind-flags="sync-create|default"/>
<property name="halign">end</property>
<property name="valign">center</property>
<property name="margin-end">3</property>
<property name="text" translatable="yes">App settings cannot be fully enforced for apps which are not sandboxed. These apps may use permissions which are not shown.</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesPage">
<!-- App icon & buttons -->
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkImage" id="app_icon_image">
<property name="icon-name">org.gnome.Software</property>
<property name="pixel-size">96</property>
<style>
<class name="icon-dropshadow" />
</style>
</object>
</child>
<child>
<object class="GtkLabel" id="app_name_label">
<property name="justify">center</property>
<property name="wrap">True</property>
<style>
<class name="title-1" />
</style>
</object>
</child>
<child>
<object class="GtkBox">
<property name="halign">center</property>
<property name="margin-top">12</property>
<property name="margin-bottom">12</property>
<property name="spacing">18</property>
<child>
<object class="GtkButton" id="launch_button">
<property name="label" translatable="yes">_Open</property>
<property name="use-underline">True</property>
<property name="can-shrink">True</property>
<signal name="clicked" handler="on_launch_button_clicked_cb" object="CcApplicationsPanel" swapped="yes" />
<style>
<class name="pill" />
<class name="suggested-action" />
</style>
</object>
</child>
<child>
<object class="GtkButton" id="view_details_button">
<property name="label" translatable="yes">App _Details</property>
<property name="use-underline">True</property>
<property name="can-shrink">True</property>
<style>
<class name="pill" />
</style>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="permissions_group">
<property name="title" translatable="yes">Permissions</property>
<child>
<object class="AdwSwitchRow" id="search_row">
<property name="title" translatable="yes" comments="Translators: This row shows/sets whether the app shown in this page can add results to the GNOME Shell search results. Internally this enables/disables the app's Shell Search Provider">_Search</property>
<property name="subtitle" translatable="yes">Receive system searches and send results</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="search_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcListRow" id="no_search_row">
<property name="title" bind-source="search_row" bind-property="title" bind-flags="sync-create"/>
<property name="subtitle" bind-source="search_row" bind-property="subtitle" bind-flags="sync-create"/>
<property name="secondary-label" translatable="yes">Disabled</property>
<property name="activatable">False</property>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="notifications_row">
<property name="title" translatable="yes">_Notifications</property>
<property name="subtitle" translatable="yes">Show system notifications</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="notification_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="background_row">
<property name="title" translatable="yes">_Run in Background</property>
<property name="subtitle" translatable="yes">Allow activity when the app is closed</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="background_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="screenshots_row">
<property name="title" translatable="yes">Scr_eenshots</property>
<property name="subtitle" translatable="yes">Take pictures of the screen at any time</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="screenshot_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="wallpaper_row">
<property name="title" translatable="yes">Change _Wallpaper</property>
<property name="subtitle" translatable="yes">Change the desktop wallpaper</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="wallpaper_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="sounds_row">
<property name="title" translatable="yes">So_unds</property>
<property name="subtitle" translatable="yes">Reproduce sounds</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="sound_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcListRow" id="no_sounds_row">
<property name="title" translatable="yes">Sounds</property>
<property name="subtitle" translatable="yes">Reproduce sounds</property>
<property name="secondary-label" translatable="yes">Disabled</property>
<property name="activatable">False</property>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="shortcuts_row">
<property name="title" translatable="yes">_Inhibit Shortcuts</property>
<property name="subtitle" translatable="yes">Block standard keyboard shortcuts</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="shortcuts_cb" swapped="yes"/>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="camera_row">
<property name="title" translatable="yes">C_amera</property>
<property name="subtitle" translatable="yes">Take pictures with the camera</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="camera_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcListRow" id="no_camera_row">
<property name="title" translatable="yes">Camera</property>
<property name="subtitle" translatable="yes">Take pictures with the camera</property>
<property name="secondary-label" translatable="yes">Disabled</property>
<property name="activatable">False</property>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="microphone_row">
<property name="title" translatable="yes">_Microphone</property>
<property name="subtitle" translatable="yes">Record audio with the microphone</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="microphone_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcListRow" id="no_microphone_row">
<property name="title" translatable="yes">Microphone</property>
<property name="subtitle" translatable="yes">Record audio with the microphone</property>
<property name="secondary-label" translatable="yes">Disabled</property>
<property name="activatable">False</property>
</object>
</child>
<child>
<object class="AdwSwitchRow" id="location_row">
<property name="title" translatable="yes">_Location Services</property>
<property name="subtitle" translatable="yes">Access device location data</property>
<property name="use-underline">True</property>
<signal name="notify::active" handler="location_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
<child>
<object class="CcListRow" id="no_location_row">
<property name="title" translatable="yes">Location Services</property>
<property name="subtitle" translatable="yes">Access device location data</property>
<property name="secondary-label" translatable="yes">Disabled</property>
<property name="activatable">False</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="required_permissions_group">
<child>
<object class="CcListRow" id="builtin_row">
<property name="title" translatable="yes">Re_quired Permissions</property>
<property name="subtitle" translatable="yes">System permissions that the app requires</property>
<property name="show-arrow">True</property>
<property name="action-name">navigation.push</property>
<property name="action-target">'builtin-page'</property>
</object>
</child>
<child>
<object class="CcListRow" id="global_shortcuts_row">
<property name="title" translatable="yes">Global S_hortcuts</property>
<property name="subtitle" translatable="yes">Global actions that have been registered for use</property>
<property name="show-arrow">True</property>
<signal name="activated" handler="global_shortcuts_cb" object="CcApplicationsPanel" swapped="yes" />
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="general_group">
<property name="title" translatable="yes">General</property>
<child>
<object class="CcListRow" id="handler_row">
<property name="title" translatable="yes">_Files &amp;amp; Links</property>
<property name="subtitle" translatable="yes">File and link types that are opened by the app</property>
<property name="show-arrow">True</property>
<property name="action-name">navigation.push</property>
<property name="action-target">'handler-page'</property>
</object>
</child>
<child>
<object class="CcListRow" id="storage_row">
<property name="title" translatable="yes">S_torage</property>
<property name="subtitle" translatable="yes">Disk space being used</property>
<property name="show-arrow">True</property>
<property name="action-name">navigation.push</property>
<property name="action-target">'storage-page'</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
<!-- Required Permissions page -->
<child type="subpage">
<object class="AdwNavigationPage">
<property name="title" translatable="yes">Required Permissions</property>
<property name="tag">builtin-page</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="builtin_page">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="GtkListBox" id="builtin_list">
<property name="selection-mode">none</property>
<style>
<class name="boxed-list"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
<!-- File & Link Associations page -->
<child type="subpage">
<object class="AdwNavigationPage">
<property name="title" translatable="yes">Files &amp; Links</property>
<property name="tag">handler-page</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="handler_page">
<child>
<object class="AdwPreferencesGroup" id="handler_file_group">
<property name="title" translatable="yes">File Types</property>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="handler_link_group">
<property name="title" translatable="yes">Link Types</property>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwButtonRow" id="handler_reset_button_row">
<property name="title" translatable="yes">_Reset</property>
<property name="use-underline">True</property>
<signal name="activated" handler="handler_reset_cb" object="CcApplicationsPanel" swapped="yes"/>
<style>
<class name="destructive-action"/>
</style>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
<!-- Storage page -->
<child type="subpage">
<object class="AdwNavigationPage">
<property name="title" translatable="yes">Storage</property>
<property name="tag">storage-page</property>
<property name="child">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<object class="AdwPreferencesPage" id="storage_page">
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwActionRow" id="storage_page_app_row">
<property name="title" translatable="yes">App</property>
<style>
<class name="property"/>
</style>
</object>
</child>
<child>
<object class="AdwActionRow" id="storage_page_data_row">
<property name="title" translatable="yes">Data</property>
<style>
<class name="property"/>
</style>
</object>
</child>
<child>
<object class="AdwActionRow" id="storage_page_cache_row">
<property name="title" translatable="yes">Cache</property>
<style>
<class name="property"/>
</style>
</object>
</child>
<child>
<object class="AdwActionRow" id="storage_page_total_row">
<property name="title" translatable="yes">Total</property>
<style>
<class name="property"/>
</style>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup">
<child>
<object class="AdwButtonRow" id="clear_cache_button_row">
<property name="title" translatable="yes">_Clear Cache</property>
<property name="use-underline">True</property>
<signal name="activated" handler="clear_cache_cb" object="CcApplicationsPanel" swapped="yes"/>
</object>
</child>
</object>
</child>
</object>
</property>
</object>
</property>
</object>
</child>
</template>
<object class="GtkSizeGroup">
<property name="mode">horizontal</property>
<widgets>
<widget name="launch_button" />
<widget name="view_details_button" />
</widgets>
</object>
</interface>