… | |
… | |
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 | { |
708 | { |
709 | rxvt_rgba c; |
709 | rxvt_rgba c; |
710 | pix_colors[Color_fade].get (this, c); |
710 | pix_colors[Color_fade].get (this, c); |
711 | pix_colors_unfocused[i] = pix_colors_focused[i].fade (this, atoi (rs[Rs_fade]), c); |
711 | pix_colors_focused[i].fade (this, atoi (rs[Rs_fade]), pix_colors_unfocused[i],c); |
712 | } |
712 | } |
713 | #endif |
713 | #endif |
714 | |
714 | |
715 | if (depth <= 2) |
715 | if (depth <= 2) |
716 | { |
716 | { |
… | |
… | |
747 | rxvt_rgba c0, c1; |
747 | rxvt_rgba c0, c1; |
748 | |
748 | |
749 | xcol[0].get (this, c0); |
749 | xcol[0].get (this, c0); |
750 | xcol[1].get (this, c1); |
750 | xcol[1].get (this, c1); |
751 | |
751 | |
752 | pix_colors[Color_bottomShadow] = xcol[1].fade (this, 50); |
752 | xcol[1].fade (this, 50, pix_colors[Color_bottomShadow]); |
753 | |
753 | |
754 | /* topShadowColor */ |
754 | /* topShadowColor */ |
755 | if (!xcol[1].set (this, |
755 | if (!xcol[1].set (this, |
756 | rxvt_rgba ( |
756 | rxvt_rgba ( |
757 | min (c0.r, max (c1.r / 5, c1.r) * 7 / 5), |
757 | min (c0.r, max (c1.r / 5, c1.r) * 7 / 5), |