diff options
| author | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-10-23 02:46:47 +0000 |
|---|---|---|
| committer | Scott Moynes <smoynes@nexus.carleton.ca> | 2002-10-23 02:46:47 +0000 |
| commit | 1e36acfd9198a7d8cbad4eef094e15a03eebc291 (patch) | |
| tree | 22d51d982f5f0ecd2630d4480bd4ea5b4a9fc5ab /src/Screen.cc | |
| parent | dc4957eed8ea4844dc7bdba0830b7bbd95be3fd2 (diff) | |
Allow variable tinting of the shadow. Use *.xft.tint: integer
integer is a number -100 to 100 that specifies the alpha channel, with
negative numbers meaning lighten the background and positive being
darken.
Diffstat (limited to 'src/Screen.cc')
| -rw-r--r-- | src/Screen.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Screen.cc b/src/Screen.cc index 70494cab..165a4a93 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -2750,11 +2750,13 @@ BFont *BScreen::readDatabaseFont(const string &rbasename, offset = 1; } - unsigned char tint = 0x40; + int tint = 25; if (style.getValue(rbasename + "xft.shadow.tint", s)) { tint = atoi(s.c_str()); } + if (tint > 100) tint = 100; + if (tint < -100) tint = -100; BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold, italic, dropShadow && resource.shadow_fonts, offset, |
