File: README-resources

package info (click to toggle)
coccinella 0.96.20-9
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 13,184 kB
  • sloc: tcl: 124,744; xml: 206; makefile: 66; sh: 62
file content (54 lines) | stat: -rw-r--r-- 1,787 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54

README-resources

There are two kinds of options that are set using resources:

 o Widget options look for values in the resource data base unless
   they have been hardcoded in the application sources.

 o There are application specific resources that control the more
   "high level" parts of the user interface.

The default.rdb file always sets some reasonable values.
After that the platform specific rdb file is read. Typical name is macosx.rdb.
If a specific application theme is set, resources are also searched for
in its resource folder. An example:

    themes/Cool/resources/default.rdb

using the same rules, first default, then platform specific.

Widget specific options can be specified in several more or less generic ways.
See the Tk and tile docs for complete descriptions. Below are listed the levels
of resources that can be specified:

1) Tk's  and tile standard widget resources:

*Canvas.background:  #dedede

2) Specific megawidget resources are set using, for instance:

*Tablelist.background:  #aa2222

3) There are several application specific classes that can be
used when specifying resources. They are:
Whiteboard, JMain, MailBox, Chat, GroupChat, NewMsg, Splash... 
Search the sources.

*MailBox*Tablelist.labelBackground:  #dd1111

4) Some of these also have specific resource names, see the
respective sources for this. One example:

*Chat*youPreBackground:  green

5) Each image has a resource name associated with it. If you keep
the filename the same as in the original distro, the image
will be automatically used. You may also pick a different
name, but then you must specify a new value for the resource
that is also the file name. Examplevise:

*JMain.connectImage:  imageMyConnect


See also themes/README-themes for more info on customization.