Various visual patches, opening properties on object creation.

Opening properties when creating an object.
Changing sequence icon,
Fixing bug with icons on different themes.
This commit is contained in:
Ad5001 2020-12-27 18:42:04 +01:00
parent 8b4f2baccb
commit 2ff8503620
3 changed files with 47 additions and 34 deletions

View file

@ -71,6 +71,7 @@ MenuBar {
visible: Objects.types[modelData].createable()
height: visible ? implicitHeight : 0
icon.source: './icons/'+modelData+'.svg' // Default to dark version
icon.color: sysPalette.windowText
onTriggered: {
Objects.createNewRegisteredObject(modelData)
objectLists.update()

View file

@ -401,10 +401,16 @@ ListView {
visible: Objects.types[modelData].createable()
height: visible ? implicitHeight : 0
icon.source: './icons/'+modelData+'.svg' // Default to dark version
icon.color: sysPalette.windowText
onClicked: {
Objects.createNewRegisteredObject(modelData)
objectListList.update()
objEditor.obj = Objects.currentObjects[modelData][Objects.currentObjects[modelData].length - 1]
objEditor.objType = modelData
objEditor.objIndex = Objects.currentObjects[modelData].length - 1
objEditor.editingRow = objectListList.listViews[modelData].editingRows[objEditor.objIndex]
objEditor.show()
}
}
}

View file

@ -24,13 +24,18 @@
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="22.4"
inkscape:cx="0.18129934"
inkscape:cy="18.247725"
inkscape:cx="16.797514"
inkscape:cy="10.661402"
inkscape:document-units="px"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="true"
showguides="false">
showguides="true"
inkscape:window-width="1920"
inkscape:window-height="1011"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid19" />
@ -43,7 +48,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
@ -57,76 +62,77 @@
width="7"
height="2"
x="8.5"
y="16.5" />
y="18.5" />
<rect
style="fill:#000000;stroke-width:1.40312"
id="rect34"
width="2"
height="7"
x="11"
y="14" />
y="16" />
<rect
style="fill:#000000;stroke-width:1.77482"
id="rect36"
width="7"
height="2"
x="0"
y="16.5" />
y="18.5" />
<path
style="fill:none;stroke:#000000;stroke-width:1.30579;stroke-opacity:1"
style="fill:none;stroke:#000000;stroke-width:1.3496;stroke-opacity:1"
id="path81"
sodipodi:type="arc"
sodipodi:cx="5.0003462"
sodipodi:cy="7.0000005"
sodipodi:rx="3.3431232"
sodipodi:ry="6.3471036"
sodipodi:cx="4.0003462"
sodipodi:cy="7.5000019"
sodipodi:rx="3.3210514"
sodipodi:ry="6.825202"
sodipodi:start="1.5707963"
sodipodi:end="4.712389"
sodipodi:arc-type="arc"
d="m 5.0003462,13.347104 a 3.3431232,6.3471036 0 0 1 -2.8952296,-3.173552 3.3431232,6.3471036 0 0 1 0,-6.3471033 3.3431232,6.3471036 0 0 1 2.8952296,-3.17355182"
d="m 4.0003462,14.325204 a 3.3210514,6.825202 0 0 1 -2.8761148,-3.412601 3.3210514,6.825202 0 0 1 -1e-7,-6.8252021 3.3210514,6.825202 0 0 1 2.8761149,-3.41260098"
sodipodi:open="true" />
<text
xml:space="preserve"
style="font-size:16px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle"
x="8.7109375"
y="11.75"
style="font-size:17.3333px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle"
x="8.483983"
y="11.134649"
id="text908"><tspan
sodipodi:role="line"
id="tspan906"
x="8.7109375"
y="11.75"
style="font-size:16px">u</tspan></text>
x="8.483983"
y="11.134649"
style="font-size:17.3333px">u</tspan></text>
<text
xml:space="preserve"
style="font-size:8px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle"
x="15.809186"
y="13.052049"
id="text912"><tspan
style="font-size:14.6667px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle;stroke-width:1.00003"
x="15.903568"
y="13.905546"
id="text912"
transform="scale(1.0000324,0.9999676)"><tspan
sodipodi:role="line"
id="tspan910"
x="15.809186"
y="13.052049"
style="font-size:8px">n</tspan></text>
x="15.903568"
y="13.905546"
style="font-size:14.6667px;stroke-width:1.00003">n</tspan></text>
<path
style="fill:none;stroke:#000000;stroke-width:1.47889;stroke-opacity:1"
style="fill:none;stroke:#000000;stroke-width:1.5282;stroke-opacity:1"
id="path929"
sodipodi:type="arc"
sodipodi:cx="19"
sodipodi:cy="6.9999981"
sodipodi:rx="3.2605581"
sodipodi:ry="6.2605562"
sodipodi:cx="20"
sodipodi:cy="7.4999971"
sodipodi:rx="3.2359021"
sodipodi:ry="6.7359023"
sodipodi:start="4.712389"
sodipodi:end="1.5707963"
sodipodi:arc-type="arc"
d="M 19,0.73944187 A 3.2605581,6.2605562 0 0 1 22.260558,6.9999981 3.2605581,6.2605562 0 0 1 19,13.260554"
d="M 20,0.76409483 A 3.2359021,6.7359023 0 0 1 23.235902,7.4999971 3.2359021,6.7359023 0 0 1 20,14.235899"
sodipodi:open="true" />
<rect
style="fill:#000000;stroke-width:2.01246"
id="rect36-5"
width="9"
height="2"
x="25.324257"
y="2.7796726"
x="26.562216"
y="4.3504868"
transform="rotate(38.241647)" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB