~ubuntu-branches/ubuntu/hoary/gnome-themes/hoary

« back to all changes in this revision

Viewing changes to README

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-03-07 16:32:05 UTC
  • Revision ID: james.westby@ubuntu.com-20050307163205-g2synx9g94y4joxt
Tags: upstream-2.10.0
ImportĀ upstreamĀ versionĀ 2.10.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Note to maintainers: because of the long filenames involved in this module,
 
2
'make dist' will fail with versions of GNU tar > 1.12.
 
3
 
 
4
==========================================================================
 
5
NOTE: The remainder of this README applies only to the 7 accessibility 
 
6
      themes in this module:
 
7
 
 
8
- HighContrast[LargePrint][Inverse]
 
9
- LowContrast[LargePrint]
 
10
- LargePrint 
 
11
==========================================================================
 
12
 
 
13
0. Default Theme
 
14
----------------
 
15
 
 
16
All the themes in this module inherit from the 'gnome' theme.
 
17
The 'gnome' theme is in the gnome-icon-theme module, and has to be built and installed separately.
 
18
 
 
19
1. Editing the gtkrc files
 
20
--------------------------
 
21
 
 
22
The gtkrc.in files for each a11y theme are currently generated by autogen.sh. Each gtkrc.in file is the concatenation of these files:
 
23
 
 
24
$theme/gtk-2.0/$theme.rc 
 
25
common/gtk-stock-icons.rc 
 
26
common/panel-stock-icons.rc 
 
27
common/media-stock-icons.rc 
 
28
common/capplet-stock-icons.rc
 
29
 
 
30
It follows that you should NOT edit gtkrc.in directly. Instead, edit the appropriate .rc file, then re-autogen before building.  This obviously kind of sucks, but it was the only way I could get it to work at the time :/
 
31
 
 
32
 
 
33
2. Adding new icons
 
34
-------------------
 
35
 
 
36
The module is currently configured to make it easy to add or remove a stock icon from all themes at once, but not so easy to do so on a per-theme basis.  This works well for now but probably won't if we want to make this a more general theme repository.
 
37
 
 
38
So, to add a new gtk stock icon to all themes:
 
39
 
 
40
- Add the icon's filename to common/all-stock-items.data
 
41
- Add the line you want to appear in the themes' RC files to the appropriate common/*.rc file
 
42
- Add the icon files, each with the same filename, to all the <theme>/pixmaps/ directories.
 
43
 
 
44
GNOME icons that are themed via the icon theming mechanism (as specified on freedesktop.org) are currently still added individually in each <theme>/icons subdirectory. E.g. to add a new 48x48 application icon to all the themes, you have to modify each <theme>/icons/48x48/apps/Makefile.am individually, and add the appropriate icon file to each <theme>/icons/48x48/apps directory.
 
45
 
 
46
 
 
47
3. Changing icon sizes
 
48
----------------------
 
49
 
 
50
The icon sizes for ALL the LargePrint themes are defined in configure.in.  Changing them here will affect all LargePrint themes.
 
51
 
 
52
 
 
53
4.  Changing colours
 
54
--------------------
 
55
 
 
56
To change the colours in a particular theme, edit its <themename>/gtk-2.0/<themename>.rc file.
 
57
 
 
58
 
 
59
5. Switching icon themes
 
60
------------------------
 
61
In 2.2 and later, use gnome-theme-manager, and choose the Icon theme from the Details subdialog.
 
62
 
 
63
In earlier versions of GNOME, unless you're running my patched theme switcher dialog (patch in bugzilla,
 
64
#93486), you'll need to switch icon themes by hand using GConf:
 
65
 
 
66
$ gconftool-2 -s /desktop/gnome/interface/icon_theme "<themename>" --type=string
 
67
 
 
68
 
 
69
6. To create low contrast icons in GIMP from the original coloured icon
 
70
------------------------------------------------------------------------
 
71
 
 
72
Use the low-contrast-preset.scm GIMP script in this directory to create a low
 
73
contrast icon from a regular-coloured icon.  (Read the comments in the script
 
74
for instructions on how to install and use it.)  Thanks to Guillermo for
 
75
providing this!
 
76
 
 
77
Note: In GIMP, Input=0/0.6/255, Output=75/255 seems to give results 
 
78
closer to the icons Suzanna converted in Photoshop, but plugging these 
 
79
values into this script seems to give different results from doing it 
 
80
manually in the Levels dialog :/