From c2f382aba86aaebb9806ff1b43c1af69992e9a10 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 11 Jul 2022 15:01:02 +0300 Subject: support dark mode for images with alpha channel --- model/Page.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'model/Page.php') diff --git a/model/Page.php b/model/Page.php index 6711a2c..f516836 100644 --- a/model/Page.php +++ b/model/Page.php @@ -24,10 +24,9 @@ class Page extends Model { return $this->updateTs && $this->updateTs != $this->ts; } - public function getHtml(bool $retina): string { + public function getHtml(bool $is_retina, string $user_theme): string { $html = $this->html; - if ($retina) - $html = markup::htmlRetinaFix($html); + $html = markup::htmlImagesFix($html, $is_retina, $user_theme); return $html; } -- cgit v1.2.3