summaryrefslogtreecommitdiffstats
path: root/kcontrol/krdb/ad/README
blob: 830ba77b4adaee4d8bd0a37d0f5e54308dc36c4b (plain)
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
55
56
57
58
59
60
61
62
63
KRDB V0.2

CHANGES V0.2
- use QFontInfo
- general purpose files e.g. AAAMotif.ad thanks to Gerd
  Knorr <[email protected]>

The krdb utility provides a convenient way to manage the
resources of legacy applications on your KDE desktop.
Simply run krdb every time you want to update the resources
of your supported apps.

You can easily write application default files for your own
applications. To see how, follow the example of the
supplied application default file for XV which specifies

xv*foreground: FOREGROUND
xv*background: BACKGROUND
xv*highlight: HIGHLIGHT
xv*lowlight: LOWLIGHT
xv*monofont: FIXED_FONT

The applications resources assign variables which will be
defined by krdb. The complete list of possible variables to
choose from is

FOREGROUND, BACKGROUND, HIGHLIGHT, LOWLIGHT,
WINDOW_FOREGROUND, WINDOW_BACKGROUND, SELECT_FOREGROUND,
SELECT_BACKGROUND, INACTIVE_FOREGROUND,
INACTIVE_BACKGROUND, INACTIVE_BLEND, ACTIVE_FOREGROUND,
ACTIVE_BACKGROUND, ACTIVE_BLEND, FONT, BOLD_FONT, ITALIC_FONT, 
FIXED_FONT, TITLE_FONT and FONTLIST.

Their meaning should be obvious to anyone familiar with
KDE's desktop wide resources. Install your application
default file either in

$(TDEDIR)/share/apps/kdisplay/app-defaults

or

$(HOME)/.kde/share/apps/kdisplay/app-defaults

so that it is available to krdb for reading. If you want to
override a system file simply copy it to your user
directory and make amendments.

The krdb utility works by putting your current KDE color
and font scheme into preprocessor statements, concatenating
the specially written application default files and using
xrdb -merge to write to RESOURCE_MANAGER. Thus it gives a
simple way to make non-TDE applications fit in with the
desktop.

krdb now comes with a set of general purpose configuration
files for the Motif, Xaw and TK toolkits. How well these
general purpose resources apply to specific applications
will depend on what other application defaults are
installed. If you want krdb general resource files to apply
most generally you should not have application specific
entries for similar resources in ~/.Xdefaults or in the
system app-defaults directory e.g.
/usr/lib/X11R6/app-defaults.