This should significantly simplify these panels, by not forcing them to override GObject.constructed all the time. Most panels were quite straightfoward.
126 lines
5.5 KiB
XML
126 lines
5.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<interface>
|
|
<template class="CcMicrophonePanel" parent="CcPanel">
|
|
|
|
<child type="titlebar-end">
|
|
<object class="GtkSwitch" id="main_switch">
|
|
<property name="valign">center</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child type="content">
|
|
<object class="GtkStack" id="stack">
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">empty</property>
|
|
<property name="child">
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="valign">center</property>
|
|
<child>
|
|
<object class="GtkImage">
|
|
<property name="valign">start</property>
|
|
<property name="pixel-size">96</property>
|
|
<property name="icon-name">microphone-disabled-symbolic</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="margin-top">20</property>
|
|
<property name="margin-bottom">15</property>
|
|
<property name="label" translatable="yes">Microphone is turned off</property>
|
|
<attributes>
|
|
<attribute name="scale" value="1.44"/>
|
|
</attributes>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="label" translatable="yes">No applications can record sound.</property>
|
|
<style>
|
|
<class name="dim-label"/>
|
|
</style>
|
|
</object>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
<child>
|
|
<object class="GtkStackPage">
|
|
<property name="name">content</property>
|
|
<property name="child">
|
|
<object class="GtkScrolledWindow">
|
|
<property name="hscrollbar-policy">never</property>
|
|
<child>
|
|
<object class="AdwClamp">
|
|
<property name="margin_top">32</property>
|
|
<property name="margin_bottom">32</property>
|
|
<property name="margin_start">12</property>
|
|
<property name="margin_end">12</property>
|
|
|
|
<child>
|
|
<object class="GtkBox">
|
|
<property name="orientation">vertical</property>
|
|
<property name="hexpand">1</property>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="margin-bottom">12</property>
|
|
<property name="label" translatable="yes">Use of the microphone allows applications to record and listen to audio. Disabling the microphone may cause some applications to not function properly.</property>
|
|
<property name="wrap">true</property>
|
|
<property name="max-width-chars">50</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkLabel">
|
|
<property name="margin-bottom">12</property>
|
|
<property name="label" translatable="yes">Allow the applications below to use your microphone.</property>
|
|
<property name="wrap">true</property>
|
|
<property name="max-width-chars">50</property>
|
|
<property name="xalign">0</property>
|
|
</object>
|
|
</child>
|
|
<child>
|
|
<object class="GtkListBox" id="microphone_apps_list_box">
|
|
<property name="can-focus">true</property>
|
|
<property name="selection-mode">none</property>
|
|
<style>
|
|
<class name="boxed-list"/>
|
|
</style>
|
|
|
|
<child type="placeholder">
|
|
<object class="GtkLabel">
|
|
<property name="margin-top">18</property>
|
|
<property name="margin-bottom">18</property>
|
|
<property name="margin-start">18</property>
|
|
<property name="margin-end">18</property>
|
|
<property name="label" translatable="yes">No Applications Have Asked for Microphone Access</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>
|
|
</child>
|
|
</object>
|
|
</property>
|
|
</object>
|
|
</child>
|
|
|
|
</object>
|
|
</child>
|
|
</template>
|
|
</interface>
|