change node children from unique to shared ptr, rename Canvas2D to StrokePreview, add panel toolbar with icon buttons to toggle
This commit is contained in:
@@ -310,13 +310,13 @@
|
||||
<node dir="col" wrap="0" width="100%" height="100%" pad="0">
|
||||
<!-- menu bar -->
|
||||
<border flood-events="1" margin="0 0 0 0" pad="0 0 0 0" color=".1" width="100%" height="30" dir="row" align="center">
|
||||
<button-custom id="menu-file" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8">
|
||||
<button-custom id="menu-file" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8" color=".1">
|
||||
<text text="File" font-face="arial" font-size="11"/>
|
||||
</button-custom>
|
||||
<button-custom id="menu-edit" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8">
|
||||
<button-custom id="menu-edit" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8" color=".1">
|
||||
<text text="Edit" font-face="arial" font-size="11"/>
|
||||
</button-custom>
|
||||
<button-custom id="menu-layers" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8">
|
||||
<button-custom id="menu-layers" height="100%" margin="0 0 0 0" justify="center" align="center" pad="8" color=".1">
|
||||
<text text="Layers" font-face="arial" font-size="11"/>
|
||||
</button-custom>
|
||||
</border>
|
||||
@@ -344,38 +344,52 @@
|
||||
<!--<text text="Settings" font-face="arial" font-size="11"/>-->
|
||||
</image>
|
||||
</button-custom>
|
||||
<button-custom width="50" margin="0 5 0 0" thickness="1" border-color=".0" pad="8" align="center" justify="center">
|
||||
<button-custom width="50" margin="0 15 0 0" thickness="1" border-color=".0" pad="8" align="center" justify="center">
|
||||
<icon width="100%" height="100%" icon="accept"/>
|
||||
</button-custom>
|
||||
</border>
|
||||
<!-- central row -->
|
||||
<node grow="1" dir="row" wrap="1" height="0">
|
||||
<!--<border width="60" color=".2 .2 .2 .6" margin="0 0 0 0" dir="col" pad="4">
|
||||
<border height="4" margin="-4 0 0 0"/>
|
||||
<button-custom width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<border width="60" color=".2 .2 .2 .6" margin="0 0 0 0" dir="col" pad="4" flood-events="1">
|
||||
<!--<border height="4" margin="-4 0 0 0"/>-->
|
||||
<!--<button-custom id="btn-stroke" width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<icon width="100%" height="100%" icon="accept"/>
|
||||
</button-custom>
|
||||
<button-custom width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<button-custom id="btn-brush" width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<icon width="100%" height="100%" icon="arrow_branch"/>
|
||||
</button-custom>
|
||||
<button-custom width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<button-custom id="btn-color" width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<icon width="100%" height="100%" icon="arrow_refresh"/>
|
||||
</button-custom>
|
||||
<button-custom width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<button-custom id="btn-layer" width="50" height="50" margin="5 5 0 0" thickness="1" border-color=".0" pad="12" align="center" justify="center">
|
||||
<icon width="100%" height="100%" icon="disk"/>
|
||||
</button-custom>-->
|
||||
|
||||
<!--panel togglers-->
|
||||
<button-custom id="btn-stroke" width="50" height="50" margin="0 0 5 0" thickness="1" border-color=".1" pad="2">
|
||||
<image path="data/ui/stroke.png" width="100%" height="100%" align="center" justify="flex-end"/>
|
||||
</button-custom>
|
||||
</border>-->
|
||||
<button-custom id="btn-brush" width="50" height="50" margin="0 0 5 0" thickness="1" border-color=".1" pad="2">
|
||||
<image path="data/ui/brushes.png" width="100%" height="100%" align="center" justify="flex-end"/>
|
||||
</button-custom>
|
||||
<button-custom id="btn-color" width="50" height="50" margin="0 0 5 0" thickness="1" border-color=".1" pad="2">
|
||||
<image path="data/ui/palette.png" width="100%" height="100%" align="center" justify="flex-end"/>
|
||||
</button-custom>
|
||||
<button-custom id="btn-layer" width="50" height="50" margin="0 0 5 0" thickness="1" border-color=".1" pad="2">
|
||||
<image path="data/ui/layers.png" width="100%" height="100%" align="center" justify="flex-end"/>
|
||||
</button-custom>
|
||||
</border>
|
||||
<!-- side bar -->
|
||||
<node height="100%" dir="row" shrink="1">
|
||||
<border pad="5 5 5 5" margin="0 0 0 0" color=".3 .3 .3 .4" height="100%" dir="col" wrap="1" shrink="1">
|
||||
<border id="panels" pad="5 5 5 5" margin="0 0 0 0" color=".3 .3 .3 .4" height="100%" dir="col" wrap="1" shrink="1">
|
||||
<!--Stroke-->
|
||||
<panel-stroke id="panel-stroke"/>
|
||||
<!--<panel-stroke id="panel-stroke"/>-->
|
||||
<!--Brushes-->
|
||||
<panel-brush id="panel-brush"/>
|
||||
<!--<panel-brush id="panel-brush"/>-->
|
||||
<!--Layers-->
|
||||
<panel-layer id="panel-layer"/>
|
||||
<!--<panel-layer id="panel-layer"/>-->
|
||||
<!--Colors-->
|
||||
<panel-color id="panel-color"/>
|
||||
<!--<panel-color id="panel-color"/>-->
|
||||
</border>
|
||||
</node>
|
||||
<!-- content panel -->
|
||||
@@ -385,7 +399,7 @@
|
||||
</node>
|
||||
<!-- status bar -->
|
||||
<border height="30" width="100%" color=".15" border-color=".3" dir="row" pad="0 0 0 10" align="center">
|
||||
<text-input width="100" height="100%" color=".3"/>
|
||||
<!--<text-input width="100" height="100%" color=".3"/>-->
|
||||
<text text="Status Bar: nothing to show here." font-face="arial" font-size="11"/>
|
||||
<text text="#opengl #fromscratch #c++" font-face="arial" font-size="11" margin="0 0 0 10" color=".2 .5 1 1"/>
|
||||
</border>
|
||||
|
||||
Reference in New Issue
Block a user