code.
support_frills=yes
support_inheritpixmap=yes
-support_tinting=yes
support_fading=yes
support_keepscrolling=yes
support_selectionscrolling=yes
if test x$enableval = xno; then
support_frills=no
support_inheritpixmap=no
- support_tinting=no
support_fading=no
support_keepscrolling=no
support_selectionscrolling=no
if test x$enableval = xyes; then
support_frills=yes
support_inheritpixmap=yes
- support_tinting=yes
support_fading=yes
support_keepscrolling=yes
support_selectionscrolling=yes
support_inheritpixmap=$enableval
fi])
-AC_ARG_ENABLE(tinting,
- [ --enable-tinting enable tinting of transparent bg],
- [if test x$enableval = xyes -o x$enableval = xno; then
- support_tinting=$enableval
- fi])
-
AC_ARG_ENABLE(fading,
[ --enable-fading enable colors fading when off focus],
[if test x$enableval = xyes -o x$enableval = xno; then
if test x$support_fading = xyes; then
AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
fi
-if test x$support_tinting = xyes; then
- AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
-fi
if test x$support_inheritpixmap = xyes; then
AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
fi
Add support for fading the text when focus is lost.
-=item --enable-tinting (default: on)
-
-Add support for tinting of transparent backgrounds (requires C<--enable-transparency>).
-
=item --enable-rxvt-scroll (default: on)
Add support for the original rxvt scrollbar.
process_color_seq (op, Color_IT, str, resp);
break;
#endif
-#if ENABLE_TRANSPARENCY && TINTING
+#if ENABLE_TRANSPARENCY
case URxvt_Color_tint:
process_color_seq (op, Color_tint, str, resp);
COLOR_SCROLLBAR,
COLOR_SCROLLTROUGH,
#endif /* KEEP_SCROLLCOLOR */
-#if TINTING
+#if ENABLE_TRANSPARENCY
NULL,
#endif
#if OFF_FOCUS_FADING
#endif
#ifdef ENABLE_TRANSPARENCY
def (transparent)
+ def (shade)
#endif
#if XFT
def (depth)
#ifdef OFF_FOCUS_FADING
def (fade)
#endif
-#ifdef TINTING
- def (shade)
-#endif
#if ENABLE_PERL
def (perl_eval)
def (perl_ext_1)
Color_scroll,
Color_trough,
#endif
-#if TINTING
+#if ENABLE_TRANSPARENCY
Color_tint,
#endif
#if OFF_FOCUS_FADING
#if ENABLE_TRANSPARENCY
BOOL (Rs_transparent, "inheritPixmap", "ip", Opt_transparent, 0, "inherit parent pixmap"),
SWCH ("tr", Opt_transparent, 0, NULL),
-# if TINTING
STRG (Rs_color + Color_tint, "tintColor", "tint", "color", "tint color"),
-# endif
+ STRG (Rs_shade, "shading", "sh", "%", "shade background by x %."),
#endif
#if OFF_FOCUS_FADING
STRG (Rs_fade, "fading", "fade", "%", "fade colors x% percent when rxvt-unicode is losing focus"),
STRG (Rs_color + Color_fade, "fadeColor", "fadecolor", "color", "target color for off-focus fading"),
-#endif
-#if TINTING
- STRG (Rs_shade, "shading", "sh", "%", "shade background by x % when tinting."),
#endif
BOOL (Rs_utmpInhibit, "utmpInhibit", "ut", Opt_utmpInhibit, 0, "utmp inhibit"),
#ifndef NO_BELL
#endif
#if defined(ENABLE_TRANSPARENCY)
"transparent,"
+ "tint,"
#endif
#if HAVE_AFTERIMAGE
"afterimage,"
#endif
-#if TINTING
- "tint,"
-#endif
#if defined(USE_XIM)
"XIM,"
#endif
#endif /* HAVE_BG_PIXMAP */
#ifdef ENABLE_TRANSPARENCY
-#if TINTING && !defined(HAVE_AFTERIMAGE)
+#ifndef HAVE_AFTERIMAGE
/* taken from aterm-0.4.2 */
typedef uint32_t RUINT32T;
/* TODO: the below logic needs to be cleaned up */
if (!i || prop == NULL
-#if TINTING
|| (!ISSET_PIXCOLOR (Color_tint) && rs[Rs_shade] == NULL
#ifdef HAVE_AFTERIMAGE
&& bgPixmap.original_asim == NULL && rs[Rs_blurradius] == NULL
#endif
)
-#endif
)
rootpixmap = None;
else
while (sx < 0) sx += (int)wrootattr.width;
while (sy < 0) sy += (int)wrootattr.height;
-#if TINTING
if (rs[Rs_shade])
shade = atoi (rs[Rs_shade]);
if (ISSET_PIXCOLOR (Color_tint))
&& IS_COMPONENT_WHOLESOME(c.b));
no_tint = (c.r >= 0x00f700 && c.g >= 0x00f700 && c.b >= 0x00f700);
#undef IS_COMPONENT_WHOLESOME
-#endif /* TINTING */
/* theer are no performance advantages to reusing same pixmap */
if (bgPixmap.pixmap != None)
XFreePixmap (dpy, bgPixmap.pixmap);
gc = XCreateGC (dpy, rootpixmap, GCFillStyle | GCTile | GCTileStipXOrigin | GCTileStipYOrigin, &gcvalue);
XFillRectangle (dpy, bgPixmap.pixmap, gc, 0, 0, szHint.width, szHint.height);
-#if TINTING
if (whole_tint && !no_tint)
{
/* In this case we can tint image server-side getting significant
XChangeGC (dpy, gc, GCFillStyle | GCForeground | GCFunction, &gcvalue);
XFillRectangle (dpy, bgPixmap.pixmap, gc, 0, 0, szHint.width, szHint.height);
}
-#endif
success = True;
#ifdef HAVE_AFTERIMAGE
if (rs[Rs_blurradius] || bgPixmap.original_asim != NULL || (!whole_tint && (!no_tint || shade !=100)))
success = False;
}
#else /* HAVE_AFTERIMAGE */
-#if TINTING
if (!whole_tint && (!no_tint || shade !=100))
{
XImage *image = XGetImage (dpy, bgPixmap.pixmap, 0, 0, szHint.width, szHint.height, AllPlanes, ZPixmap);
success = True;
}
}
-#endif
#endif /* HAVE_AFTERIMAGE */
PRINT_BACKGROUND_OP_TIME;