diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 15:01:02 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-11 15:01:02 +0300 |
commit | c2f382aba86aaebb9806ff1b43c1af69992e9a10 (patch) | |
tree | aee205721fd675926c5e7163eec0dddc448f7813 /model/Page.php | |
parent | 24982a48f570b89e537850dda4a4d1ac33ea919f (diff) |
support dark mode for images with alpha channel
Diffstat (limited to 'model/Page.php')
-rw-r--r-- | model/Page.php | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |