changing colour of custom shapes



Dear Dia-Users!

I am trying to create a dia-sheet with symbols used in power-engineering (power station, cooling and heating cycles) which I intend to make available to other users once it's finished.

I am experiencing problems with the shapes which I created myself:
Exporting the shapes, importing into a sheet and using in a dia file works well. But when I try to change the colour of the inserted object not all lines change their colour.
I noticed the following behaviour:
Straight lines do not change the colour, but the colour beziergons and ellipses is changed to the desired one.

I did a lot of research to find an answer to this question. I would appreciate your help.

As I don't know if attachments will be displayed in this mailing list, I included the source code of a shape file which shows the described behaviour (the symbol should represent a stack: 3 straight lines and an ellipse at the top). If I include this shape in another diagram and try to change the line colour, only the colour of the ellipse is changed. The straight lines remain black. I experienced this behaviour with several shapes which I created on my own.

the output of dia --version is:
Dia-Version 0.96.1, kompiliert (=compiled) 16:58:43 Jan 25 2008
(I am using the default package available in the ubuntu 8.04 repositories)

waldbauernbub

the code of the shape-file:

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"; xmlns:svg="http://www.w3.org/2000/svg";>
  <name>dia-shapes - stack</name>
  <icon>stack.png</icon>
  <connections>
    <point x="15" y="25"/>
    <point x="22" y="25"/>
    <point x="18.5" y="25"/>
    <point x="17" y="4.5"/>
    <point x="15" y="25"/>
    <point x="16" y="14.75"/>
    <point x="20" y="4.5"/>
    <point x="22" y="25"/>
    <point x="21" y="14.75"/>
    <point x="18.5" y="5"/>
    <point x="18.5" y="4"/>
    <point x="17" y="4.5"/>
    <point x="20" y="4.5"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
<svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="15" y1="25" x2="22" y2="25"/> <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="17" y1="4.5" x2="15" y2="25"/> <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="20" y1="4.5" x2="22" y2="25"/> <svg:ellipse style="fill: #ffffff" cx="18.5" cy="4.5" rx="1.5" ry="0.5"/> <svg:ellipse style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" cx="18.5" cy="4.5" rx="1.5" ry="0.5"/>
  </svg:svg>
</shape>



<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns="http://www.daa.com.au/~james/dia-shape-ns"; xmlns:svg="http://www.w3.org/2000/svg";>
  <name>dia-shapes - stack</name>
  <icon>stack.png</icon>
  <connections>
    <point x="15" y="25"/>
    <point x="22" y="25"/>
    <point x="18.5" y="25"/>
    <point x="17" y="4.5"/>
    <point x="15" y="25"/>
    <point x="16" y="14.75"/>
    <point x="20" y="4.5"/>
    <point x="22" y="25"/>
    <point x="21" y="14.75"/>
    <point x="18.5" y="5"/>
    <point x="18.5" y="4"/>
    <point x="17" y="4.5"/>
    <point x="20" y="4.5"/>
  </connections>
  <aspectratio type="fixed"/>
  <svg:svg>
    <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="15" y1="25" x2="22" 
y2="25"/>
    <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="17" y1="4.5" x2="15" 
y2="25"/>
    <svg:line style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" x1="20" y1="4.5" x2="22" 
y2="25"/>
    <svg:ellipse style="fill: #ffffff" cx="18.5" cy="4.5" rx="1.5" ry="0.5"/>
    <svg:ellipse style="fill: none; fill-opacity:0; stroke-width: 0.1; stroke: #000000" cx="18.5" cy="4.5" 
rx="1.5" ry="0.5"/>
  </svg:svg>
</shape>

Attachment: stack.dia
Description: application/dia-diagram



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]