~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/krdb/ad/README

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
KRDB V0.2
 
2
 
 
3
CHANGES V0.2
 
4
- use QFontInfo
 
5
- general purpose files e.g. AAAMotif.ad thanks to Gerd
 
6
  Knorr <kraxel@goldbach.isdn.cs.tu-berlin.de>
 
7
 
 
8
The krdb utility provides a convenient way to manage the
 
9
resources of legacy applications on your KDE desktop.
 
10
Simply run krdb every time you want to update the resources
 
11
of your supported apps.
 
12
 
 
13
You can easily write application default files for your own
 
14
applications. To see how, follow the example of the
 
15
supplied application default file for XV which specifies
 
16
 
 
17
xv*foreground: FOREGROUND
 
18
xv*background: BACKGROUND
 
19
xv*highlight: HIGHLIGHT
 
20
xv*lowlight: LOWLIGHT
 
21
xv*monofont: FIXED_FONT
 
22
 
 
23
The applications resources assign variables which will be
 
24
defined by krdb. The complete list of possible variables to
 
25
choose from is
 
26
 
 
27
FOREGROUND, BACKGROUND, HIGHLIGHT, LOWLIGHT,
 
28
WINDOW_FOREGROUND, WINDOW_BACKGROUND, SELECT_FOREGROUND,
 
29
SELECT_BACKGROUND, INACTIVE_FOREGROUND,
 
30
INACTIVE_BACKGROUND, INACTIVE_BLEND, ACTIVE_FOREGROUND,
 
31
ACTIVE_BACKGROUND, ACTIVE_BLEND, FONT, BOLD_FONT, ITALIC_FONT, 
 
32
FIXED_FONT, TITLE_FONT and FONTLIST.
 
33
 
 
34
Their meaning should be obvious to anyone familiar with
 
35
KDE's desktop wide resources. Install your application
 
36
default file either in
 
37
 
 
38
$(KDEDIR)/share/apps/kdisplay/app-defaults
 
39
 
 
40
or
 
41
 
 
42
$(HOME)/.kde/share/apps/kdisplay/app-defaults
 
43
 
 
44
so that it is available to krdb for reading. If you want to
 
45
override a system file simply copy it to your user
 
46
directory and make amendments.
 
47
 
 
48
The krdb utility works by putting your current KDE color
 
49
and font scheme into preprocessor statements, concatenating
 
50
the specially written application default files and using
 
51
xrdb -merge to write to RESOURCE_MANAGER. Thus it gives a
 
52
simple way to make non-KDE applications fit in with the
 
53
desktop.
 
54
 
 
55
krdb now comes with a set of general purpose configuration
 
56
files for the Motif, Xaw and TK toolkits. How well these
 
57
general purpose resources apply to specific applications
 
58
will depend on what other application defaults are
 
59
installed. If you want krdb general resource files to apply
 
60
most generally you should not have application specific
 
61
entries for similar resources in ~/.Xdefaults or in the
 
62
system app-defaults directory e.g.
 
63
/usr/lib/X11R6/app-defaults.