From 1e36acfd9198a7d8cbad4eef094e15a03eebc291 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Wed, 23 Oct 2002 02:46:47 +0000 Subject: 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. --- src/Screen.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Screen.cc') 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, -- cgit v1.2.3