color editor: Make the sample non-focusable again

This is one of the situations, where can-focus can still
be used to tweak focus behavior of leaf widgets. Color
swatches are focusable by default to allow selecting colors
with the keyboard. But when used as color samples, they
should not take focus.
This commit is contained in:
Matthias Clasen 2020-04-08 08:08:46 -04:00
parent 99eed078bd
commit 2ae08e632c

View File

@ -57,6 +57,7 @@
<property name="rgba">rgb(255,255,255)</property> <property name="rgba">rgb(255,255,255)</property>
<property name="selectable">False</property> <property name="selectable">False</property>
<property name="has-menu">False</property> <property name="has-menu">False</property>
<property name="can-focus">False</property>
<layout> <layout>
<property name="left-attach">1</property> <property name="left-attach">1</property>
<property name="top-attach">0</property> <property name="top-attach">0</property>