Thanks Alex,

I am one of those who dislikes ColorPalette.  I believe it was
invented by a frustrated amateur encryption enthusiast:-)

If you haven't memorized the hex code for colors you have to look them
up from the ColorPalette then either find what they look like by
experiment or find a color chart.  Of course it uses three digit hex
that many paint programs don't recognize so you have to translate it
into six digit hex just to find out what color it is.

Now you have to search the StyleSheetColors (taking care not to touch
anything in it) to find what elements are affected by the cryptic
notations of PrimaryPale: TertiaryDark: etc. This may need to be done
it two ways translating back and forth first finding out what
PrimaryPale is then finding the element, then the reverse of that for
other purposes....

(Encryption experts can tell you that you can actually use the
ColorPalette to create an unbreakable cipher that even the Dept of
Defense couldn't break.  Using a ColorPalette and the One Time Pad
encryption it truly would be nearly impossible to break.) But I
digress.

Now you have to copy the element code from StyleSheetColors (taking
care not to touch anything in it such as cutting the code instead of
copying it) paste the code into StyleSheet, look up the hex code for
the color you want, cut out most of the code you just pasted and
replace it with the hex code you've found.  Of course your favorite
color now conflicts or clashes with something else on the ColorPalette
and you start again!

Of course if you are really adventurous you change ColorPalette itself
then be surprised when other things change to a color that you didn't
want or disappear altogether because now the background and text are
the same color.

I have experimented  with a ReadablePalette with some success and if I
have time one day I'll finish it and release it to the wild.  It may
be a bit longer than ColorPalette but at least a human could read and
use it without breaking into red faced Color Rage :-)

Here's a rough idea.

|background|white|
|foreground|black|
|Text|brown|
|Link|blue|
|LinkHover|red|
|LinkHoverBg|wheat|
|Button|red|
|ButtonHover|white|
|ButtonHoverBg|blue|

By now you know all of the color hex codes so...:-)

|sliderpanelBg|#ccc|
|ViewerLink|#ffc|
|ViewerLinkHover|#090|
|ViewerButton|#ffc|

I feel better now:-)

Morris Gray
http://twhelp.tiddlyspot.com
A TiddlyWiki help file for beginners



On Feb 23, 10:05 am, Alex Hough <[email protected]> wrote:
> I've taken some of the stuff on this thread and put it 
> here:http://tiddlywiki.org/wiki/Color
>
> I've edited some of your words FND... hope you don't mind.
> Morris i put your link as an external link.
>
> alex
>
> 2009/2/22 Morris Gray <[email protected]>:
>
>
>
>
>
> > Here is a link that might help in deciphering the ColorPalette  if you
> > are just beginning.
>
> >http://twhelp.tiddlyspot.com/#TiddlyWikiColors
>
> > It even contains a link to help you memorize how it affects the
> > various elements in a TiddlyWiki, if you have more time than sense:-)
>
> > Morris Gray
> >http://twhelp.tiddlyspot.com
> > A TiddlyWiki help file for beginners
>
> > On Feb 23, 8:23 am, FND <[email protected]> wrote:
> >> > What I am trying to work out is which tiddler takes precedence and why
> >> > colours need to be defined in both [ColourPalette and StyleSheet]
>
> >> The ColorPalette is merely an auxiliary tool - that is, it doesn't have
> >> any significance in itself, but is only relevant insofar as its slices*
> >> are referenced from within the StyleSheet.
>
> >> For example, your StyleSheet might have an entry like this:
> >>      body {
> >>          background-color: [[ColorPalette::Background]];
> >>      }
> >> This fetches the Background slice's value (e.g. "#FFF") from the
> >> ColorPalette tiddler and inserts it in place.
> >> Alternatively, you could define the respective color directly, right
> >> there in the StyleSheet:
> >>      body {
> >>          background-color: #FFF;
> >>      }
>
> >> With the ColorPalette users can change the look of their documents
> >> without having to dig into CSS.
>
> >> Some people (primarily programmers?) like the ColorPalette indirection
> >> to ensure consistency - although there are quite a few people who don't
> >> like the ColorPalette at all.
>
> >> In short: If you're adding custom styles or creating a new theme, you
> >> can choose whether you want to use the ColorPalette or prefer to define
> >> colors directly in the StyleSheet.
>
> >> HTH.
>
> >> -- F.
>
> >> *http://tiddlywiki.org/wiki/Tiddler_Slices
>
> --
> t: 0161 442 2202
> m: 0781 372 50 17
> skype: alexhough
> delicious: alexhough
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to