Commit 6be21724 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Fixes #4910 Disabled icons now have reduced opacity as well (useful for breezy)

Showing with 4 additions and 6 deletions
+4 -6
......@@ -39,12 +39,10 @@ $src = IconTheme::findThemeIcon($theme, $_GET['context'], $_GET['icon'], $_GE
header("Content-Type: image/png");
if (isset($_GET['disabled']) && $_GET['disabled']) {
$im = imagecreatefrompng($src);
imageAlphaBlending($im, TRUE);
imageSaveAlpha($im, TRUE);
imagefilter($im, IMG_FILTER_GRAYSCALE);
imagepng($im);
imagedestroy($im);
$im = new Imagick($src);
$im->modulateImage(100, 0, 100);
$im->evaluateImage(Imagick::EVALUATE_DIVIDE, 2, Imagick::CHANNEL_ALPHA);
echo $im;
} else {
readfile($src);
}
......
  • bmortier @bmortier

    mentioned in issue #1559

    By Côme Chilliet on 2017-09-02T15:30:38 (imported from GitLab)

    ·

    mentioned in issue #1559

    By Côme Chilliet on 2017-09-02T15:30:38 (imported from GitLab)

    Toggle commit list
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment