TODO: xim "how to" faq entry
TODO: reorganize faq
-TODO: support +xxx option syntax (e.g. -tint red +tint)
TODO: scrollstyle -next, raised/sunken, maybe extra pixels(?) w. halfshadow
- changed interpretation of [alpha] colour prefix.
+ - +option now really sets the option to default, instead of using the
+ resource value.
- further round trip eliminations in the !XFT case by remembering
the colour components.
+ - plain scrollbar works better with -sr.
+ - fixed half-shadow scrollbar look.
7.5 Tue Jan 31 15:15:43 CET 2006
- further improvements to the careful mode detection, and font width
support_scroll_plain=$enableval
fi])
-dnl AC_ARG_ENABLE(half-shadow,
-dnl [ --enable-half-shadow use half width/height shadow on rxvt scrollbar],
-dnl [if test x$enableval = xyes; then
-dnl AC_DEFINE(HALFSHADOW, 1, Define if you want the depth of scrollbars and menus to be less)
-dnl fi])
-
AC_ARG_WITH(codesets,
[ --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)],
[codesets="$withval"])
echo ".----------------------------------------------------------------."
fi
-echo " *** Optionally check src/feature.h for further options ***"
-echo
-
-echo ".----------------------------------------------------------------."
-echo ". NOTE: some features are disabled by default, try ."
-echo ". configure --help to get an idea of the optional features, ."
-echo ". or read ./README.configure ."
-echo ". ."
-echo ". The script ./reconf gives a reasonable baseline, try it if ."
-echo ". you do not want to read documentation and still want some ."
-echo ". useful features. ."
-echo ".----------------------------------------------------------------."
+echo "*** Optionally check src/feature.h for further, rarely used options ***"
echo
#define SB_WIDTH_MINIMUM 5
#define SB_WIDTH_MAXIMUM 100
+/*
+ * rxvt scrollbar shadow width in pixels, must be 1 or 2
+ */
+#define SHADOW_WIDTH 1
+
/*
* When using Rxvt scrollbar, clicking above or below the slider will move
* 1/4 of the screen height, if possible. Setting RXVT_SCROLL_FULL will move
/*----------------------------------------------------------------------*/
#if defined(RXVT_SCROLLBAR)
-#define SHADOW_WIDTH 1
-
static void
draw_shadow (rxvt_term *term, int x, int y, int w, int h)
{
for (; shadow-- > 0; x++, y++, w--, h--)
{
- XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, w, y);
- XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, x, h);
- XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, w, y + 1);
- XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h);
+ XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, w , y );
+ XDrawLine (term->xdisp, term->scrollBar.win, term->topShadowGC, x, y, x , h );
+ XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, w , y + 1);
+ XDrawLine (term->xdisp, term->scrollBar.win, term->botShadowGC, w, h, x + 1, h );
}
}
sz = term->scrollBar.width;
sz2 = sz / 2;
+
switch (state)
{
case +1:
pt[0].x = x;
pt[1].x = x + sz - 1;
pt[2].x = x + sz2;
+
if (dirn == UP)
{
pt[0].y = pt[1].y = y + sz - 1;
int
rxvt_term::scrollbar_mapping (int map)
{
- int change = 0;
+ int change = 0;
#ifdef HAVE_SCROLLBARS
if (map)
change = 1;
}
#endif
+
return change;
}
# ifdef RXVT_SCROLLBAR
if (! OPTION (Opt_scrollBar_floating) && style == R_SB_RXVT)
- sb_shadow = 2;
+ sb_shadow = SHADOW_WIDTH;
# endif
scrollBar.style = style;