Just to flesh this out a bit further:
To create a custom Style scheme for the Edit or Term windows of the Gtk IDE:

1. Using the files ~addons/gui/gtk/config/term.xml and
~addons/gui/gtk/config/edit.xml as templates, create new files in
~config/ with the desired name (note that the default "template" files
are likely to move to ~addons/ide/gtk/config eventually)

2. edit the new xml files so that the "id" property of the
"style-scheme" tag matches the file name.

3. Add color definitions as desired and change the colors used for
each defined J element. See [1] for the full gtksourceview reference
for style schemes.

4. Use Edit|Configure|Gtk Ide to open ~config/gtkide.cfg and edit the
EditScheme and/or TermScheme nouns to reflect the name of your new
custom style scheme file.

Note that the files currently in ~system/config/ should not be there
and should be ignored as red herrings[3].

BTW, at the moment the style scheme file at [2] seems to be
similar/identical to the default term.xml? It is missing the new
setting for j:labtext.


[1] http://library.gnome.org/devel/gtksourceview/stable/style-reference.html
[2] http://www.jsoftware.com/jwiki/DevonMcCormick/GTK/DarkTermColorScheme0
[3] I enjoyed an account of the origin of the idiom "a red herring" I
heard recently. Apparently early settlers, in what is now the USA,
used to go hunting in the woods to supplement their diet. Hunters
could often end up "the hunted" due to large numbers of wolves at the
time. To mask their trail/scent the settlers would leave red herring
(soaking fish in brine causes them to give off a pungent odour and
gives the flesh a pink color) in the woods - hence a red herring is a
erroneous clue or fallacy. According to Wikipedia [4] this is story is
a myth, I enjoyed it nevertheless!
[4] http://en.wikipedia.org/wiki/Red_herring

On Thu, Feb 17, 2011 at 12:51 PM, bill lam <[email protected]> wrote:
> I also use dark theme. You can add addition themes and put them inside ~config
> and then set configuration in Menu config|gtkide. There are 2 gotcha.
>
> 1. the name of xml file must agree with a tag inside the xml, eg
>   my theme is named dark-edit.xml, and first few lines are
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>  <!-- editor -->
>
> <style-scheme id="dark-edit" _name="dark-edit" version="1.0">
>
> 2. the file should be located inside ~user/config  not ~addons/ide/gtk/config
>   though this may change in the future.
>
> Срд, 16 Фев 2011, Devon McCormick писал(а):
>> Since I prefer a color scheme with a dark background and a light foreground,
>> I've been working on one for the J GTK.  I've put a preliminary version of
>> this on the wiki at
>> http://www.jsoftware.com/jwiki/DevonMcCormick/GTK/DarkTermColorScheme0.
>> This is data for the "term.xml" config file.
>>
>> I'm still experimenting with it but this looks OK for a start.  I've also
>> put up a page (http://www.jsoftware.com/jwiki/DevonMcCormick/GTK/ColorList)
>> with an extensive (657) list of named colors I created from the list
>> provided with emacs if anyone wants to play with these.
>>
>> --
>> Devon McCormick, CFA
>> ^me^ at acm.
>> org is my
>> preferred e-mail
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
> --
> regards,
> ====================================================
> GPG key 1024D/4434BAB3 2008-08-24
> gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to