presets options when empty

This commit is contained in:
2019-08-31 17:21:47 +02:00
parent ef2210b57c
commit 295f85157d
6 changed files with 65 additions and 16 deletions

View File

@@ -61,6 +61,18 @@
<!-- PANEL PRESETS -->
<layout id="tpl-panel-brush-preset">
<node rtl="ltr" min-width="315">
<border id="notification" color=".4" align="center" justify="center" grow="2">
<text text="No brush presets loaded."/>
<text text="Import from Photoshop ABR files."/>
<text text="Or download free ones."/>
<border color=".3" dir="row" height="60" margin="15 0 15 0">
<button id="import" text="Import ABR" pad="10" height="100%"/>
<button id="download" text="Download" pad="10" height="100%"/>
</border>
<text text="Otherwise you can create new brushes,"/>
<text text="using the Brush Settings Tool and add"/>
<text text="the new brush here with the + button"/>
</border>
<scroll id="brushes" color=".4" pad="5 20 5 5" dir="col" wrap="0" flood-events="1" grow="1" height="1"/>
<border id="toolbar" 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">
@@ -72,9 +84,9 @@
<button-custom id="btn-down" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 2 0 0">
<icon width="30" icon="bullet_arrow_down"/>
</button-custom>
<button-custom id="btn-save" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 2 0 0">
<!--<button-custom id="btn-save" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 2 0 0">
<icon width="30" icon="bullet_disk"/>
</button-custom>
</button-custom>-->
<node grow="1"></node>
<button-custom id="btn-remove" thickness="1" color="0 0" border-color=".0" shrink="1" margin="0 10 0 0">
<icon width="30" icon="bin_closed"/>
@@ -99,14 +111,17 @@
</layout>
<layout id="tpl-brush-popup">
<popup-menu positioning="absolute" position="100 100" width="200" thickness="1" border-color=".1" color=".4 .4 .4 .8" dir="col">
<button-custom id="download" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Download Brushes" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="import" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Import Brushes" grow="1" margin="0 0 0 5"/>
<text text="Import from File" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="export" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Export Brushes" grow="1" margin="0 0 0 5"/>
<text text="Export to File" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="download" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Download from Cloud" grow="1" margin="0 0 0 5"/>
</button-custom>
<button-custom id="share" height="40" align="center" color=".2" pad="0 0 0 10" dir="row">
<text text="Share to Cloud" grow="1" margin="0 0 0 5"/>
</button-custom>
</popup-menu>
</layout>