color wheel and picker
This commit is contained in:
@@ -251,11 +251,16 @@
|
||||
<node grow="1" width="10" align="center">
|
||||
<text id="title" text="Color Picker" font-face="arial" font-size="11"/>
|
||||
</node>
|
||||
<combobox justify="flex-end" pad="5" margin="0 5 0 0" text="Triangle" combo-list="Triangle,Square" default="0"/>
|
||||
<!--<combobox justify="flex-end" pad="5" margin="0 5 0 0" text="Triangle" combo-list="Triangle,Square" default="0"/>-->
|
||||
</border>
|
||||
<border width="300" color=".5 .5 .5 .9" pad="10" dir="col">
|
||||
<colorwheel id="wheel" width="100%" aspect-ratio="1"/>
|
||||
|
||||
<border color="1" pad="5" dir="row" margin="10 0 0 0">
|
||||
<border border-color="0 0 0 1" thickness="1" id="color-cur" height="30" grow="1" color="1"/>
|
||||
<border border-color="0 0 0 1" thickness="1" id="color-old" height="30" grow="1" color="0"/>
|
||||
<border border-color="0 0 0 1" thickness="1" id="color-old1" height="30" grow="1" color="0"/>
|
||||
<border border-color="0 0 0 1" thickness="1" id="color-old2" height="30" grow="1" color="0"/>
|
||||
</border>
|
||||
<node width="100%" pad="2" height="20" dir="row" align="center" margin="10 0 0 0">
|
||||
<node width="20"><text text="H" font-face="arial" font-size="11"/></node>
|
||||
<slider-h id="hsv-h" width="10" grow="1" value="1"/>
|
||||
@@ -280,7 +285,7 @@
|
||||
</border>
|
||||
<node height="33" dir="row" align="flex-end" justify="flex-end">
|
||||
<button id="btn-ok" text="Reset" width="60" height="30" margin="0 10 0 0"/>
|
||||
<button id="btn-cancel" text="Select color" width="100" height="30"/>
|
||||
<button id="btn-select" text="Select color" width="100" height="30"/>
|
||||
</node>
|
||||
</border>
|
||||
</border>
|
||||
@@ -730,6 +735,6 @@
|
||||
<text text="#opengl #fromscratch #c++" font-face="arial" font-size="11" margin="0 0 0 10" color=".2 .5 1 1"/>
|
||||
</border>-->
|
||||
</node>
|
||||
<color-picker/>
|
||||
<!--<color-picker/>-->
|
||||
</layout>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user