Home Forums Wiki Doc Install Extras Screenshots Source Code Projects Blog Users Groups Register
Glx-Dock / Cairo-Dock List of forums Ideas | Propositions greater SVG support
The latest stable release is the *3.4.0* : How to install it here.
Note: We just switched from BZR to Git on Github! (only to host the code and your future pull requests)
Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] greater SVG support
cairoguy English 1 fabounet [Read]
21 August 2013 à 17:00

cairoguy, Sunday 18 August 2013 à 22:36


Subscription date : 18 August 2013
Messages : 1
Hi,

In self.sub_icons.AddSubIcons method use an icon that has been create from a variable containing svg code that may not have been read from a file.
This is an example of what I mean,

svgicon = "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" \
+ " <g id='layer1'> " \
+ " <rect id='rect1' height='48' width='48' stroke='#000' stroke-width='1' fill='none'/> " \
+ "<svg y='11'> " \
+ " <text id='day' x='16' y='1' font-size='9px' font-style='normal' font-family='Sans' fill='#000000'><tspan>A</tspan></text> " \
+ " </svg> " \
+ " <svg y='30'> " \
+ " <text id='month' x='2' y='1' font-size='18px' font-style='normal' font-family='Sans' fill='#000000'><tspan>B</tspan></text> " \
+ " </svg> " \
+ " <svg y='42'> " \
+ " <text id='year' x='12' y='1' font-size='9px' font-style='normal' font-family='Sans' fill='#000000'><tspan>C</tspan></text> " \
+ " </svg> " \
+ " </g> " \
+ " </svg> "

Thanks

version 3.2.1
Ubuntu version
Opengl
Metacity
Gnome

fabounet, Wednesday 21 August 2013 à 17:00


Subscription date : 30 November 2007
Messages : 17118
Hi,
what about writing it to a temporary file and then passing this file to the method ?

Ideas | Propositions

Subjects Author Language Messages Last message
[Locked] greater SVG support
cairoguy English 1 fabounet [Read]
21 August 2013 à 17:00


Glx-Dock / Cairo-Dock List of forums Ideas | Propositions greater SVG support Top

Online users :

Powered by ElementSpeak © 2007 Adrien Pilleboue, 2009-2013 Matthieu Baerts.
Dock based on CSS Dock Menu (Ndesign) with jQuery. Icons by zgegball
Cairo-Dock is a free software under GNU-GPL3 licence. First stable version created by Fabounet.
Many thanks to TuxFamily for the web Hosting and Mav for the domain name.