diff options
author | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 23:26:51 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2021-08-08 23:26:51 -0400 |
commit | 0e8967128275c2b4667650f8ebd70b1f0f07d9cf (patch) | |
tree | 3d3d037893f2c1d59ad7719b09ea4c9e6b2518e9 | |
parent | c4d138179443b49d817830c78ddcd1459cf5505f (diff) | |
download | pango-0e8967128275c2b4667650f8ebd70b1f0f07d9cf.tar.gz |
docs: Add one more dark mode image
-rw-r--r-- | docs/layout-dark.png | bin | 0 -> 26365 bytes | |||
-rw-r--r-- | docs/layout-light.png | bin | 0 -> 24670 bytes | |||
-rw-r--r-- | docs/meson.build | 3 | ||||
-rw-r--r-- | docs/pango.toml.in | 3 | ||||
-rw-r--r-- | pango/pango-layout.c | 5 |
5 files changed, 8 insertions, 3 deletions
diff --git a/docs/layout-dark.png b/docs/layout-dark.png Binary files differnew file mode 100644 index 00000000..279b7eaf --- /dev/null +++ b/docs/layout-dark.png diff --git a/docs/layout-light.png b/docs/layout-light.png Binary files differnew file mode 100644 index 00000000..0a0d4e2a --- /dev/null +++ b/docs/layout-light.png 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: |