summaryrefslogtreecommitdiff
path: root/model/Page.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-07-11 15:01:02 +0300
commitc2f382aba86aaebb9806ff1b43c1af69992e9a10 (patch)
treeaee205721fd675926c5e7163eec0dddc448f7813 /model/Page.php
parent24982a48f570b89e537850dda4a4d1ac33ea919f (diff)
support dark mode for images with alpha channel
Diffstat (limited to 'model/Page.php')
-rw-r--r--model/Page.php5
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;
}