… | |
… | |
703 | } |
703 | } |
704 | |
704 | |
705 | #ifdef OFF_FOCUS_FADING |
705 | #ifdef OFF_FOCUS_FADING |
706 | if (rs[Rs_fade]) |
706 | if (rs[Rs_fade]) |
707 | for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++) |
707 | for (i = 0; i < (depth <= 2 ? 2 : NRS_COLORS); i++) |
|
|
708 | { |
|
|
709 | rxvt_rgba c; |
|
|
710 | pix_colors[Color_fade].get (this, c); |
708 | pix_colors_unfocused[i] = pix_colors_focused[i].fade (this, atoi (rs[Rs_fade]), pix_colors[Color_fade]); |
711 | pix_colors_focused[i].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused[i],c); |
|
|
712 | } |
709 | #endif |
713 | #endif |
710 | |
714 | |
711 | if (depth <= 2) |
715 | if (depth <= 2) |
712 | { |
716 | { |
713 | if (!rs[Rs_color + Color_pointer_fg]) pix_colors[Color_pointer_fg] = pix_colors[Color_fg]; |
717 | if (!rs[Rs_color + Color_pointer_fg]) pix_colors[Color_pointer_fg] = pix_colors[Color_fg]; |
… | |
… | |
743 | rxvt_rgba c0, c1; |
747 | rxvt_rgba c0, c1; |
744 | |
748 | |
745 | xcol[0].get (this, c0); |
749 | xcol[0].get (this, c0); |
746 | xcol[1].get (this, c1); |
750 | xcol[1].get (this, c1); |
747 | |
751 | |
748 | pix_colors[Color_bottomShadow] = xcol[1].fade (this, 50); |
752 | xcol[1].fade (this, 50, pix_colors[Color_bottomShadow]); |
749 | |
753 | |
750 | /* topShadowColor */ |
754 | /* topShadowColor */ |
751 | if (!xcol[1].set (this, |
755 | if (!xcol[1].set (this, |
752 | rxvt_rgba ( |
756 | rxvt_rgba ( |
753 | min (c0.r, max (c1.r / 5, c1.r) * 7 / 5), |
757 | min (c0.r, max (c1.r / 5, c1.r) * 7 / 5), |