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:
Adsooi 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() visible: Objects.types[modelData].createable()
height: visible ? implicitHeight : 0 height: visible ? implicitHeight : 0
icon.source: './icons/'+modelData+'.svg' // Default to dark version icon.source: './icons/'+modelData+'.svg' // Default to dark version
icon.color: sysPalette.windowText
onTriggered: { onTriggered: {
Objects.createNewRegisteredObject(modelData) Objects.createNewRegisteredObject(modelData)
objectLists.update() objectLists.update()

View file

@ -401,10 +401,16 @@ ListView {
visible: Objects.types[modelData].createable() visible: Objects.types[modelData].createable()
height: visible ? implicitHeight : 0 height: visible ? implicitHeight : 0
icon.source: './icons/'+modelData+'.svg' // Default to dark version icon.source: './icons/'+modelData+'.svg' // Default to dark version
icon.color: sysPalette.windowText
onClicked: { onClicked: {
Objects.createNewRegisteredObject(modelData) Objects.createNewRegisteredObject(modelData)
objectListList.update() 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:pageopacity="0.0"
inkscape:pageshadow="2" inkscape:pageshadow="2"
inkscape:zoom="22.4" inkscape:zoom="22.4"
inkscape:cx="0.18129934" inkscape:cx="16.797514"
inkscape:cy="18.247725" inkscape:cy="10.661402"
inkscape:document-units="px" inkscape:document-units="px"
inkscape:current-layer="layer1" inkscape:current-layer="layer1"
inkscape:document-rotation="0" inkscape:document-rotation="0"
showgrid="true" 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 <inkscape:grid
type="xygrid" type="xygrid"
id="grid19" /> id="grid19" />
@ -43,7 +48,7 @@
<dc:format>image/svg+xml</dc:format> <dc:format>image/svg+xml</dc:format>
<dc:type <dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title> <dc:title />
</cc:Work> </cc:Work>
</rdf:RDF> </rdf:RDF>
</metadata> </metadata>
@ -57,76 +62,77 @@
width="7" width="7"
height="2" height="2"
x="8.5" x="8.5"
y="16.5" /> y="18.5" />
<rect <rect
style="fill:#000000;stroke-width:1.40312" style="fill:#000000;stroke-width:1.40312"
id="rect34" id="rect34"
width="2" width="2"
height="7" height="7"
x="11" x="11"
y="14" /> y="16" />
<rect <rect
style="fill:#000000;stroke-width:1.77482" style="fill:#000000;stroke-width:1.77482"
id="rect36" id="rect36"
width="7" width="7"
height="2" height="2"
x="0" x="0"
y="16.5" /> y="18.5" />
<path <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" id="path81"
sodipodi:type="arc" sodipodi:type="arc"
sodipodi:cx="5.0003462" sodipodi:cx="4.0003462"
sodipodi:cy="7.0000005" sodipodi:cy="7.5000019"
sodipodi:rx="3.3431232" sodipodi:rx="3.3210514"
sodipodi:ry="6.3471036" sodipodi:ry="6.825202"
sodipodi:start="1.5707963" sodipodi:start="1.5707963"
sodipodi:end="4.712389" sodipodi:end="4.712389"
sodipodi:arc-type="arc" 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" /> sodipodi:open="true" />
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:16px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle" style="font-size:17.3333px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle"
x="8.7109375" x="8.483983"
y="11.75" y="11.134649"
id="text908"><tspan id="text908"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan906" id="tspan906"
x="8.7109375" x="8.483983"
y="11.75" y="11.134649"
style="font-size:16px">u</tspan></text> style="font-size:17.3333px">u</tspan></text>
<text <text
xml:space="preserve" xml:space="preserve"
style="font-size:8px;line-height:1.25;font-family:sans-serif;text-align:center;letter-spacing:0px;text-anchor:middle" 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.809186" x="15.903568"
y="13.052049" y="13.905546"
id="text912"><tspan id="text912"
transform="scale(1.0000324,0.9999676)"><tspan
sodipodi:role="line" sodipodi:role="line"
id="tspan910" id="tspan910"
x="15.809186" x="15.903568"
y="13.052049" y="13.905546"
style="font-size:8px">n</tspan></text> style="font-size:14.6667px;stroke-width:1.00003">n</tspan></text>
<path <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" id="path929"
sodipodi:type="arc" sodipodi:type="arc"
sodipodi:cx="19" sodipodi:cx="20"
sodipodi:cy="6.9999981" sodipodi:cy="7.4999971"
sodipodi:rx="3.2605581" sodipodi:rx="3.2359021"
sodipodi:ry="6.2605562" sodipodi:ry="6.7359023"
sodipodi:start="4.712389" sodipodi:start="4.712389"
sodipodi:end="1.5707963" sodipodi:end="1.5707963"
sodipodi:arc-type="arc" 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" /> sodipodi:open="true" />
<rect <rect
style="fill:#000000;stroke-width:2.01246" style="fill:#000000;stroke-width:2.01246"
id="rect36-5" id="rect36-5"
width="9" width="9"
height="2" height="2"
x="25.324257" x="26.562216"
y="2.7796726" y="4.3504868"
transform="rotate(38.241647)" /> transform="rotate(38.241647)" />
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB