color editor: Add a color picker button

The button is shown if we have a GtkColorPicker implementation.
Currently, there are none, so the button is never shown.
This commit is contained in:
Matthias Clasen
2018-07-26 18:46:37 -04:00
parent 543fb6d7b6
commit 6b3272e4b0
2 changed files with 63 additions and 0 deletions

View File

@ -40,6 +40,27 @@
<property name="margin-end">30</property>
<property name="row-spacing">12</property>
<property name="column-spacing">12</property>
<child>
<object class="GtkButton" id="picker_button">
<property name="visible">1</property>
<property name="no-show-all">1</property>
<child>
<object class="GtkImage">
<property name="visible">1</property>
<property name="icon-name">color-select-symbolic</property>
</object>
</child>
<property name="tooltip-text" translatable="yes">Pick a color from the screen</property>
<signal name="clicked" handler="pick_color"/>
<style>
<class name="circular"/>
</style>
</object>
<packing>
<property name="left-attach">0</property>
<property name="top-attach">0</property>
</packing>
</child>
<child>
<object class="GtkColorSwatch" id="swatch">
<property name="visible">True</property>