open presets from the brush preview, fix scrollbar redraw
This commit is contained in:
@@ -63,7 +63,7 @@
|
||||
<!--brush-presets panel-->
|
||||
<layout id="tpl-panel-brush-preset">
|
||||
<node rtl="ltr">
|
||||
<scroll id="brushes" color=".4" pad="5 20 5 5" dir="row" wrap="1" flood-events="1" grow="1" height="1"/>
|
||||
<scroll id="brushes" color=".4" pad="5 20 5 5" dir="col" wrap="0" flood-events="1" grow="1" height="1"/>
|
||||
<border height="40" color=".5" dir="row" align="center" flood-events="1">
|
||||
<button-custom id="btn-add" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 2 0 5">
|
||||
<icon width="30" icon="add"/>
|
||||
@@ -86,7 +86,7 @@
|
||||
</layout>
|
||||
<!--brush-presets-item icon-->
|
||||
<layout id="tpl-brush-preset">
|
||||
<button-custom width="100%" height="70" margin="1" pad="5" align="center" justify="center" dir="row">
|
||||
<button-custom width="300" height="70" margin="1" pad="5" align="center" justify="center" dir="row">
|
||||
<border color="1" width="40" height="60" align="center" justify="center">
|
||||
<image id="thumb" width="40" height="40"/>
|
||||
</border>
|
||||
@@ -145,18 +145,15 @@
|
||||
|
||||
<!-- PREVIEW -->
|
||||
|
||||
<border color=".2" pad="3" margin="0 0 0 0">
|
||||
<button-custom id="preset-button" color=".2" pad="5" margin="0 0 0 0">
|
||||
<stroke-preview id="canvas" width="100%" height="100"/>
|
||||
</border>
|
||||
</button-custom>
|
||||
|
||||
<!-- PRESET AND SHAPE -->
|
||||
|
||||
<node dir="row">
|
||||
<node width="36%" dir="col">
|
||||
<!--<node height="20" justify="center" margin="5 0 5 0"><text text="Shade"/></node>-->
|
||||
<node height="30" justify="center" margin="5 0 0 0">
|
||||
<text text="Preset"/>
|
||||
</node>
|
||||
<node height="40" justify="center" margin="5 0 0 0">
|
||||
<text text="Shape"/>
|
||||
</node>
|
||||
@@ -166,7 +163,6 @@
|
||||
</node>
|
||||
<node dir="col" align="center" grow="1" width="1" flood-events="1">
|
||||
<!--<node height="20" pad="1" width="100%" margin="5 0 5 0"><slider-h id="tip-shade" value="1"/></node>-->
|
||||
<button id="preset-button" text="Select Preset" width="100%" height="30" margin="5 0 0 0" dir="row"/>
|
||||
<node dir="row" margin="5 0 0 0">
|
||||
<button-custom id="tip-change" width="40" height="40" dir="row" pad="4">
|
||||
<image id="tip-change-thumb" width="32" height="100%"/>
|
||||
|
||||
Reference in New Issue
Block a user