various GUI improvements

This commit is contained in:
Stephan Richter
2020-12-11 00:57:53 +01:00
parent 1e2edabcb1
commit e80d5fe79f
9 changed files with 49 additions and 11 deletions

View File

@@ -330,4 +330,15 @@ textarea.json {
width: 90%;
height: 33%;
margin-left: 5%;
}
svg.preview circle,
svg.preview line,
svg.preview polygon,
svg.preview rect{
fill:peru;
}
svg.Block text{
fill: black;
}

View File

@@ -57,6 +57,7 @@ function closeMenu(ev){
function closeWindows(){
$('.window').remove();
$('.preview').removeClass('preview');
$('#plan').css('height','').css('width','');
}

View File

@@ -1,5 +1,5 @@
<svg width="100" height="100" viewbox="0 0 100 100">
<rect x="0" y="35" width="%width%" height="30" />
<rect class="block" x="20" y="10" width="%width%-40" height="80" />
<text x="25" y="65" fill="red">%text%</text>
<text x="25" y="65">%text%</text>
</svg>

Before

Width:  |  Height:  |  Size: 225 B

After

Width:  |  Height:  |  Size: 214 B

View File

@@ -1,5 +1,5 @@
<svg width="100" height="100" viewbox="0 0 100 100">
<rect x="35" y="0" width="30" height="%height%" />
<rect class="block" x="10" y="20" width="80" height="%height%-40" />
<text x="25" y="65" fill="red" transform="translate(100, 0) rotate(90)">%text%</text>
<text x="25" y="65" transform="translate(100, 0) rotate(90)">%text%</text>
</svg>

Before

Width:  |  Height:  |  Size: 268 B

After

Width:  |  Height:  |  Size: 257 B

View File

@@ -165,6 +165,7 @@ PushPullTrain : Wendezug
Push-pull train : Wendezug
quit autopilot : Autopilot beenden
{} reached it`s destination! : {} ist am Ziel angekommen!
Relays and Turnouts : Relais und Weichen
Relay/Turnout : Relais/Weiche
Report Issue : Problem melden
reverse : rückwärts