summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-08-08 23:26:51 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-08-08 23:26:51 -0400
commit0e8967128275c2b4667650f8ebd70b1f0f07d9cf (patch)
tree3d3d037893f2c1d59ad7719b09ea4c9e6b2518e9
parentc4d138179443b49d817830c78ddcd1459cf5505f (diff)
downloadpango-0e8967128275c2b4667650f8ebd70b1f0f07d9cf.tar.gz
docs: Add one more dark mode image
-rw-r--r--docs/layout-dark.pngbin0 -> 26365 bytes
-rw-r--r--docs/layout-light.pngbin0 -> 24670 bytes
-rw-r--r--docs/meson.build3
-rw-r--r--docs/pango.toml.in3
-rw-r--r--pango/pango-layout.c5
5 files changed, 8 insertions, 3 deletions
diff --git a/docs/layout-dark.png b/docs/layout-dark.png
new file mode 100644
index 00000000..279b7eaf
--- /dev/null
+++ b/docs/layout-dark.png
Binary files differ
diff --git a/docs/layout-light.png b/docs/layout-light.png
new file mode 100644
index 00000000..0a0d4e2a
--- /dev/null
+++ b/docs/layout-light.png
Binary files differ
diff --git a/docs/meson.build b/docs/meson.build
index 21230ddd..37a2a9b3 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -6,7 +6,8 @@ pango_content_files = [
'pango_fonts.md',
'pango_bidi.md',
'pango-name.png',
- 'layout.png',
+ 'layout-light.png',
+ 'layout-dark.png',
'pipeline-light.png',
'pipeline-dark.png',
'rects1.png',
diff --git a/docs/pango.toml.in b/docs/pango.toml.in
index 95143360..4317adf4 100644
--- a/docs/pango.toml.in
+++ b/docs/pango.toml.in
@@ -66,7 +66,8 @@ content_files = [
content_images = [
"pango-name.png",
- "layout.png",
+ "layout-light.png",
+ "layout-dark.png",
"pipeline-light.png",
"pipeline-dark.png",
"rects1.png",
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 2a3cb5a2..bf9be496 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -43,7 +43,10 @@
* `PangoLayout`. The following image shows adjustable parameters
* (on the left) and font metrics (on the right):
*
- * ![Pango Layout Parameters](layout.png)
+ * <picture>
+ * <source srcset="layout-dark.png" media="(prefers-color-scheme: dark)">
+ * <img alt="Pango Layout Parameters" src="layout-light.png">
+ * </picture>
*
* The following images demonstrate the effect of alignment and
* justification on the layout of text: