some attempts to get icons in create tab

This commit is contained in:
Faye Li 2017-02-13 14:40:45 -08:00
parent bd0b64c775
commit 6f506d6023
2 changed files with 135 additions and 19 deletions

View file

@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 19.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 50 150" style="enable-background:new 0 0 50 150;" xml:space="preserve">
<style type="text/css">
.st0{opacity:0.9;}
.st1{fill:#FFFFFF;}
.st2{fill:#1E1E1E;}
.st3{fill:#EAEAEA;}
.st4{opacity:0.47;}
.st5{opacity:0.47;fill:#EAEAEA;}
</style>
<g>
<g class="st0">
<path class="st1" d="M50,46c0,2.2-1.8,4-4,4H4c-2.2,0-4-1.8-4-4V4c0-2.2,1.8-4,4-4h42c2.2,0,4,1.8,4,4V46z"/>
</g>
</g>
<g class="st0">
<path class="st2" d="M50,96c0,2.2-1.8,4-4,4H4c-2.2,0-4-1.8-4-4V54c0-2.2,1.8-4,4-4h42c2.2,0,4,1.8,4,4V96z"/>
</g>
<path d="M32.7,9.4c-4.3-4.3-11.2-4.3-15.5,0c-2.1,2.1-3.2,4.8-3.2,7.7c0,2.9,1.1,5.7,3.2,7.7C19.4,27,22.2,28,25,28
c2.8,0,5.6-1.1,7.7-3.2c2.1-2.1,3.2-4.8,3.2-7.7C35.9,14.2,34.8,11.4,32.7,9.4z M18.3,10.4c1.4-1.4,3.2-2.3,5-2.6
C23,8.3,22.7,9,22.4,9.9c-0.6,2-1,4.6-1,7.3c0,0.1,0,0.3,0,0.5c0.3,0.1,0.6,0.1,0.9,0.1c0.1,0,0.2,0,0.3,0c0-0.2,0-0.4,0-0.6
c0-5.5,1.4-9.2,2.5-9.5c0,0,0,0,0.1-0.1c2.4,0,4.7,1,6.5,2.8c1.7,1.7,2.7,4,2.8,6.5c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.6-0.3c0.2-0.2,0.2-0.4,0.2-0.8c0-0.2,0-0.3-0.1-0.4c0-0.1-0.1-0.2-0.2-0.3s-0.2-0.2-0.3-0.2
c-0.1,0-0.2-0.1-0.3-0.1h-1.4V89z"/>
<path class="st3" d="M24.6,85.9v6.4h-1.2v-2.7h-2.9v2.7h-1.2v-6.4h1.2v2.6h2.9v-2.6H24.6z"/>
<path class="st3" d="M30.6,91.2v1.1h-4.4v-6.4h4.4v1.1h-3.1v1.5h2.7v1h-2.7v1.7H30.6z"/>
<path class="st3" d="M31.8,92.2v-6.4h2.8c0.3,0,0.6,0.1,0.8,0.2s0.5,0.3,0.6,0.5c0.2,0.2,0.3,0.4,0.4,0.7c0.1,0.3,0.2,0.5,0.2,0.8
c0,0.4-0.1,0.8-0.3,1.1s-0.5,0.6-0.8,0.7l1.5,2.4h-1.4l-1.3-2.1h-1.2v2.1H31.8z M33.1,89h1.6c0.1,0,0.2,0,0.3-0.1
c0.1-0.1,0.2-0.1,0.3-0.2c0.1-0.1,0.1-0.2,0.2-0.3s0.1-0.3,0.1-0.4c0-0.1,0-0.3-0.1-0.4s-0.1-0.2-0.2-0.3S35,87.1,34.9,87
c-0.1-0.1-0.2-0.1-0.3-0.1h-1.5V89z"/>
<path class="st3" d="M42.5,91.2v1.1h-4.4v-6.4h4.4v1.1h-3.1v1.5H42v1h-2.7v1.7H42.5z"/>
</g>
<g class="st4">
<path class="st2" d="M50,146c0,2.2-1.8,4-4,4H4c-2.2,0-4-1.8-4-4v-42c0-2.2,1.8-4,4-4h42c2.2,0,4,1.8,4,4V146z"/>
</g>
<path class="st5" d="M33.1,109.4c-4.3-4.3-11.2-4.3-15.5,0c-2.1,2.1-3.2,4.8-3.2,7.7c0,2.9,1.1,5.7,3.2,7.7c2.1,2.1,4.9,3.2,7.7,3.2
c2.8,0,5.6-1.1,7.7-3.2c2.1-2.1,3.2-4.8,3.2-7.7C36.3,114.2,35.1,111.5,33.1,109.4z M18.6,110.4c1.4-1.4,3.2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.2,0.3,0.4,0.4,0.7c0.1,0.3,0.2,0.5,0.2,0.8
c0,0.4-0.1,0.8-0.3,1.1s-0.5,0.6-0.8,0.7l1.5,2.4h-1.4l-1.3-2.1h-1.2v2.1H31.8z M33.1,139h1.6c0.1,0,0.2,0,0.3-0.1
c0.1-0.1,0.2-0.1,0.3-0.2c0.1-0.1,0.1-0.2,0.2-0.3s0.1-0.3,0.1-0.4c0-0.1,0-0.3-0.1-0.4s-0.1-0.2-0.2-0.3s-0.2-0.2-0.3-0.2
c-0.1-0.1-0.2-0.1-0.3-0.1h-1.5V139z"/>
<path class="st3" d="M42.5,141.2v1.1h-4.4v-6.4h4.4v1.1h-3.1v1.5H42v1h-2.7v1.7H42.5z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 9.1 KiB

View file

@ -4,6 +4,7 @@ import QtWebEngine 1.1
import QtWebChannel 1.0
import QtQuick.Controls.Styles 1.4
import "../../controls"
import "../toolbars"
import HFWebEngineProfile 1.0
StackView {
@ -41,9 +42,17 @@ StackView {
Flow {
id: createEntitiesFlow
spacing: 16
anchors.right: parent.right
anchors.rightMargin: 30
anchors.left: parent.left
anchors.leftMargin: 30
anchors.bottom: parent.bottom
anchors.bottomMargin: 30
anchors.top: parent.top
anchors.topMargin: 30
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/assets-01.svg"
TabletButton {
icon: "icons/assets-01.svg"
text: "ASSETS"
onClicked: {
editRoot.sendToScript({
@ -52,8 +61,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/model-01.svg"
TabletButton {
icon: "model-01.svg"
text: "MODEL"
onClicked: {
editRoot.sendToScript({
@ -62,8 +71,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/cube-01.svg"
TabletButton {
icon: "../cube-01.svg"
text: "CUBE"
onClicked: {
editRoot.sendToScript({
@ -72,9 +81,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/sphere-01.svg"
text: "SPHERE"
ToolbarButton {
imageURL: "../images/sphere-01.svg"
onClicked: {
editRoot.sendToScript({
method: "newEntityButtonClicked", params: { buttonName: "newSphereButton" }
@ -82,8 +90,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/light-01.svg"
TabletButton {
icon: "../scripts/system/assets/images/tools/light-01.svg"
text: "LIGHT"
onClicked: {
editRoot.sendToScript({
@ -92,8 +100,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/text-01.svg"
TabletButton {
icon: "../scripts/system/assets/images/tools/text-01.svg"
text: "TEXT"
onClicked: {
editRoot.sendToScript({
@ -102,8 +110,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/web-01.svg"
TabletButton {
icon: "../scripts/system/assets/images/tools/web-01.svg"
text: "WEB"
onClicked: {
editRoot.sendToScript({
@ -112,8 +120,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/zone-01.svg"
TabletButton {
icon: "../scripts/system/assets/images/tools/zone-01.svg"
text: "ZONE"
onClicked: {
editRoot.sendToScript({
@ -122,8 +130,8 @@ StackView {
}
}
Button {
iconSource: "../../../../../scripts/system/assets/images/tools/particle-01.svg"
TabletButton {
icon: "../scripts/system/assets/images/tools/particle-01.svg"
text: "PARTICLE"
onClicked: {
editRoot.sendToScript({