From version 1.3 and further, NsCDE contains CSS code and icons which can be used from
$FVWM_USERDIR/libexec/colormgr.local while applying new color style and theme,
to generate colorsets also for either or both Firefox and Thunderbird.
For this to work, appropriate function code definitions from the colormgr.local
must be sourced from $NSCDE_DATADIR/config_templates/colormgr.addons and
functions do_firefox and/or do_thunderbird must be
uncommented in $FVWM_USERDIR/libexec/colormgr.local. Shell variable
FIREFOX_PROFILEDIR should contain path to the
~/.mozilla/firefox/<profilename>.,
FIREFOX_MAJVER_PFX should be either "7x" or "9x" depending of major version
of the Firefox is installed and used on the system. Firefox 8x belongs to 9x code base. The same
as for FIREFOX_PROFILEDIR, variable THUNDERBIRD_PROFILEDIR should
point to chrome directory of user's thunderbird profile. If chrome subdirectory in the user's profile
directory does not exist, it will be created by the above mentioned "do_" functions from
colormgr.addons. This will make appropriate entiries in
userChrome.css and userContent.css to
import nscdeChrome.css, nscdeIcons.css and
nscdeContent.css from the $NSCDE_DATADIR/integration/firefox
and/or from $NSCDE_DATADIR/integration/thunderbird.
File nscdeColordefs.css will be generated in the chrome dir with color mappings to the
current NsCDE theme. This wile is also imported in userChrome.css and userContent.css.
If the option "Run $FVWM_USERDIR/libexec/colormgr.local (if exists)" is not turned off in the Color Style Manager while applying a theme, CSS which makes Firefox and Thunderbird as to a high degree similar to Motif/CDE application, and in the right colors will be generated. Firefox and Thunderbird must be restarted for this changes to take a place.
In Thunderbird, because of the nature of mail, it is not 100% possible to use color 4 from the NsCDE theme as background/foreground combination, because this can give ugly and bad results with some amount of structured HTML mails. Hence, color for text is black, while background is from Solyaris theme (#fff7e9) which is yellowish, almost white.
Here is how chrome directory layout and files must look for thunderbird after colormgr.local
makes a changes:
/home/user/.thunderbird/profile_test_009/chrome
|- nscdeColordefs.css
|- userChrome.css
|- userContent.css
$ cat /home/user/.thunderbird/Profile_1/chrome/userContent.css
@import url("nscdeColordefs.css");
@import url("/usr/share/NsCDE/integration/thunderbird/nscdeContent.css");
$ cat /home/user/.thunderbird/Profile_1/chrome/userChrome.css
@import url("nscdeColordefs.css");
@import url("/usr/share/NsCDE/integration/thunderbird/nscdeChrome.css");
@import url("/usr/share/NsCDE/integration/thunderbird/nscdeIcons.css");
This is how Firefox chromedir should look like, assuming NsCDE was installed in /usr as prefix and root of installation dir:
/home/user/.mozilla/firefox/testtest.default-release/chrome
|- nscdeColordefs.css
|- nscdeContent.css -> /usr/share/NsCDE/integration/firefox/ff9x_nscdeContent.css
|- userChrome.css
|- userContent.css
$ cat /home/user/.mozilla/firefox/testtest.default-release/chrome/userChrome.css
@import url("nscdeColordefs.css");
@import url("/usr/share/NsCDE/integration/firefox/ff9x_nscdeChrome.css");
@import url("/usr/share/NsCDE/integration/firefox/nscdeIcons.css");
$ cat /home/user/.mozilla/firefox/testtest.default-release/chrome/userContent.css
@import url("nscdeColordefs.css");
@import url("nscdeContent.css");
Great care has been taken to get working CSS which modifies Mozilla applications not to display light text on light background, or dark text on dark background, but this ever changing CSS mess should be considered of beta quality, so issue reports, specially those with ready made fixes are more than welcome.