2022-11-18 09:36:09 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<interface>
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<template class="CcUaHearingPage" parent="AdwNavigationPage">
|
|
|
|
<property name="title" translatable="yes">Hearing</property>
|
|
|
|
<property name="tag">hearing</property>
|
|
|
|
<property name="child">
|
|
|
|
<object class="AdwToolbarView">
|
|
|
|
<child type="top">
|
|
|
|
<object class="AdwHeaderBar"/>
|
2022-11-18 09:36:09 +05:30
|
|
|
</child>
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<property name="content">
|
|
|
|
<object class="AdwPreferencesPage">
|
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
<child>
|
|
|
|
<object class="AdwSwitchRow" id="overamplification_row">
|
|
|
|
<property name="title" translatable="yes">_Overamplification</property>
|
|
|
|
<property name="subtitle" translatable="yes">Allow volume to exceed 100%. This will result in quality loss</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
<child>
|
|
|
|
<object class="GtkLabel" id="sound_settings_label">
|
|
|
|
<property name="use-markup">True</property>
|
|
|
|
<property name="margin-top">9</property>
|
|
|
|
<property name="xalign">0.0</property>
|
|
|
|
<property name="wrap">True</property>
|
|
|
|
<signal name="activate-link" handler="ua_hearing_sound_settings_clicked_cb" swapped="yes"/>
|
|
|
|
<style>
|
|
|
|
<class name="dim-label"/>
|
|
|
|
</style>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-18 09:36:09 +05:30
|
|
|
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<child>
|
|
|
|
<object class="AdwPreferencesGroup">
|
|
|
|
<property name="title" translatable="yes">Visual Alerts</property>
|
|
|
|
<property name="description" translatable="yes">Use a visual indication when an alert sound occurs</property>
|
2022-11-18 09:36:09 +05:30
|
|
|
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<child>
|
|
|
|
<object class="AdwSwitchRow" id="visual_alerts_row">
|
|
|
|
<property name="title" translatable="yes">_Visual Alerts</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-18 09:36:09 +05:30
|
|
|
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<child>
|
|
|
|
<object class="AdwComboRow" id="flash_type_row">
|
|
|
|
<property name="sensitive" bind-source="visual_alerts_row" bind-property="active" bind-flags="sync-create"/>
|
|
|
|
<property name="title" translatable="yes">_Flash Area</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<signal name="notify::selected" handler="ua_hearing_flash_type_row_changed_cb" swapped="yes" />
|
|
|
|
<property name="model">
|
|
|
|
<object class="GtkStringList">
|
|
|
|
<items>
|
|
|
|
<item translatable="yes">Entire Screen</item>
|
|
|
|
<item translatable="yes">Entire Window</item>
|
|
|
|
</items>
|
|
|
|
</object>
|
|
|
|
</property>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-18 09:36:09 +05:30
|
|
|
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
<child>
|
|
|
|
<object class="AdwActionRow">
|
|
|
|
<property name="sensitive" bind-source="visual_alerts_row" bind-property="active" bind-flags="sync-create"/>
|
|
|
|
<property name="title" translatable="yes">_Test Flash</property>
|
|
|
|
<property name="use-underline">True</property>
|
|
|
|
<property name="activatable-widget">test_flash_button</property>
|
|
|
|
<child type="suffix">
|
|
|
|
<object class="GtkButton" id="test_flash_button">
|
|
|
|
<property name="valign">center</property>
|
|
|
|
<property name="label" translatable="yes">Test</property>
|
|
|
|
<signal name="clicked" handler="ua_hearing_test_flash_clicked_cb" swapped="yes"/>
|
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
|
|
|
</child>
|
2022-11-18 09:36:09 +05:30
|
|
|
</object>
|
|
|
|
</child>
|
|
|
|
</object>
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
</property>
|
2022-11-18 09:36:09 +05:30
|
|
|
</object>
|
universal-access: Port to Adw{Navigation,Toolbar}View
AdwNavigationView is a new widget meant to be used specifically
for navigation, unlike AdwLeaflet which was multipurpose.
AdwNavigationView provides a cleaner API and gives us automatic
titles, back buttons, gestures, actions, and windowcontrols.
AdwToolbarView is a utility widget that simplifies setting the
top and bottom bars for simple views, giving us styling with
undershoots, the ability to use flat headers in scrolling views,
and proper styling when used with the new sidebar widgets.
This commit ports the Accessibility panel to AdwNavigationView
and AdwToolbarView. Subpages now subclass AdwNavigationPage
and contain toolbar views - meaning their headers are joined with
their content. Their titles and their back buttons are automatically
handled by libadwaita, with proper accessibility.
The actions provided by AdwNavigationPage allow us to remove
the custom listbox we used for the `row-activated` signal. Rows
now use the `navigation.push` action in order to push a subpage
by tag.
Currently our AdwToolbarViews use the `raised` style, as we
have not ported to the new sidebar widget yet.
2023-06-03 14:30:55 -04:00
|
|
|
</property>
|
2022-11-18 09:36:09 +05:30
|
|
|
</template>
|
|
|
|
</interface>
|