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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user