ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/background
(Generate patch)

Comparing rxvt-unicode/src/perl/background (file contents):
Revision 1.85 by root, Thu Oct 3 01:11:48 2013 UTC vs.
Revision 1.87 by sf-exg, Sat Oct 12 08:36:44 2013 UTC

562 562
563A common use case is to fade the background image when the terminal loses 563A common use case is to fade the background image when the terminal loses
564focus, often together with the C<-fade> command line option. In fact, 564focus, often together with the C<-fade> command line option. In fact,
565there is a special function for just that use case: C<focus_fade>. 565there is a special function for just that use case: C<focus_fade>.
566 566
567Example: use two entirely different bacckground images, depending on 567Example: use two entirely different background images, depending on
568whether the window has focus. 568whether the window has focus.
569 569
570 FOCUS ? keep { load "has_focus.jpg" } : keep { load "no_focus.jpg" } 570 FOCUS ? keep { load "has_focus.jpg" } : keep { load "no_focus.jpg" }
571 571
572=cut 572=cut
958=item focus_fade $factor, $color, $img 958=item focus_fade $factor, $color, $img
959 959
960Fades the image by the given factor (and colour) when focus is lost (the 960Fades the image by the given factor (and colour) when focus is lost (the
961same as the C<-fade>/C<-fadecolor> command line options, which also supply 961same as the C<-fade>/C<-fadecolor> command line options, which also supply
962the default values for C<factor> and C<$color>. Unlike with C<-fade>, the 962the default values for C<factor> and C<$color>. Unlike with C<-fade>, the
963C<$factor> is the real value, not a percentage value (that is, 0..1, not 963C<$factor> is a real value, not a percentage value (that is, 0..1, not
9640..100). 9640..100).
965 965
966Example: do the right thing when focus fading is requested. 966Example: do the right thing when focus fading is requested.
967 967
968 focus_fade load "mybg.jpg"; 968 focus_fade load "mybg.jpg";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines