color: Port to AdwToolbarView

This commit is contained in:
Alice Mikhaylenko 2023-07-30 20:14:30 +04:00 committed by Felipe Borges
parent cf8d23eae4
commit 49b1c59c34

View file

@ -402,123 +402,154 @@
</action-widgets>
</object>
<template class="CcColorPanel" parent="CcPanel">
<child type="titlebar">
<object class="GtkHeaderBar">
<property name="visible">False</property>
</object>
</child>
<child type="content">
<object class="GtkScrolledWindow" id="dialog_scroll">
<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>
<object class="AdwToolbarView">
<property name="top-bar-style">raised</property>
<child type="top">
<object class="AdwHeaderBar">
<property name="show-end-title-buttons">True</property>
<property name="show-start-title-buttons" bind-source="CcColorPanel" bind-property="folded" bind-flags="default|sync-create" />
<child type="start">
<object class="GtkButton">
<property name="visible" bind-source="CcColorPanel" bind-property="folded" bind-flags="default|sync-create" />
<property name="icon-name">go-previous-symbolic</property>
<property name="action-name">window.navigate</property>
<property name="action-target">0</property> <!-- 0: ADW_NAVIGATION_DIRECTION_BACK -->
</object>
</child>
<property name="title-widget">
<object class="AdwWindowTitle" id="header_title">
<property name="title" translatable="yes">Color</property>
</object>
</property>
</object>
</child>
<property name="content">
<object class="GtkScrolledWindow" id="dialog_scroll">
<child>
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="hexpand">True</property>
<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" id="hbox3">
<child>
<object class="AdwPreferencesGroup" id="pref_group_devices"/>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="box_devices">
<object class="GtkBox">
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<property name="hexpand">True</property>
<child>
<object class="GtkListBox" id="list_box">
<property name="activate-on-single-click">False</property>
<property name="selection-mode">single</property>
<object class="GtkBox" id="hbox3">
<child>
<object class="AdwPreferencesGroup" id="pref_group_devices"/>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="box_devices">
<property name="orientation">vertical</property>
<child>
<object class="GtkListBox" id="list_box">
<property name="activate-on-single-click">False</property>
<property name="selection-mode">single</property>
<style>
<class name="boxed-list" />
</style>
</object>
</child>
<child>
<object class="GtkBox" id="toolbar_devices">
<property name="visible">False</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<child>
<object class="GtkBox" id="left_button_group_box">
<property name="halign">start</property>
<property name="hexpand">True</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton" id="toolbutton_device_default">
<property name="label" translatable="yes">_Set for all users</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Set this profile for all users on this computer</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_device_enable">
<property name="label" translatable="yes">_Enable</property>
<property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Set this profile for all users on this computer</property>
<property name="tooltip_text" translatable="yes">Set this profile for all users on this computer</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="right_button_group_box">
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton" id="toolbutton_profile_add">
<property name="label" translatable="yes">_Add profile</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_device_calibrate">
<property name="label" translatable="yes">_Calibrate…</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Calibrate the device</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_profile_remove">
<property name="label" translatable="yes">_Remove profile</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_profile_view">
<property name="label" translatable="yes">_View details</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="label_no_devices">
<property name="label" translatable="yes">Unable to detect any devices that can be color managed</property>
<style>
<class name="boxed-list" />
<class name="dim-label"/>
</style>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
<child>
<object class="GtkBox" id="toolbar_devices">
<property name="visible">False</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<child>
<object class="GtkBox" id="left_button_group_box">
<property name="halign">start</property>
<property name="hexpand">True</property>
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton" id="toolbutton_device_default">
<property name="label" translatable="yes">_Set for all users</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Set this profile for all users on this computer</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_device_enable">
<property name="label" translatable="yes">_Enable</property>
<property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Set this profile for all users on this computer</property>
<property name="tooltip_text" translatable="yes">Set this profile for all users on this computer</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
<child>
<object class="GtkBox" id="right_button_group_box">
<style>
<class name="linked" />
</style>
<child>
<object class="GtkButton" id="toolbutton_profile_add">
<property name="label" translatable="yes">_Add profile</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_device_calibrate">
<property name="label" translatable="yes">_Calibrate…</property>
<property name="has_tooltip">True</property>
<property name="tooltip_text" translatable="yes">Calibrate the device</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_profile_remove">
<property name="label" translatable="yes">_Remove profile</property>
<property name="use_underline">True</property>
</object>
</child>
<child>
<object class="GtkButton" id="toolbutton_profile_view">
<property name="label" translatable="yes">_View details</property>
<property name="use_underline">True</property>
</object>
</child>
</object>
</child>
</object>
</child>
</object>
</child>
<child>
<object class="GtkLabel" id="label_no_devices">
<property name="label" translatable="yes">Unable to detect any devices that can be color managed</property>
<style>
<class name="dim-label"/>
</style>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
</object>
</child>
</object>
</child>
</object>
</child>
</property>
</object>
</child>
</template>