gnome-control-center/panels/wacom/cc-wacom-page.ui
Carlos Garnacho a9127145d3 wacom: Move tablet/stylus sections to AdwPreferencesGroup
There is now the header-suffix property that makes it possible to add
tablet/stylus icons besides the title/description, so we can simply
use this widget.
2022-02-01 14:18:53 +00:00

86 lines
3.6 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<interface>
<template class="CcWacomPage" parent="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">24</property>
<child>
<object class="AdwPreferencesGroup" id="tablet_section">
<property name="header-suffix">
<object class="GtkPicture" id="tablet_icon">
<property name="halign">end</property>
<property name="valign">start</property>
</object>
</property>
<child>
<object class="AdwActionRow" id="tablet_mode">
<property name="title" translatable="yes">Tablet Mode</property>
<property name="subtitle" translatable="yes">Use absolute positioning for the pen</property>
<child>
<object class="GtkSwitch" id="tablet_mode_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="tablet_left_handed">
<property name="title" translatable="yes">Left Hand Orientation</property>
<property name="subtitle" translatable="yes">Tablet and Express Keys™ are rotated for left hand use</property>
<child>
<object class="GtkSwitch" id="tablet_left_handed_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="tablet_map_buttons">
<property name="title" translatable="yes">Map Buttons</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_map_buttons_activated" object="CcWacomPage" swapped="yes" />
<child type="suffix">
<object class="GtkImage">
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="AdwPreferencesGroup" id="display_section">
<child>
<object class="AdwComboRow" id="tablet_display">
<property name="width_request">100</property>
<property name="title" translatable="yes" context="display setting">Map to Monitor</property>
<signal name="notify::selected-item" handler="on_display_selected" swapped="no"/>
</object>
</child>
<child>
<object class="AdwActionRow" id="tablet_aspect_ratio">
<property name="title" translatable="yes">Keep Aspect Ratio</property>
<property name="subtitle" translatable="yes">Only use a portion of the tablet surface to keep monitor aspect ratio</property>
<child>
<object class="GtkSwitch" id="tablet_aspect_ratio_switch">
<property name="valign">center</property>
</object>
</child>
</object>
</child>
<child>
<object class="AdwActionRow" id="tablet_calibrate">
<property name="title" translatable="yes">Calibrate</property>
<property name="activatable">True</property>
<signal name="activated" handler="on_calibrate_activated" object="CcWacomPage" swapped="yes" />
<child type="suffix">
<object class="GtkImage">
<property name="icon-name">go-next-symbolic</property>
</object>
</child>
</object>
</child>
</object>
</child>
</template>
</interface>