[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-artists
Subject:    Re: K-ARTIST:Modifying the default icon schemes
From:       ante <vitanova () softhome ! net>
Date:       2003-02-03 21:33:05
[Download RAW message or body]

On Monday 03 February 2003 16:57, Antiphon wrote:
> Ante has understood my idea correctly.
> 
> Perhaps we don't even need to make any additional SVG
> comments &c. but rather make it so that certain
> particular colors will be specified to be the swapping
> colors, i.e. how transparent GIFs are not really
> transparent.
> 
> This is a hack but may be more feasible. Is there
> anyone who is on the programming end of the SVG
> implementation on this list?

Below is a svg file, seen in a text application. Things like "#FFFF00" and 
"#000066" are colors. They are called with "st2int", etc. I'm no SVG \
wizard,  yet it seems to me the colors are first defined, then called. The \
names of  the variables are like st*int. The st0int may be the main color. \
Well,  possibly it is not that hard to implement. 

Another svg file uses st0arch to name the variables.

A script would have to look for the line that starts with .st0 and change 
the fill:#FFCC00;stroke:#000000 part. I guess...

Cordialemente,

Ante


*****************************************************************************************



<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 9.0, SVG Export Plug-In  -->
<svg viewBox="0 0 211.7 48">
	<style type="text/css">
	<![CDATA[
		
.st0int{fill-rule:nonzero;clip-rule:nonzero;fill:#FFCC00;stroke:#000000;stroke-miterlimit:4;}
                
		.st1int{fill:#FFFFFF;}
		.st2int{fill-rule:nonzero;clip-rule:nonzero;fill:#FFFF00;}
		.st3int{fill-rule:nonzero;clip-rule:nonzero;fill:#000066;}
		.st4int{fill-rule:evenodd;clip-rule:evenodd;stroke:none;}
	]]>
	</style>
	<g id="Layer_x0020_1" class="st0int">
		<g class="st4int">
			<g class="st3int">
				<path d="M0,0h211.7v48H0V0z"/>
				<path d="M105.9,24"/>
			</g>
			<g class="st2int">
				<path d="M0,29.3h211.7v1.1H0v-1.1z"/>
				<path d="M105.9,29.8"/>
			</g>
			<g>
				<path d="M102.8,27.2V7.7h-2.6v19.5h2.6z"/>
				<path 
d="M107.6,15.8l-0.1-2.2H105c0.1,1,0.1,1.9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178.8,41.6c0,0.1,0,0.2,0,0.3c0,1.8-1.1,2.8-3.2,2.8c-1.5,0-2.3-0.5-2.3-1.3c0-1.3,1.6-1.7,5.1-1.7c0.1,0,0.2,0,0.4,0z"/>
  <path d="M185.5,46.9h4.6v-12h-4.6v12z M185.3,33h5v-3.4h-5V33z"/>
				<path 
d="M192.3,46.9h4.6v-6.1c0-2.4,1-3.5,3.2-3.5c1.7,0,2.5,0.8,2.5,2.5v7.2h4.6v-7 \
.4c0-3.1-2-5-5.2-5c-2.3,0-3.8,0.8-5.2,2.2c0-0.7,0-1.3-0.1-1.9h-4.6c0.1,0.9,0.1,1.9,0.1,2.8v9.2z"/>
  </g>
		</g>
	</g>
</svg>

*************************************************************************************************



> 
> --- ante <vitanova@softhome.net> wrote:
> > True, but the results are not very good, there is an
> > one color wash over
> > everything. Antiphon's idea may be difficult to
> > implement, the main color has
> > to be identified, something like adding to the file:
> > MainColor=..... . Or it
> > has to be found be the software. I doubt it will
> > really work out.
> > 
> > And then, there are the PNGs that are made out of
> > the SVGs for the small
> > icons, they will not change with the SVGs.
> > 
> > If you maintain a green version or a red one - or a
> > black and white for color
> > blind people - it is probably a good idea to write a
> > script and change the
> > SVGs with it, then repair some of them by hand, make
> > a theme out of them.
> > Automate the bulk, finetune the results.

_______________________________________________
kde-artists mailing list
kde-artists@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-artists


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic